As was mentioned above in the section on the Property Editor, you can add variables to your report using the Global and Local tabs. Placing the name of this variable in angular brackets in a string on the report then causes the value of the variable to print out when the report is printed.
Note that there are three types of variables:
| • | User: When the report is printed, the user will be prompted on the Print Report screen for the values of these variables before printing starts. The value for the prompt should be entered in the Else Value field in the list. You can specify the initial value for this variable in the Value field. |
| • | Computed: These variables are computed either by Totalling (see Secondary Loops), Calculations, or they contain the values specified in the Value field in the list. The value in the Value field can be an expression, and can contain calls to functions available on the Functions Tab. |
| • | Conditional: Here you can specify a Condition, Value and Else Value. |
Printing Variable and Field Values
Putting angular brackets around a word indicates to the report printing engine that this is possibly a local or global variable (see the Property Editor), or a field in one of your report tables. When printing the report, IP.Tree will replace that part of the string with the current value of the variable, or with the value in the field of the current record in the table.
You can find all the local and global variables available to this report on the Local and Global tabs of the Property Editor. All the fields of the tables used in your report can be seen on the Fields Tab of the Property Editor. If your report is a Graphic report, you can drag and drop these fields onto any report band in the Graphic Band Editor above the field list.
Built-In Keywords
There are some built-in keywords such that if they are encountered in a string in angle brackets, IP.Tree will perform a certain action. The are essentially variables and are treated in exactly the same way. The following are examples:
| • | <formfeed>: When IP.Tree runs into this, it immediately starts a new page. For text reports it starts a new page immediately and prints the remainder of the band its on on the next page. For graphic reports, it finishes printing the current band before starting a new page. |
| • | <page>: This will be replaced by the current page number. |
| • | <linenumber>: Only for text reports. This will be replaced by the current line number on the page. |