Cancel: Boolean;
The Cancel property determines whether a particular action is to be executed on the data area (calculation, saving). If this parameter is set to True, no action is executed on the data area; if this parameter is set to False, the action is executed.
Consider the event that occurs before data area calculation.
Sub EventOnBeforeExecuteDataIsland(Args: IUiPrxDataIslandCancelEventArgs);
Begin
Args.Cancel := Not WinApplication.ConfirmationBox("Calculate area " + Args.DataIsland.Id + "?")
End Sub EventOnBeforeExecuteDataIsland;
When the event occurs, a dialog box to confirm calculation of the data area is displayed, containing identifier of the area. Answer Yes to calculate the data area, otherwise it is not calculated.
See also: