Use this task to test templates and formatting scripts in the System Debugger.
To test a template
-
Select the column with template in System Debugger from Templates.
-
Select the column with the template you want to test under Notifier column.
-
Select the object in Database object to which to apply the template.
-
Check the Transaction with roll back option for running the templates.
Use this option to specify whether the template is run within a transaction with subsequent rollback or whether the template is run immediately against the database.
-
Select one of the following actions to test the template.
Save |
The object is saved. |
Discard |
The changes made to the object are discarded. |
Load |
The object is reloaded. |
New |
A new object is created. |
Run |
The template is run again. |
To test a formatting script
-
In the System Debugger, select the column with the formatting script in Formats.
-
Select the object in Database object to which to apply the formatting script.
Use this task to test methods in the System Debugger.
To test a method
-
In the System Debugger, select the method in the Dialog methods area.
-
Select the object to apply the method to under Base object.
-
Check the Transaction with roll back option for running the methods.
Use this option to specify whether the method is run within a transaction with subsequent rollback or whether the method is run immediately against the database.
-
Select Run.
The method starts running.
Use this task to test table scripts in the System Debugger.
To test table scripts
-
In the System Debugger, select the table and table script from the Tables view.
-
Select the object to test the table script on under Database object.
-
Check the Transaction with roll back option for running the table scripts.
Use this option to specify whether the table script is run within a transaction with subsequent rollback or whether the table script is run immediately against the database.
-
Select the following actions to test the table script.
Save |
The object is saved. (OnSaved, OnSaving) |
Discard |
The changes made to the object are discarded. (OnDiscarded, OnDiscarding) |
Load |
The object is reloaded. (OnLoaded) |
New |
A new object is created. |
NOTE: Ensure you recompile the database after making changes.
To save changes to the database
-
In the System Debugger, select the script, template, formatting script, method, or the table script.
-
Select the Scripts > Save script menu item.
This opens a dialog displaying the script name, database object, database connection, and script code to be added.
-
Select a change label under Change labels to group your changes.
-
Click Save.
TIP: To save several scripts in the Scripts view, hold the CTRL key down, click on the scripts and select the Scripts > Save script menu item.