Changing the Section Properties using a Format Script

The Format Script dialog enables you to set properties for report sections from within scripts. This provides conditional control of properties such as item color and visibility so that they depend on values being reported. The properties displayed in the Format Properties category of the Fields list box depend on the section from which the format script dialog is accessed.

Click the Format Script button on the section properties dialog to define section format scripts. If a format script exists for the select section, the Format Script button is blue, if no script exists, the Format Script button is gray. The Format Script form, shown in the following image, is then displayed. Setting the section values in the format script, overrides the selections made on the Section Properties dialog.

The Format Script dialog that you use to define and maintain format scripts is similar to that used for user scripts, except that a format script does not require a name and return type. In addition, a format script is always a full script rather than a single expression.

For details about writing scripts, see Appendix A, "Using JADE Report Writer Scripts".