OnViewCleared - cWebView
Sent to the view after a successful clear
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| hoDDO | Handle | Handle of the DataDictionary object (DDO) that performed the clear |
Syntax
Procedure OnViewCleared Handle hoDDO
Description
The events OnViewSaved, OnViewDeleted and OnViewCleared provide hooks where you can do things like, close the view after a save or delete, change edit mode, or possibly change buttons and captions.
These events are particularly useful with mobile style applications (peWebViewStyle is wvsDrillDown).
// this change the breadcrumb caption when the view is cleared
Procedure OnViewCleared Handle hoDDO
Send SetBreadCrumbCaption "New Order"
End_Procedure
Note that this is sent as part of Request_Clear and not sent if Clear is sent directly to the DDO.