Static Sections

Static section properties have three tabs:

Main Tab

Section position

The default value is the position of the section in the report. Valid positions are:

Name

This defaults the section name, which you can change by entering a new name and clicking the Save icon. Give the section a name that describes its purpose.

You can change the database name to something that is easier to recognise and describes the collection in common terms — for example, All Customers or All Inventory Items.

Content

This is only applies repeating sections. It displays the collection of the section.

Type

This section displays the type of object that is being displayed for the collection (it only displays Company for sections that do not contain collections). For example, if the collection is myARControl:allCustomersCode, the type is containing Customer.

Visibility Indicators

These options determine when/how the section displays on the report:

Style Tab

These properties apply to the physical format of fields added to the section. Most of the options are also available on the baseline toolbar.

Note: When these properties are changed, the change only applies to fields added to the section subsequent to the change. Any fields that exist in the section before editing the style properties are not updated with the new style.

Other Tab

This tab indicates whether there are any internal parameters in use, and if so, whether any of the values are determined when this section processes. Click Create and/or edit parameter settings to view the report parameters and options.

A list of all the parameters set up for the report display. In this example, the isUsingJC parameter value is the one determined by the section - this is because the query is in Edit mode instead of Define mode Edit the query for this parameter).

For any parameter, use this form to either define a query that determines the value of the parameter (for true/false parameters only), or to assign a database property to the parameter. Set an internal parameter this way to store that value print it on the report.

The query or value assigned to the parameter can be set at a section level, so it can change depending on the section that is being processed when the report runs. The concept is similar to using a coding variable if the value of the variable can change depending on conditions.

Note: Using internal parameters requires some advanced knowledge of report design.

Example

You want to print some text on the last page of the report and require some way of determining which is the last page. To do this, first, set up a parameter that is not visible to the user at runtime, for example:

other 1

The Initial Value in this case does not matter because the value of the parameter is determined by a query. If the section to add the last page text to is the report footer, access the section properties and click Create and/or edit parameter settings in the Other tab:

other 2

Click Define a query for this parameter to open the Query Designer:

other 3

In this example, you must use the pre-defined method: is page last in report. This method is coded to establish when the last page is printing for a report. Set up the query as:

other 4

This query sets the criteria that when the value of the is page last in report method is selected, the value of the Is Last Page? parameter is true.

Add the text to the report footer using a label field, for example:

other 5

Now set a visibility condition on the field so that it only prints if the parameter Is Last Page? is selected.

other 6

When the report runs, the text THIS IS MY LAST PAGE: Message only prints on the last page.