|
|
|
BlueCielo TeamWork 2012 VBScript API Reference | BlueCielo ECM Solutions |
The TeamWork Script Editor is a simple text editor for entering VBScript code, as shown in the following figure. This code is saved in the TeamWork vault configuration. The code for each configuration expression is saved as a separate code block and all of the TeamWork event procedures code is saved as one code block. To edit a code block, open the TeamWork Script Editor from the place in Configurator where the code block is applied.
The TeamWork Script Editor is composed of several elements described in the following table.
Number | Name | Description |
---|---|---|
1 |
Toolbar |
Contains buttons for saving and loading code from disk, transferring text with the Clipboard, searching code for text, and evaluating expressions. NEW
|
2 |
Object Browser |
Displays a tree view of the VBScript built-in functions and constants, and the TeamWork objects, properties, methods, functions, and constants. For information about the TeamWork objects, see Understanding the TeamWork object model. For information about the TeamWork functions, see Understanding the TeamWork functions. |
3 |
Code pane |
The area for entering VBScript code. |
4 |
Events and Procedures |
Displays a tree view of the TeamWork events and any custom functions that have been defined. For information about the TeamWork events, see Understanding TeamWork event procedures. This view is only available when editing the TeamWork events, as described in Creating and editing event procedures. |
5 |
Status bar |
Displays indicators for the current script’s validity (if the Use validation option is enabled) and the current cursor position. |
The TeamWork Script Editor can help you to build correct VBScript code by listing all available objects, functions, and constants for easy selection so that you do not need to remember the names of every TeamWork object and their properties and methods; and every VBScript function and constant. When you select an object in the Object Browser, the editor enters the object name for you in the code pane automatically. When you then enter a period, which delineates a subclass of the current object, the TeamWork Script Editor displays a popup list of the current object’s properties and methods for selection. Also, when you select a method name from the list and then enter a parenthesis to indicate that you will specify the parameters of the method, the editor shows a tooltip in the code pane of all required and optional parameters to assist you.
As you enter VBScript code in the code pane, the TeamWork Script Editor constantly monitors the syntax of the code. When the current code is correct, the status bar displays Script is valid. If the syntax of the current code is incorrect, the status bar displays the error and the location of the error so that you can easily correct it. If you are entering a configuration expression, when you are finished entering code, you can test the code by clicking the Evaluate Expression button . The TeamWork Script Editor will evaluate the expression and display the result so that you can confirm that the result is what you expect.
Related concepts
Understanding the Microsoft Script Debugger
Understanding configuration expressions
Understanding the TeamWork object model
Understanding the TeamWork functions
Understanding TeamWork event procedures
Understanding automation objects
Understanding object arguments
Understanding VBScript and Web Access
Related tasks
Related information
Copyright © 2000-2012 BlueCielo ECM Solutions |