Object Switching Service

Visual LANSA Framework

Object Switching Service

Applies to Windows and WAM.

See the tutorial VLF012WIN - Controlling Navigation Using Switching and the Virtual Clipboard or VLF012WAM - Controlling Navigation Using Switching and the Virtual Clipboard for step-by-step instructions for how to use the object switching service

This service allows your filters and command handlers to switch control between different business objects and to execute commands at the Framework, application or business object level.

The target business object must be able to be selected from the menu (the option Allow selection from the navigation pane in the target business object properties should be checked, and the user should be authorised to the business object), at the time the switch occurs. Switching mimics the actions that a user would perform.

The switching service is invoked by using method #avFrameworkManager.avSwitch with the appropriate parameters.  

Introductory avSwitch Examples 

Referencing Applications, Business Objects and Commands

Advanced avSwitch Examples 

avSwitch Method

AvAddSwitchInstances Event

AvAddSwitchInstance Method

Troubleshooting Switch Examples