The tables in this topic describe the transformation mapping rules for form and control triggers. The rules map triggers in the Classic client to triggers in the RoleTailored client.
Form Triggers
The following form triggers are transferred directly to page triggers:
-
OnQueryCloseForm Trigger (transformed to OnQueryClosePage)
The following table shows form triggers that are not supported in the RoleTailored client and are transformed.
Form trigger | Transformation rule | ||||
---|---|---|---|---|---|
Code moved to local function OnActivateForm. A call to this function is added to the OnOpenPage trigger. |
|||||
Code moved to local function OnAfterGetCurrRecord in the following way.
|
|||||
Code moved to local function OnBeforePutRecord. A call to this function is not added. |
|||||
Code moved to local function OnCreateHyperlink. A call to this function is not added. |
|||||
Code moved to local function OnDeactivateForm. A call to this function is not added. |
|||||
Code moved to local function OnHyperlink. A call to this function is not added. |
|||||
Code moved to local function OnTimer. A call to this function is not added. |
Control Triggers
This section describes the transformation mapping rules for the following control triggers:
-
Label triggers
-
Text box triggers
-
Check box triggers
-
Option button triggers
-
Subform and menu button triggers
-
Command button triggers
-
Menu item triggers
Label Triggers
The following table shows the transformation rules for label triggers.
Label trigger | Transformation rule |
---|---|
OnPush |
Deleted |
Text Box Triggers
The following table shows the transformation rules for text box triggers.
Text box trigger | Transformation rule |
---|---|
OnActivate |
Code moved to local function <ControlSource>OnActivate. A call to this function is not added. |
OnAfterInput |
Code moved to local function <ControlSource>OnAfterInput. A call to this function is not added. |
OnAfterValidate |
Code moved to local function <ControlSource>OnAfterValidate. A call to this function is added to the OnValidate field trigger. |
OnAssistEdit |
Transformed directly to OnAssistEdit field trigger. |
OnBeforeInput |
Code moved to local function <ControlSource>OnBeforeInput. A call to this function is not added. |
OnDeactivate |
Code moved to local function <ControlSource>OnDeactivate. A call to this function is not added. |
OnDrillDown |
Transformed directly to OnDrillDown field trigger. |
OnFormat |
Code moved to local function <ControlSource>OnFormat. A call to this function is added to the OnAfterGetRecord page trigger. |
OnInputChange |
Code moved to local function <ControlSource>OnInputChange. A call to this function is not added. |
OnLookup |
Transformed directly to OnLookup field trigger. |
OnValidate |
Transformed directly to OnValidate field trigger. |
Check Box Triggers
The following table shows the transformation rules for check box triggers.
Check box trigger | Transformation rule |
---|---|
OnActivate |
Code moved to local function <ControlSource>OnActivate. A call to this function is not added. |
OnAfterValidate |
Code moved to local function <ControlSource>OnAfterValidate. A call to this function is added to the OnValidate field trigger. |
OnDeactivate |
Code moved to local function <ControlSource>OnDeactivate. A call to this function is not added. |
OnPush |
Code moved to local function <ControlSource>OnPush. A call to this function is added to the OnValidate field trigger. |
OnValidate |
Transformed directly to OnValidate field trigger. |
Option Button Triggers
The following table shows the transformation rules for option button triggers.
Option button trigger | Transformation rule |
---|---|
OnActivate |
Code moved to local function <ControlSource>OnActivate. A call to this function is not added. |
OnAfterValidate |
Code moved to local function <ControlSource>OnAfterValidate. A call to this function is added to the OnValidate field trigger. |
OnDeactivate |
Code moved to local function <ControlSource>OnDeactivate. A call to this function is not added. |
OnPush |
Code moved to local function <ControlSource>OnPush. A call to this function is added to the local function OnValidate. |
OnValidate |
Code moved to local function <ControlSource>OnValidate. A call to this function is added to the OnValidate field trigger with a preliminary check. |
Subform and Menu Button Triggers
The following table shows the transformation rules for subform and menu button triggers.
Subform and menu button trigger | Transformation rule |
---|---|
OnActivate |
Code moved to local function <ControlSource>OnActivate. A call to this function is not added. |
OnDeactivate |
Code moved to local function <ControlSource>OnDeactivate. A call to this function is not added. |
Command Button Triggers
The following table shows the transformation rules for command button triggers.
Command button trigger | Transformation rule |
---|---|
OnActivate |
Code moved to local function <ControlSource>OnActivate. A call to this function is not added. |
OnDeactivate |
Code moved to local function <ControlSource>OnDeactivate. A call to this function is not added. |
OnPush |
Transformed to a page action. By default, action is moved to the Related Information menu. The Promoted property is true. For specific captions, additional properties may be set. For more information, see the MoveElements.xml file. |
OnValidate |
Code moved to local function <ControlSource>OnValidate. A call to this function is added to the OnValidate field trigger with a preliminary check. |
The following table shows the transformation rules for specific command buttons.
Command button | Transformation rule | ||||
---|---|---|---|---|---|
Command button with PushAction=FormHelp |
Not supported by the page object. All triggers are deleted. |
||||
Command button with one of the following:
|
OnPush trigger code moved to OnQueryClosePage trigger and modified. New local functions are created in the OnQueryClosePage trigger and called by using the following code.
|
Menu Item Triggers
The following table shows the transformation rules for menu item triggers.
Menu item trigger | Transformation rule |
---|---|
OnPush |
Transformed to a page action. By default, action is moved to the Related Information menu. For specific captions, properties may be set. For more information, see the MoveElements.xml file. |