SwitchTo

Syntax

SWITCHTO expression [ DATA expression ] 
[ PARTITION expression ] [ BYE ] [ CLEAR ] 
[ INHERIT ]

Parameters

SwitchTo can be abbreviated as SWT.

Description

The SwitchTo logic command programmatically switches from the current application to another application at runtime. The other application can be:

Use the SwitchTo logic command to perform tasks outside the current application without having to log off the application and then log on to another Agile Business Suite or external application. Once the task is complete, switch back to the former user interface in the current application, or to a default user interface.

The SwitchTo logic command functions similarly to the Recall logic command. It is only valid where a Recall logic command is valid. Like the Recall logic command, the specified application is not switched to until the current logic has completed.

Upon execution, the SwitchTo logic command sets the Glb.Error built-in segment attribute to "*****".

All logic following the SwitchTo logic command is executed.

If more than one Recall or SwitchTo logic command is specified in the logic, then only the last Recall or SwitchTo logic command is executed.

The SwitchTo logic command is ignored when processing an OLTP transaction. The server receives no user indication. The client receives an error condition that sets the Glb.Status built-in segment attribute to "*****" and the Glb.HubStatus built-in segment attribute to "S" (SWITCH CMD).

Refer to Switching Between Applications for more information on switching during a debug session.

Note: The use of SwitchTo logic command is invalid in Reports and Messengers.

Runtime requirements

For SwitchTo to work in Runtime the system must be correctly defined in the config.xml file (located at <Developer installation folder>\Unisys\NGEN\Bin). Refer to the Agile Business Suite Installation and Configuration Guide for more information on Runtime configuration.

Restrictions

The following restrictions apply to use of the SwitchTo logic command:

Example

This example uses the SwitchTo logic command on an application deployed to Windows.

SwitchTo SD_System