- Print
- PDF
This article demonstrates how to retrieve SQL code from Logic Blocks to generate reports in SQL Designer.
Retrieving the SQL Code
Go to Workflow → Logic Blocks
Click on a Logic Block
Click on the Custom Heading Section
Click on the Clipboard Icon to copy the full SQL Code
Using the Selection Logic in SQL Reports
Go to Reports → SQL Designer
Click on New
Locate SQL Section, paste the SQL Code into the editor
Make necessary modifications based on your specific requirements
Ensure all variables and selection logic placeholders (e.g., ${DateRange: DateRange}) are appropriately filled.
Click on Test to run the report and see the results based on the selected criteria and data fields.
Troubleshooting and Refining
If the report doesn't provide the desired output or encounters errors, review the SQL code for any potential issues or syntax errors.
Make necessary adjustments and repeat the testing process until the report functions as expected.
SQL Report Section
Enter Label: Provide a descriptive label for the SQL report.
Enter Identifier: Input an identifier for the report (optional).
Enter Description: Optionally, add a description for the report.
Output Format Section
Determine Output Format: Select the desired output format from the following options:
HTML
PDF
CSV
EXCEL
TSV
DELIMITED
XML
JSON
FIXED_LENGTH
PIVOT
Header Section
Add Header Image (optional): If desired, include an image for the report header.
Add Header (optional): Optionally, add a header text for the report.
Locate Footer Section
Add Footer (optional): If desired, include a footer text for the report.
Click the Save button with the specified settings for future use.