![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
2. The table.field form of indirect referenceThe example in Reference to a Parameterized Table generalizes this rule for use with parameterized tables.
1. When a PF key is used while viewing the DELETE_EMPLOYEE screen, the screen name DELETE_EMPLOYEE is passed to the PROCESS_FCNKEY tool.
2. The occurrence for that PF key in the table instance FCNKEYS(DELETE_EMPLOYEE) is then retrieved.Looking at the FCNKEYS(DELETE_EMPLOYEE) table instance, if you press PF22 the DEL_EMP rule is invoked.The rule shown in the following figure initializes the function keys for the screen DELETE_EMPLOYEE, displays the screen, and calls the PROCESS_FCNKEY rule, which has screen as its argument.
The PROCESS_FCNKEY tool is called to get the FCNKEYS table, which is parameterized by screen, and then uses the table.field indirect reference in the statement:CALL FCNKEYS.ROUTINE.
The ROUTINE field in this table, FCNKEYS, contains the name of the rule to be invoked when a PF key is used.
To generalize the sample rule shown in Example of an Argument to a Rule to handle tables that have up to two parameters, or none at all, you can expand the rule as shown in the following figure:
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |