Script editor window
The script editor allows you to write and edit scripts.
You can select any of the following scripting languages for your script: VBScript, JScript.Compact, JScript, C#.Net, VisualBasic.Net or JScript.Net.
The language you select will remain selected the next time you start the editor.
Checking scripts
To begin debugging a script, you can:
- Press the F9 key.
- Click the Check button on the toolbar.
- Open the Tools menu and click Check Script.
If no errors are found, the Script is correct. message will be displayed.
If the script contains errors, they will be listed in the error pane. Double-click an error message in the error pane to jump to the fragment with the error in the script editor.
Note: You can save scripts with errors and fix the errors later.
By default, the error pane is displayed at the bottom of the editor. You can change its size of this pane using the mouse. You can also change its location (see below for details).
Customizing the editor
You can use the View menu to customize the appearance of the script editor. The View menu contains the following items:
- Errors Window
Changes the position of the error pane in the editor. You can choose to place it at the top, at the bottom (selected by default), on the right or on the left. - Toolbar
Shows or hides the toolbar. - Status Bar
Shows or hides the status bar.
Adding a custom function
To add a custom function, select one of the following global modules in the drop-down list on the toolbar: Script in <object_name\document_definition_name>, Rule Global Script Module or Export Global Script Module.
Note: You cannot use RTL languages for text constants in the script editor. If you need to add RTL text into your script, use one of the following workarounds:
- Place your RTL text into a user script message or an environment variable.
- Use an external assembly for your project or Document Definition (for more information, see External assemblies).
4/12/2024 6:16:02 PM