DeleteContextAndUpdate method: BannerTile class
Syntax
DeleteContextAndUpdate()
Description
Use the DeleteContextAndUpdate method to delete all context keys and context values from memory and then update the tiles on the dashboard to reflect this change. Only invoke this method if IsPersistContext is True. For example, invoke DeleteContextAndUpdate in a FieldChange program associated with a Clear button to clear the context and update the dashboard and its tiles.
Note:
You must separately and explicitly update the context fields displayed to the user.
Parameters
None.
Returns
None.
Example
import MYPKG:MyBannerComp;
Component MYPKG:MyBannerComp &oBanner;
/* Clears the context keys and values and updates the tiles. */
&oBanner.DeleteContextAndUpdate();
/* Clears the values displayed to the user. */
MY_REC.SETID.Value = "";
MY_REC.DESCR.Value = "";