Report Builder

Report Builder Order(Sort)

 

 


Report Builder

Report Builder 'Order'

About Report Builder 'Order'

The Report Builder 'Order' or 'Sort' is used to define the order of a Report. For example, a list of pupils together with their contacts may be printed in Pupil Order, Contact, House, Form etc. order according to the User's requirements.

If an order is not defined when creating a report query, the resulting report will be in 'natural order', i.e. the report will not necessarily be printed in any particular order.

The report Order may be defined either when creating a new report using Query Wizard, or via Query Designer either when creating a new Report, or amending an existing report.

 


Report Builder

Report Builder 'Order'

Setting the Report Order via Query Wizard

Query Wizard is a tool to guide the User through creation of a new Report Query. The Query Wizard 'Order' screen is one of the screens offered as part of this creation.

1.

From the 'Order' screen, select the 'Set Order' radio button.

 

 

 

 

 

A list of all available fields will be listed.

 

2.

Select the Field which is to be used as the primary sort in the report by highlighting and then selecting . E.g. if the report (using the Current Pupils table) is to appear in Form Code order, select 'Current Pupils.Form Code'. The selected Order field will then be shown under 'Selected Fields'.

 

 

 

 

3.

If, within Form order, the report is to be listed in Pupil Code order, select 'Current Pupils.Pupil Code' as the second sort.

 

 

 

 

 

4.

Continue selecting additional fields for order purposes as required. The second selected field will be a sub-sort of the first. The third will be a sub-sort of the second and so on.

 

 

 


Report Builder

Report Builder 'Order'

Setting the Report Order via Query Designer

Query Designer is a tool for creation/amendment of Report Queries. Query Designer may be accessed either upon creation via the 'Report On' - 'New Items' screen. Or, when amending a Report/Query by selection of either 'Report On' or 'Report Layout' ('Data' tab).

1.

Select the Query Designer 'Sort' screen.

 

 

 

2.

Select, (by double-clicking), the required 'Field' from the top section of the screen which is to be used as the primary sort in the report. E.g. if the report (using the 'Current Pupils' table) is to appear in 'Form Code' order, select 'Form code'. The selected Order field will then be shown under 'Sort Fields' in the bottom section of the screen.

 

 

 

 

When the report is run using this report query, the records will be listed in Form code order.

 

By default the Form code order will be in ascending order. If Forms are to be listed in descending order, enter a tick in the 'Desc (z>a)' field.

3.

If, within Form code order, the report is to be listed in Pupil Code order, select 'Code' as the second sort.

 

 

4.

Continue selecting additional fields for order purposes as required. The second selected field will be a sub-sort of the first. The third will be a sub-sort of the second and so on.

 

 

 

Note: Selected fields may be moved up and down the screen into their correct position by highlighting and using and .

 

Ascending/Descending order

By default each selected field will be printed in ascending order on the report.  If you wish a field to be printed in descending order on the report, highlight the applicable field in the 'selected fields' section of the screen, and select .

 

5.

When all Sort requirements have been entered, click on to return to the main Query Designer screen.

 


Report Builder

Report Builder 'Order'

Editing the Report Order

The Report Order may be edited either using:

(i) Query Wizard(during initial Query creation only). To later edit the Report Order, use Query Designer.

or

(ii) Query Designer (either during initial creation or later)

 

(i) Editing Report Order using Query Wizard:

1.

Access the Query Wizard 'Order' screen.

2.

Add/Remove/Move the Order fields as required.

(See 'Setting the Report Order via Query Wizard' (above) / 'Removing Order Detail' (below) as applicable.)

 

(ii) Editing the Report Order using Query Designer:

1.

Access the Query Designer 'Sort' screen.

2.

Add/Remove/Move the Order Fields as required.

(See 'Setting the Report Order via Query Designer' (above) / 'Removing Order Detail' (below) as applicable.)

 


Report Builder

Report Builder 'Order'

Removing 'Order' detail

From Query Wizard or Query Designer:

1.

Access the Order (Sort) screen.

 

 

2.

double-click the mouse on the order line to be deleted. (or, if using Query Wizard, highlight the field for deletion and select ).

 

The Order line will be removed from the Query.

 

 


Report Builder

Report Builder 'Order'

Example

The example below shows the layout of a report if Order Fields are selected as follows: