ScriptPro Editor This topic is for use by scriptwriters who are using ScriptPro Editor to create custom scripts for their agencies. Agents can go to Using ScriptPro Scripts for more information about using custom or standard scripts within Travelport Smartpoint. |
Script Design Limits
Script size
A single script may have unlimited line lengths and an unlimited number of lines. Because of the complexity of such large scripts, it is highly recommended that a single script call or chain to other scripts to complete specific logical functions. This helps when script maintenance is required.
Number of variables
The number of variables contained within a script is unlimited. However, the maximum length of any text variable information is 4080 characters.
Number of controls
Dialog boxes may contain an unlimited number of controls, however a maximum of 50 is recommended. See Control Characteristics.
List files
List files, which are created in the ScriptPro Editor, contain the data for listbox, combobox, validbox, singlelist, and multi-list control fields. The items appear in the same order as they are input in the ScriptPro Editor, one item per line, left aligned. List files are saved with the file extension .LST in the develop folder, but are automatically copied to the prod file when compiled.
Script file names
Script file names are not case sensitive and are not restricted in length.
Note: All Travelport Standard Scripts (scripts provided by Travelport) begin with Z4 and ScriptPro Library Scripts begin with W4 to alphabetically group them at the bottom of the list. To keep Travelport Library and Standard Scripts separate, scriptwriters should not give scripts names beginning with W4 or Z4.
Script file name extensions
The extensions associated with script file names, and an explanation of each, are identified below.
Parent/Child scripts
-
A parent (or primary) script is a script that can run independently.
-
A child (or secondary) script is a script that only runs when invoked by a parent script or another child script.
Show Related Files
When a Parent or Child script is displayed in the editor, all the associated files can be found by selecting Show Related Files from the right click menu.
A popup displays all the files that are related to the file that is displayed. The tree format allows for collapsing of the associated file.
Select the files to be opened, zip, or copied by checking the file or selecting all files from the header bar.
The table below lists and describes the elements of the Related Files window.
Number |
Element |
Description |
---|---|---|
1 |
Open Files |
All the selected files select will be opened in a separate tab. |
2 |
Zip Files |
Files selected can be zipped and saved to desired location. Select files and then the type of file. A popup browse box will be displayed to select the location to copy the zip files. |
3 |
Copy Files |
Files selected can be copied and saved to desired location. Select files and then the type of file. A popup browse box will be displayed to select the location to copy the files. |
4 |
Compile Files |
After selecting the Parent and/or the Child scripts to be compiled, click Selected under the Compile option. |
5 |
Not Readable |
Files that are associated, but the develop file is not available will show a message. Does not exist or is not readable. |