Report Preparation/Management


The Report Preparation/Management screen enables you to associate SQL stored procedures with queries and reports.

General Report Preparation/Management Information

Detail View Header

The field in the top section of this tab defines the data that displays.

Report ID

Identifier of the report currently selected in the grid and for which the stored procedure provides support. This field has a list box. The report description displays to the right of the ID.

Detail View

The data fields in the bottom section of this tab define basic information about the report. Unless otherwise indicated, these fields are required.

Description

Description of the stored procedure. Optional, free-format area.

Related Query/Report generator report name

Query/Report Generator report associated with the stored procedure in the Name of processing stored procedure field. This field has a list box. Optional.

Name of processing stored procedure

Name of the SQL stored procedure to execute in preparation for running the report in the Report ID field. The stored procedure may include any statements and operations that it supports.

Name of cleanup stored procedure

Name of the SQL stored procedure executed to cleanup (delete) data from a previous execution of the processing stored procedure. To ensure that no data from a previous execution will be mixed with data for the current execution, you should execute the associated cleanup stored procedure with the same instance ID before you run a processing stored procedure. The cleanup stored procedure in this field must take exactly one argument or parameter (e.g., an instance ID) and should consist of SQL delete statements in the following form:

Stored procedure information

The values of any parameters or arguments that the stored procedure requires when it executes. Separate the values with semicolons (;). Enclose strings, characters, dates, and times in single quotes (‘). When the stored procedure is executed, the semicolons are converted to commas, creating a comma-separated argument list. Required if the Stored procedure field on the Manage tab of the Queries/Reports -> Query Report Generator screen specifies a procedure name.

Prepare now using instance ID

If this field has a check, the processing stored procedure is executed. You must enter a value for the instance ID in the unlabelled field to the right. Because this value disappears after you process the record, for reference purposes you should type this number in the Description field.

Delete data using instance ID

If this field has a check, the data stored in connection with an instance ID is deleted. You must enter a value for the instance ID in the unlabelled field to the right.