Page History
...
To use the virtual clipboard most effectively you need to devise a standardized naming protocol for items that are posted onto it. In this exercise you will use this standard to store the switch history:
ID1 | SWITCH_HISTORY |
ID2 | OBJECT_NAME/COMMAND_NAME |
FromAValue | <object or command name> |
In effect, you will be storing a switch history table on the clipboard. The first key or ID is the code SWITCH_HISTORY to indicate that all records with this ID are related to switching history.
...
- Display the Source tab of the Sections’ Details command handler.
- In the #avFrameworkManager.uWAMEvent_1 eventroutine, before the avSwitch command, write this code to add the appropriate records to the switch history:
#avframeworkmanager.avsavevalue WithID1(SWITCH_HISTORY) WithID2(OBJECT_NAME) FromAValue(#ThisHandler.avObjectType)
#avframeworkmanager.avsavevalue WithID1(SWITCH_HISTORY) WithID2(COMMAND_NAME) FromAValue(#ThisHandler.avCommandType)Your code should now look like this:
- Compile the command handler and check it in.
- Close the command handler.
...
