The Report from Collection retrieves a collection of records and uses those records to generate a report.

Select the type of datasource that will be used to generate the report.

The Datasource Criteria will be used to ascertain what records to be retrieved.

Values can be passed into Criteria by creating a parameter.
By enclosing a value in { } brackets, that flags the word as a parameter. The name of the parameter, in the picture, would be statename.
Parameters will have the value substituted during the script execution.

If parameters are found in the Criteria, they wil be listed in the Name drop down.
Name – the name of the parameter within the criteria.
Type – type of value to be expected (String, Bool, Date, Decimal, Number).
Variable – the variable that will hold the value. The drop down will contain existing variables or type in a new variable name.
Click the Add button to add the parameter name and value to be substituted.

The Record Criteria will be used to ascertain what report to be retrieved.

Values can be passed into Criteria by creating a parameter.
By enclosing a value in { } brackets, that flags the word as a parameter. The name of the parameter, in the picture, would be statename.
Parameters will have the value substituted during the script execution.

If parameters are found in the Criteria, they wil be listed in the Name drop down.
Name – the name of the parameter within the criteria.
Type – type of value to be expected (String, Bool, Date, Decimal, Number).
Variable – the variable that will hold the value. The drop down will contain existing variables or type in a new variable name.
Click the Add button to add the parameter name and value to be substituted.

Add any parameters the report may have.
Name – the name of the parameter within the report.
Type – type of value to be expected (String, Bool, Date, Decimal, Number).
Variable – the variable that will hold the value. The drop down will contain existing variables or type in a new variable name.
Click the Add button to add the parameter name and value to be substituted.

File Path – the variable that will store the path the report will be saved too. Note: the variable will need to be set prior to this point in the script.
File Type – select the type of file the report will be saved as.

Click Yes to send the generated report to the default printer.
Created Script

Add Text Criteria Parameter – maps a Criteria Parameter to a value to be substituted with.
Get Records – get all records that match a specified Criteria.

Add Text Criteria Parameter – maps a Criteria Parameter to a value to be substituted with.
Find Report – retrieves the first report, in the database, that matches a Criteria and sets that ReportItem to a variable.
Set Report String Parameter – sets a report parameter to a value or variable that wil contain the value.

Generate Report with Data – sets the report datasource to a RecordCollection and generates the report.
Save Report – saves the generated report to a local file path.
Print Report – prints the report to the default printer.