Using JADE Report Writer Scripts

Report Writer scripts are evaluated during the report output phase. A transient method is created for each script. For every instance of the JadeQueryResult, each transient method is executed using the JadeQueryResult instance. The result of the script is stored in the JadeQueryResult instance.

For scripts that are not printed in the Detail section of the report and that are not referenced in other scripts or summaries (for example, if the script is used only in the Group Footer section), the script is executed only for the JadeQueryResult instance that is current for the section in which the script is printed.

While the use of JADE Report Writer scripts is a powerful and convenient tool, your system designer must keep in mind that providing a method on the class to retrieve the required data is usually more efficient, because the JADE Report Writer script is called as a transient method and every data access is a callback to retrieve the property from the JadeQueryResult object.