Add Custom Log Report - Advanced Topic - Report Design - Adding Visible Report Parameter Filter - Example 1
Add Dataset for new Parameter Filter
- Click the database icon on the right to select the appropriate table that will provide options for the Parameter Filter.
- Click the 'NEW DATA' button in the DATA section's footer. See image above.
- Click the 'Existing' option for the DATASOURCES and then select 'Your Company ID (ex. XXXXX)' from the drop-down.
- Click the 'CONNECT DATASOURCE' button in the DATASOURCES section's footer. See image above.
- Expand the 'dbo' folder in the left pane to see the Corecon Views (160).
- Drag a View that will be used by the Parameter Filter. Example: vw_POInfo
- Name the Dataset. Example: dsPOTypes
- Toggle the Code field to the right to modify the default SQL code.
- Modify the SQL code so it provides an All option and returns distinct entries for the Report Parameter with proper sorting.
- Click Finish
Add Visible Report Parameter
- Click the Report Parameter icon on the right and then click 'New Parameter' in the footer section.
- Enter the Parameter Name and Prompt.
- Select the Data Type. Examples: String (Selected), Integer
- Set Visibility to Visible
- Click 'Assign Values' link
- Set the 'Available Value' settings per the image below.
- Click the 'Default Value' tab
- Set the Default Value to the 'All' option.
- Click the 'OK' button
- Set the 'Save' button to save the Report Parameter.
Modify the Main Dataset SQL's WHERE CLAUSE
- Click the database icon on the right to view the existing datasets.
- Click the three vertical dot button on the main dataset then choose Edit. See image above.
- Scroll to the bottom of the SQL statement to view the WHERE clause.
- Add the additional Report Parameter filter as shown.
- Click Finish
Save Report Changes
- Click the 'Save Report' link at the top to save these changes.
Completed Example
Copyright © 2023 Corecon Technologies, Inc.