There are seven (7) predefined variables are:

 

 CurrentProject

 Page

 Pages

 Record

 Records

 ActiveSection

 this

 

These variables can be used within field, computed field, parameter expressions as well as within label, report and request code.

 

The CurrentProject gives access to the currently open project and is normally used in event methods found in a label, report and request code.  The CurrentProject implements the com.peernet.report.engine.Project interface, and the methods you can access from this interface are described in the PEERNET Reports Object Model.

 

The ActiveSection is null when there is no active section, otherwise it is the currently active section of a label or report being processed.  The ActiveSection is normally used from a onFormat or onRetreat event method associated with a report or label.  It provides access to the components of the active section as well as properties of the active section and implements the com.peernet.report.engine.Section interface, and the methods you can access from this interface are described in the PEERNET Reports Object Model.

 

The Page variable returns the page number of the current page.

 

The Pages variable returns the total number of pages produced.

 

Hints:

 

To create a text field that produces Page of Pages, use the value expression: =[Page] + " of " + [Pages].

 

To create a text field that produces a continued... until the last page, use the value expression: =[Page] != [Pages] ? "continued..." : ""

 

 

The Record variable returns the current record number of the record source being processed.

 

The Records variable returns the total number of contained the the record source being processed.

 

The this variable is only valid from a non static method of a label, report or request as declared in the code view.  The this variable in label method implements the com.peernet.report.engine.Label interface,  the this variable in a report implements the com.peernet.report.engine.Report interface and the this variable in a request implements the com.peernet.report.engine.Request interface which allows access to the label, report or request properties and the their related methods as described in the PEERNET Reports Object Model.  In Java, the this variable is optional and so it is in PEERNET Reports.