Smart Buttons
Controls/XML Elements
Run Terminal Command <RunCommand>
RunCommand sends terminal (host) commands for Travelport+ (1G). It can be either simple command or command that contains variable.
Configuring
You can configure RunCommand in the Smart Buttons Editor using either the Terminal Command Editor or XML.
Configuring with the Terminal Command Editor
To configure with the Terminal Command Editor:
-
Open the Smart Buttons Editor to create a script.
-
Click Terminal Command <RunCommand> to display the Read from Excel Editor.
-
Configure the attributes.
Attribute
Description
Command Enter the terminal command to send to the host. Variables can be used as part of the command.
Enter the variable in square brackets. For example: RI.Passenger name is [PaxName]
Run standard command Runs a Smartpoint terminal command.
If unselected, the command is sent native mode, which displays data directly from Travelport+ (1G). Native mode can be toggled in Smartpoint, or sent in individual commands with semicolon. For example: ALONNYC;
Clear Screen Clears the screen before running a command. ResponseAll Opens all screens to the bottom.
For example: Enter HMPR to display only the first screen, and the agent needs to move down. However, if the key is set as ResponseAll, the entire page is displayed and moved down.
Run in new tab Opens a new window tab to run the command. Redirects host responses to specific windows/tabs.
Agents can choose in which tab (Classic View) or window (Flex Windows) they want to see the response of host commands.
More InformationFor example, if an agent wants to send two terminal commands and see the response of first command in Tab 1 and response of a second command in Tab 2.
For Classic View, agents can also decide if they want to see the top or bottom part of the tab in the response.
To use in Classic View:
-
Click on a Terminal Command element.
-
In Command, enter terminal host command.
-
Select Run in specific Tab.
-
Select the Tab number.
-
Select Top to display the response in the top part of the tab or Bottom to display in the lower part of the tab.
If these numbers are set up in Flex Windows, the attribute changes to Run in specific Window.
Note:
If a script is built in Classic View, the Top and Bottom modifiers are ignored if the script is run Flex Windows.
For example: A script is created in Classic View to run command responses in the Bottom part of Tab 2. If an agent runs the script in Flex Windows, the Bottom attribute is ignored and the command response is displayed in Window 2.
Important!
If Tab or Window numbers are set up that do not exist, the command response is shown in the current active window.
-
Configuring with XML
If you want to enter the XML code directly in the Smart Buttons Editor, use the following structure for the XML element.
Tip! You can add the XML code directly to the editor by dragging and dropping the blue button for this control.
<RunCommand ResponseAll="False" ShowInNewTab="False"
WithoutRefreshPnr="True" ClearScreen="True" Command="" />
Attribute |
Description |
---|---|
ResponseAll |
True False |
ShowInNewTab |
True False |
WithoutRefreshPnr |
True False |
ClearScreen |
True False |
Command |
Enter the command you want to send. You may want to use variables in square brackets. For example:
|