Report Builder Maintenance

Report Builder Search

 

 


Report Builder Maintenance

Report Builder 'Search'

About Report Builder 'Search'

Report Builder 'Search' is a tool which may be used when defining a Report Query. A Search is used to reduce the number of records included in the report. For example, a Form listing will include all Forms on the System by default. If a selection of Forms only is to be included, then Search Criteria must be entered. Likewise if a pupil list is to include only those pupils which are boarders, search criteria must be set.

Searches 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.

The 'Help' below describes entering, editing and deleting search criteria within a query - using both Query Wizard and Query Designer, together with a list of examples.


Report Builder Maintenance

Report Builder 'Search'

Entering 'Search Criteria' via Query Wizard

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

Note:   Search Criteria entered via Query Wizard requires entry of the search criteria and values at the time of report creation e.g. if a search on a range of Forms is required, the Form range has to be entered when creating the report via Query Wizard. If entry of search values at the time of running the report is required (i.e. so that different values may be entered each time that the report is run), then Search criteria should be entered via Query Designer (See 'Entering Search Criteria via Query Designer' below).

To enter Search Criteria via Query Wizard:

1.

From this 'Search' screen, select the 'Define Search Criteria' radio button.

 

 

 

 

2.

To enter Search criteria. Right-click the mouse over the 'Criteria' box

 

 

 

 

The following options are then available:

 

3.

To add a new Criteria, click the mouse on 'Insert Criteria'. The following screen will be given:

 

 

 

 

 

4.

Enter detail as follows:

 

 

Field

Select the field on which Search Criteria is to be set. The list of fields available is the list of fields selected for inclusion in the report on the Query Wizard 'Fields' screen.

For example, to include just a selection of Forms in a report, select e.g. Forms.Code.

 

Operator

Select the required function. The following functions are available:

See 'Examples' for examples using each type of 'Operator'

 

=

equals

 

<>

is not equal to

 

<

is smaller than

 

<=

is smaller than or equal to

 

>

is greater than

 

>=

is greater than or equal to

 

Like

(used with a wildcard '%') includes specified characters.

 

Not Like

(used with a wildcard '%') does not include specified characters.

 

Between

IS between (two specified values)

 

Not Between

IS NOT between (two specified values)

 

In List

N/A

 

Not In List

N/A

 

Blank

show only those applicable records which DO NOT have an entry against this field

 

Not Blank

show only those applicable records which DO have an entry against this field.

 

 

Value

Enter the value required to complete the basic search criteria.

 

See 'Examples' for example Search Criteria.

 

5.

The following options are now available:

 

 

(i)

Add another criteria

Add an additional Criteria to the query e.g. include all pupils in Form 1A (first criteria) which are in Boarding House 'GREEN' (second criteria). Go to Item 2. above. (See Example 11).

 

Or,

 

 

 

(ii)

Expand existing criteria

Go to 6. below:

 

 

 

6.

To expand an existing criteria, highlight the criteria to be expanded and then right click the mouse to give the following options:

 

 

 

 

 

 

The options for expansion of a criteria are explained below:

 

 

Insert 'OR'

to add an additional Criteria to be used as an alternative to the first. e.g. include only pupils in Form 1a (first criteria) OR pupils in Form 2a (second criteria). - See Example 12..

 

 

Insert 'NOT'

to add an additional Criteria to be a sub-criteria of the first e.g. include all Pupils in Academic house 'FALCON' (first criteria) which are NOT Boarders (second criteria) See Example 13.

 

 

Add Parentheses

to enter 'brackets' around a part of an entered criteria. These 'brackets' are indicated with the words 'begin' and 'end' See Example 14.

 

 

Note: Criteria/parts of criteria may be moved up and down the screen into their correct position by use of and .

See 'Examples' for example Search Criteria.

 


Report Builder Maintenance

Report Builder 'Search'

Entering 'Search Criteria' via Query Designer

Query Designer is a tool used 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 'Search' screen.

 

 

2.

Select (by double-clicking) the required 'Field' from the top section of the screen for which a criteria is to be defined e.g. to select 'Current Pupils.FormCode' double click the mouse on the Current Pupil Table 'Form Code' field.

 

 

 

 

This selected field will then appear in the 'criteria' section of the screen.

 

3.

The rest of the detail for this search criteria may now be entered as follows:

 

 

Operator

Select the required function. The following functions are available:

See 'Examples' for examples using each type of 'Operator'.

 

 

=

equals

 

<>

is not equal to

 

<

is smaller than

 

<=

is smaller than or equal to

 

>

is greater than

 

>=

is greater than or equal to

 

Like

(used with a wildcard '%') includes specified characters

 

Not Like

(used with a wildcard '%') does not include specified characters.

 

Between

IS between (two specified values)

 

Not Between

IS NOT between (two specified values)

 

In List

N/A

 

Not In List

N/A

 

Blank

show only those applicable records which DO NOT have an entry against this field.

 

Not Blank

show only those applicable records which DO have an entry against this field.

 

 

Value

Enter the value required to complete the basic search criteria.  This field may be left blank if a value is to be entered at the time of running the report (see 'Autosearch' below).

 

 

Autosearch

Tick this box to allow entry of a 'Value' at the time of running the report.  When the report is run, the System will prompt for entry of a value.

If this field is not ticked, then a value must be entered into the 'Value' field above.

 

 

Mandatory

(If Autosearch has been selected above). Tick this box if entry into the 'Value' field at the time of running the report is mandatory.

 

See 'Examples' for example Search Criteria.

 

4.

The following options are now available:

 

 

(i)

Add another criteria

Add an additional Criteria to the query e.g. include all pupils in Form 1A (first criteria) which are in Boarding House 'GREEN' (second criteria) . Go to Item 2. above. (See Example 11).

 

 

Or,

 

 

 

(ii)

Expand existing criteria

Go to 5. below:

 

5.

Highlight the criteria line which is to be expanded.

 

 

 

6.

Right-click the mouse. The following options are available:

 

 

 

 

 

 

The options for expansion of a criteria are explained below:

 

 

Insert 'OR'

to add an additional Criteria to be used as an alternative to the first. e.g. include only pupils in Form 1a (first criteria) OR pupils in Form 2a (second criteria). - See Example 12.

 

 

Insert 'NOT'

to add an additional Criteria to be a sub-criteria of the first e.g. include all Pupils in Academic house 'FALCON' (first criteria) which are NOT Boarders (second criteria). - See Example 13.

 

 

Add Parentheses

to enter 'brackets' around a part of an entered criteria. These 'brackets' are indicated with the words 'begin' and 'end' See Example 14.

 

Note: Criteria/parts of criteria may be moved up and down the screen into their correct position by use of and .

See 'Examples' for example Search Criteria.

 


Report Builder Maintenance

Report Builder 'Search'

Editing Search Criteria

Search Criteria may be edited either using

Query Wizard (during initial Query creation only). To later edit Search Criteria which was initially entered via Query Wizard, use Query Designer.

Query Designer (either during initial creation or later)

The following 'Help' options are available below:

 


Editing Search Criteria

Editing Search Criteria via Query Wizard

1.

Access the Query Wizard 'Search' screen.

 

 

 

2.

Highlight the criteria line to be edited

 

 

 

 

 

3.

Right-click the mouse to get the following screen:

 

 

 

 

4.

Select Edit Criteria.

 

 

 

 

 

The selected criteria line may now be edited as required

 

See 'Entering Search Criteria via Query Wizard' for further information on Search Criteria entry.

 


Editing Search Criteria

Editing Search Criteria via Query Designer

1.

Access the Query Designer 'Search' screen.

 

 

 

 

 

2.

Click the mouse in the field to be edited, and make amendments as required.

 

See 'Entering Search Criteria via Query Designer' for further information on Search Criteria entry.

 


Report Builder Maintenance

Report Builder 'Search'

Removing Search Criteria

From Query Wizard or Query Designer:

1.

Access the 'Search' screen.

 

 

 

2.

Highlight the Search Criteria line to be deleted.

 

 

 

3.

Right-click the mouse in the 'Criteria' box on the Search screen.

 

 

 

4.

Select 'Remove'

 

 

 

The Search criteria line will be removed from the Query.

Note: To remove a parentheses, select 'Remove Parentheses' instead of 'Remove' from the list of options.

 

 

 

Or, (Query Designer only)

 

1.

Access the 'Search' screen.

 

 

 

2.

Highlight the Search Criteria line to be deleted.

 

 

 

3.

Double-click the mouse.

 

 


Report Builder Maintenance

Report Builder 'Search'

Examples

 

 

FIELD

 

OPERATOR

VALUE

 

1.

XZ_AD_CURR_FORMS.FORMS_CODE

  =

1A

Will include only the Form with the Form Code '1A'.

2.

XZ_AD_CURR_FORMS.FORMS_CODE

 

  <>

1A

 

Will include all Forms except 1A.

 

3.

XZ_AD_CURR_DETAILS. DATE_OF_BIRTH

 

  <=

31/08/1994

To list only those pupils whose date of birth is on or before 31st August 1994.

 

4.

XZ_AD_CURR_DETAILS.START_DATE

  >=

01/09/2005

To list all those pupils who started at the school on or after 01/09/2005.

 

5.

XZ_AD_CURR_DETAILS.SURNAME

Like

A%

To include only those pupils whose surname starts with 'A'.

 

6.

XZ_AD_CURR_DETAILS.POST_CODE

Not Like

BA6%

 

To list all pupils whose postcode does not start 'BA6'

 

7.

XZ_AD_CURR_DETAILS.DATE_OF_BIRTH

Between

01/09/1995,31/08/1996

 

To list all pupil's whose date of birth are between 1st Sept 1995 and 31st Aug 1996 (inclusive).

 

8.

XZ_AD_CURR_DETAILS.UNIQUE_CANDIDATE_ID

blank

 

Will list only those pupils which do not have a candidate number.

 

9.

XZ_AD_CURR_DETAILS.LEAVE_DATE

Not Blank

 

To include only those pupils which have a leaving date entered against their record.

 

10.

XZ_AD_CURR_DETAILS.BOARDING_HOUSE

XZ_AD_CURR_DETAILS.FORM

  =

  =

GREEN

1A

 

To include all pupils in boarding house 'Green' which are also in Form '1A'.

11.

XZ_AD_CURR_FORMS.FORMS.CODE

OR

XZ_AD_CURR_FORMS.FORMS.CODE

 

 =

 

 =

1A

 

2A

To include only those Forms with a code of either 1A or 2A.

 

12.

XZ_AD_CURR_DETAILS.ACADEMIC_HOUSE

NOT

XZ_AD_CURR_DETAILS.PUPIL_TYPE

 =

 

 =

FALCON

 

BOARD

Lists all those pupils which are in Academic House 'FALCON' but which are NOT boarders (i.e. category type 'BOARD')

 

 

13.

XZ_AD_CURR_FORMS.YEAR_CODE

begin

XZ_AD_CURR_FORMS.FORMS.CODE

OR

XZ_AD_CURR_FORMS.FORMS.CODE

end

 

 =

 

 =

 

 =

01

 

1A

 

1B

To include all Forms with a code 1A or 1B which are in Year 01.

Note:
(i) 'begin' and 'end' mark the start and end of a parentheses.

(ii) If the parentheses were not included in the criteria the search result would be different. In this instance, the criteria would include all Year 01 Forms with a code 1A, as well as all those forms with a code 1B (regardless of year).