Form dialog events
Reference topic for the form dialog code events set.
Event | Use when ... | Function |
---|---|---|
On Open Form | Use this code event to initialize the form, set up toolbars, menus, etc. | dlgEvent_OnOpenForm |
On Action States Update (Form) |
Use this code event to manage the action state for actions defined for the form. A form has predefined actions:
setActionActive / TRUE|FALSE , setActionHidden /
TRUE|FALSE ).Each action's state is determined by the GUI front-end (mobile or desktop) and the relation settings (disable Add, disable Search, and so on). Any code entered for this event is called after the program updates the state of these actions. If you have other actions defined for the form, you can set their state in this code event. |
dlgEvent_OnActionStatesChange |
Before Browse Dialog |
Use this code event to display messages to the user, initialize program variables, and set up the
dialog instance by deactivating actions the user is allowed or not allowed to execute. This event is
triggered at the startup of a dialog for display ( |
dlgEvent_Before_BrowseDialog |
After Browse Dialog |
Use this code event to implement code before the dialog instruction for display ( |
dlgEvent_After_BrowseDialog |
Before Edit Dialog |
Use this code event to display messages to the user, initialize program variables, and set up the
dialog instance by deactivating actions the user is allowed or not allowed to execute. This event is
triggered at startup of a dialog for input ( |
dlgEvent_Before_EditDialog |
After Edit Dialog |
Use this code event to check whether a field value is correct, and to give control back to the
dialog if the value is not as expected. This event is triggered before the dialog instruction for
input ( |
dlgEvent_After_EditDialog |
Before Search Dialog |
Use this code event to enable/disable actions and fields, and to give the focus to a specific field. This event is called before the user gets control of the dialog to enter search criteria. It is called before the program gives control to the user. |
dlgEvent_Before_SearchDialog |
After Search Dialog |
Use this event to check the content of the fields used in the search
( |
dlgEvent_After_SearchDialog |
Before Empty Dialog |
Use this event to enable/disable actions and display a message to the user. This event is called if the form or relation UI Settings Open mode property is set to Empty - empty mode (without data). |
dlgEvent_Before_EmptyDialog |
On Action Accept | Use this event to overwrite a predefined action to accept the current interactive instruction. | dlgEvent_OnActionAccept |
On Action Cancel |
Use this event to overwrite a predefined action to cancel the current interactive instruction. |
dlgEvent_OnActionCancel |
On Action Close |
Use this event to define a close action (instead of the default) in a dialog
( |
dlgEvent_OnActionClose |
On Action Exit |
Use this event to overwrite a predefined action to exit the current dialog. |
dlgEvent_OnActionExit |
On Action New |
Use this event to overwrite a predefined action to insert a new row in the current dialog. |
dlgEvent_OnActionNew |
On Action Query |
Use this event to overwrite a predefined action to query by example in |
dlgEvent_OnActionQuery |