Editing Scripts
All the areas in which you can enter scripts support the usual text editing assistance such as color syntax highlighting, content assist and error markers. For example, if you want to specify a data field called Field, enter the character "F", then press Ctrl + Space. All matching data fields are displayed:
You can then select the desired data field from the list and continue entering JavaScript:
In this case there is an error marker next to the line. This is because validation has reported an error in the Problems view. TIBCO Business Studio provides validation for the JavaScript syntax.
You can position the cursor over the error marker to display the reason for the error:
When these errors are corrected, the error marker and the corresponding entries in the Problems view are removed.
Content assist also provides templates for common JavaScript constructs. For example, if you enter if, then press Ctrl + Space, you can use the following template to construct an if else construct:
Content assist similarly provides prompting for the properties of common data types and for data type conversions, as in the following example where the user has selected content assist after typing Number.
(See ’Script Functions’ in the Business Data Services Guide for details on data type transformations supported.)