Report forms are user-designed report definition screens for users to provide criteria when generating Crystal Reports. See Designing user search forms (on page ).
The Report Form Designer is a User Form Designer program that allows you to create or modify report forms. The program is divided into the following components:
Field |
Description |
---|---|
Control & Property Definition |
Allows you to build forms using a range of control objects and specify properties on these objects. |
Editable Objects and SQL Syntax |
Allows you to link objects to the database fields used in a report and then place conditions on these fields. |
Report Form Designer window key fields and buttons
Fields
Field |
Description |
|
---|---|---|
Seq |
A sequence number is used to order and uniquely identify each of the objects that are used on a form. |
|
Source |
As per the Report Selector, Report Forms can belong to various resource types. |
|
|
Site |
User-defined objects. All custom reports and alterations of Synergetic Management Systems reports must be saved as this resource type. |
|
CDA |
Synergetic Management Systems defined objects. |
|
Stand |
Customised reports that are used in Standalone versions of Synergetic. That is, Assessment/Reporting Crystal Reports. |
|
Std CDA |
Synergetic Management Systems reports used in standalone versions of Synergetic. |
Buttons
Button |
Description |
---|---|
|
Allows an object to be inserted into an existing sequence of objects after the selected object. It forces the sequence number of subsequent objects to be updated. |
|
Inserts an object before the selected object and moves the following lines down. |
|
Delete the object and all its related properties that are highlighted in the above grid. |
|
Save the changes you have made to the user form or report selection window. |
|
As each object is added to the form with its accompanying SQL syntax, the SQL query in the Crystal Report can be modified by the objects added. The Crystal Report is used to return the data in the report. |
|
Calls the report definition screen and allows it to be tested. |
Control and Property Definition fields
Field |
Description |
---|---|
Type |
Used to specify the type of object used on the form. That is, Label, ComboBox, GroupBox, Button and so on. |
Parent |
Parent field is a numeric field used to group objects together. GroupBoxes are objects that are used to group like objects together. The parent object for each GroupBox is generally the form, which is indicated by the parent number of 1. Objects contained inside this GroupBox have a parent number of 2. Each GroupBox is then given a sequential parent number and so objects included within these boxes are assigned that parent number. |
Top Rel & Left Rel Right Rel |
Position of an object on a form is determined by its distance relative to the location of the preceding object. The sequence number therefore plays an important role in governing this. |
Label Caption |
Optional setting useful for describing objects on the form. |
luSQL or luTable |
When a DBLookupComboBox control or similar object is selected from the Type drop-down list, these two fields become available. |
Additional Properties |
Used to specify additional properties of the control specified in the Type field. For example, the height, width and captions used for a GroupBox must be specified here. The default dimensions of most control objects can be altered using this field also. |
Field Ref |
Makes it possible to reference a database field so that its value can be called in the luSQL field of another object. For example, for an assessment report it is necessary to be able to select values from the SubjectAssessment class code field. As the values of this class code vary for each of the File Years, File Semesters and File Types, these fields can be referenced in the Field Ref: field. The screen capture below demonstrates how the File Type is handled.
|
Editable Objects and SQL Syntax fields
This component of the User Form Designer alters the SQL WHERE clause, SQL JOIN clause or add a report parameter depending on the selections made.
Field |
Description |
|
---|---|---|
Passed to Crystal Reports |
Used to specify how the SQL Server statement from the Crystal Report is altered or if a Crystal Report parameter is being added to the form. |
|
As |
Selection |
Description |
|
Where |
The selection dynamically alters the WHERE clause in the SQL statement of the report being executed. |
|
From |
Alters (and adds to) the FROM clause. That is, the JOIN parameters. |
|
Rep Para |
Is passed to the Crystal report as a parameter to be manipulated used in the report. For example, this might be used to change the sorting in the report. See Designing user forms (on page ). |
Field Name |
This field contains the name of the database field or parameter that is linked to the control object. |
|
Field Type |
Used to specify the data type of the field or parameter used. The possible data type values are Integer, Varchar, NVarChar, Bit and Date. |
|
Default Value |
This is an optional field that sets the default value for the field in question when the report definition screen is opened. |
|
Select Join |
This is used to determine the logic that occurs between the selections made in the WHERE clause of the SQL Server statement. The available joins are:
|
|
Select Operator |
Select operators are available to be used in conjunction with the database field/parameters used in the SQL Server statement. The available select operators are:
|
|
Sort Order |
The order the objects appear in. |
|
Clear All-able |
If set, the selected database/parameter field value is cleared by the Clear All button on the selection grid. |
|
Mandatory |
If set, the database/parameter field must have a selected value before the report will open. |
|
Tip: When a report definition screen has been developed or modified it is a good idea to test it thoroughly by entering a value in every field. If the report appears on the screen (regardless of whether it returns any data), you can be sure that the report definition screen is working.
Tip: You can also hold the shift key and click to see the SQL statement including any field values chosen on the window by the user.