What Type of Functions Can Be (re)Routed?
Only the following types of functions, under the following rules, circumstances and guidelines, can be automatically (re)routed by the function routing table. Failure to observe the rules and circumstances described may lead to application failure and/or unpredictable results.
- Functions invoked from an SAA/CUA style menu: providing that the "to" function belongs to the same process as the "from" function. If the "from" function is an Attached Function on the menu process, the "to" function must also be defined as an Attached Function. Note that the function must appear on the menu as the "from" function. When defining a variant "to" function you should set the "Display on Menu" option to NO so that it does not appear on the process menu. When the user selects the "from" function from the menu the request is automatically (re)routed into the "to" function.
- Function invoked from an ACT/BAR style menu: providing that the "to" function belongs to the same process as the "from" function. If the "from" function is an Attached Function on the menu process, the "to" function must also be defined as an Attached Function. Note that the function must appear in the action bar as the "from" function. Normally the "to" function is not attached to the action bar itself, but it effectively "adopts" the action bar and pull down option codes from the "from" function. In effect, it becomes the "from" function.
- Functions invoked by a CALL(process) FUNCTION(function) command: providing that the "to" function belongs to the same process as the "from" function.
- Functions invoked by a CALL(*DIRECT) FUNCTION(function) command: in all circumstances (but the normal *DIRECT calling rules must still be observed). This includes server based RDML functions called from client based applications.
- Batch Functions invoked by a SUBMIT command: providing that the "to" function belongs to the same process as the "from" function.
- System Variable Evaluation Functions: in all circumstances.
- Data Dictionary Validation Functions: in all circumstances.
- Event Trigger Functions: in all circumstances.