PEERNET Reports allows you to insert your own Java code into requests, reports and labels for use in specific situations. In the Properties Pane of the project window, click the button beside the fields outlined below to go to the Code View and insert your code. Note that the application places some code into this view by default when you click the button; the code you add should be typed into the line marked TODO: your code goes here, as shown in the following graphic:
The code you insert should be standard Java syntax, and can include predefined variables (CurrentProject, Page, Pages, Record, Records, ActiveSection), built-in functions (Now(), Time(), Date()), and parameters and/or fields.
Adding event methods to labels
Label items can include the following event methods:
On Open
Allows you to insert code for use when the label is opened.
On Close
Allows you to insert code for use when the label is closed.
On No Data
Allows you to insert code for use when the label contains no data.
On Format
Allows you to insert code for use when the label is laid out for printing.
Adding event methods to reports
Report items can include the following event methods:
On Open
Allows you to insert code for use when the report is opened.
On Close
Allows you to insert code for use when the report is closed.
On No Data
Allows you to insert code for use when the report contains no data.
Adding event methods to report headers
Report header sections can include the following event methods:
On Format
Allows you to insert code for use when the report section is laid out for printing.
On Retreat
Allows you to insert code for use when components are called back and instead placed on the next page of the report.
Adding event methods to report page headers
Report page header sections can include the following event methods:
On Format
Allows you to insert code for use when the report section is laid out for printing.
Adding event methods to report details
Report detail sections can include the following event methods:
On Format
Allows you to insert code for use when the report section is laid out for printing.
On Retreat
Allows you to insert code for use when components are called back and instead placed on the next page of the report.
Adding event methods to report page footers
Report page footer sections can include the following event methods:
On Format
Allows you to insert code for use when the report section is laid out for printing.
Adding event methods to report footers
Report footer sections can include the following event methods:
On Format
Allows you to insert code for use when the report section is laid out for printing.
On Retreat
Allows you to insert code for use when components are called back and instead placed on the next page of the report.