The Methods list box of the Add Script Field dialog contains standard methods that you can apply to your single expression formulas.
These methods are made available to the JADE Report Writer designer at the configuration stage. (For details, see "Selecting Script Methods", in Chapter 3.)
The methods are arranged by type, as shown in the following image in which the Date folder has been opened to display its methods.
The majority of these methods apply only if you are creating full scripts. For details about the available methods, see Chapter 1 of the
To select the field to which to apply a method
Double-click the field in the Fields list box.
In the example, the sales date is selected and is displayed on the Script Code sheet, as shown in the following image.
To apply a method to the expression
Expand the relevant folder in the Methods list box.
In the example shown in the following image, the Date folder is opened.
Double-click the required method.
The method is then applied to the field on the Script Code sheet.
In the example shown in the following image, the monthName method is selected and is automatically applied to the date value, as shown in the following image.
When the resulting script field shown in this example is added to your report, the month name is printed rather than the full numeric date.
For details about the procedures required to apply your script to your report, see "Deriving String Fields", in the previous subsection.
The Commands list box, Fields list box, and the Methods list box of the Add Script Field or Update Script Field dialog are described in:
Appendix B, "Script Commands"
Appendix C, "Script Fields"
Chapter 1 of the
If you encounter errors in your scripts, see "Resolving Errors in Scripts", later in this appendix.