To test a script
|Run in debug mode||Jumps into the source code. This allows you to use all Visual Studio debugging options.|
|Define base data||The variables "base" and "value" of the script base class can be pre-allocated as input parameters to be used in the script.
Base is initialized with a DB object key in order to use base.GetValue("column name").String.
|Transaction with Rollback||Use this option to specify whether the script is executed within a transaction with subsequent rollback or the script is executed immediately against the database.|
The script starts executing. After the script has executed, the result and the execution time of the script is displayed.
You can use the Script Editor to create scripts. Enter the name of the script in the Script Editor and a skeleton script body.This you can export to the script library where you can edit the script with the System Debugger.
To edit a script, select it in the script library, start the script in debug mode. Visual Studio debug and edit options are available to you.
IMPORTANT: You are not permitted to edit VI-Key comments in the source code or to delete them because they label each code block and are needed for backing up scripts in the database.
To save a script in the database
This opens a dialog box displaying script name, database object, database connection and script code to be added.
NOTE: Ensure you recompile the database after modifying scripts.
You can use the System Debugger to load objects from the database and debug templates and formatting scripts as they execute.
To test a template
|Transaction with Rollback||Use this option to specify whether the template is executed within a transaction with subsequent rollback or the template is executed immediately against the database.|
|Save||Saves the object.|
|Discard||Discards changes made to the object.|
|Load||The object is reloaded.|
|New||Creates a new object.|
|Execute||Executes the template.|
To test a formatting script