Edit Reports Tutorials
Custom reports are created and edited with SQL in Edit Reports, on the Setup menu, and viewed in Custom Reports. You must be familiar with SQL to use this module effectively. Creating customised reports for customers is also one of the services QuickEasy offers.
💡These tutorials explain how to create, edit, copy and delete custom reports, populate their fields, and add filters and drilldown actions.
How to Create a Custom Report
A new report appears in the Custom Reports dropdown list only after you restart QuickEasy BOS.
- Navigate to Edit Reports.
- Click New (button) and fill in the fields as follows:
- Description = Enter a description for the report.
- Code = Enter an abbreviated description for the report.
- Chart Type = Select a type of chart from the dropdown list. This selection can be changed later.
- Note = Enter an explanation of what the report shows (optional).
- Create the Fields.
- To add a chart:
- Check one box below Chart Category for the field that groups the data (for example, the quotation number).
- Check one or more of the boxes below Chart Series to populate the chart.
- Note: Not all fields result in meaningful charts.
- Create the Filters.
- Create any Drilldowns.
- Click Menu (button) > Edit User Access.
- To grant access, move the users from the Available to the Selected section using the arrows in the middle.
- Click Save (button).
How to Populate the Fields
- The Tables and Params tabs provide data fields that you can use to write SQL queries.
- The Functions tab lets you access and customise pre-written database functions (queries) and then filter and sort the information into a format that suits your needs.
- From editing a custom report, click Actions (button) > Edit SQL.
- Add any data from the tables:
- Click Tables (tab).
- Double-click a field to add it or right-click the field and select Create Select SQL.
- Note: You can right-click a table and select Show Fields to see the fields it contains.
- Double-click a field to add it or right-click the field and select Create Select SQL.
- Click Tables (tab).
- Add any data from the functions:
- Click Functions (tab).
- Right-click the applicable function and select Create Select SQL.
- Click Params (tab) and double-click any of the available fields to add them to the SQL query.
- Click Test (button) on the bottom row to check for basic SQL errors. The results appear on screen. Click OK (button).
- Click Save (button).
- Close the popup and wait a few seconds for the tables to be populated with the data.
- On the Fields tab, edit the following fields:
- Caption = Replace the field name with a user-friendly caption.
- Editor = Select an option from the dropdown list.
- Note: The Editor column is prefilled with the type of data that is contained in the field.
- Alignment = Choose a different alignment from the dropdown list (optional).
- Summary = Choose a summary option for the field if applicable.
- Visible = Uncheck the fields that you do not want to show (e.g. ID fields that contain numbers, or caption fields).
- Decimals = If the Editor option is Number, enter the number of decimals.
- Fieldname Colour = Select a field from the dropdown list that you want to use as a colour filter.
- Navigate to the field you want to apply the colour to.
- Select the field from the dropdown list that contains the SQL instruction to set a colour based on a certain condition.
- Note: This feature is similar to conditional formatting in a spreadsheet.
- Fieldname Caption = Select a field from the dropdown list if you want to add an additional caption.
- Navigate to the field you want to apply the caption to.
- Select the field from the dropdown list that you created to generate the caption based on some condition (e.g. the name of the current month).
- Click Save (button).
How to Create or Edit Filters
Filters appear above the report and work in the same way as filters in other reports (list views). Creating filters is optional.
- From editing a custom report, click Filters & Drilldown (tab).
- Click Edit (button) on the top row if it is not blue.
- In the Filters section on the left, the fields you can use as filters are prefilled. You can also create more filters by completing the top row. Enter or edit the fields as follows:
- Type = Select a type from the dropdown list (the default is Fixed ID). The options are:
- Date: Filters on a specific date.
- Period (Date Start and Date End): Filters the records based on a period.
- Text List: Create a lookup list to filter the data.
- Right-click the entry and select View/Edit Lists.
- Enter the entries for the lookup, one entry per line.
- Click Save (button).
- The checkbox in the Value List column is checked.
- Key Value Pairs (Comma separated): Replace a certain lookup field (as entered) with a different value (as entered).
- Right-click the entry and select View/Edit Lists.
- Enter the entries for the lookup, one entry per line in the format: Output, Value (e.g. 1, Active).
- Click Save (button).
- The checkbox in the Value List column is checked.
- SQL (Returns: filter_key, filter_value): Replace a certain lookup field with a different value (as determined by an SQL query).
- Right-click the entry and select View/Edit SQL.
- Complete the SQL query (see Steps 1 to 6 on How to Populate the Fields).
- Close the SQL popup.
- If the query was created successfully, the checkbox in the SQL column is checked.
- Fixed ID: Uses a fixed ID.
- Enter the applicable ID in the Fixed ID column.
- Caption = Enter a caption for the filter.
- Type = Select a type from the dropdown list (the default is Fixed ID). The options are:
- Click Save (button).
How to Create a Context Menu Action (Drilldown)
The drilldown function is optional. You can use it to define actions that are available from the context menu (e.g. open the customer account). You can include as many drilldown options as you need. The available drilldown modules are:
- Asset
- Contact
- Item
- Service
- Transaction
- From editing a custom report, click Filters & Drilldown (tab).
- Click Edit (button) on the top row if it is not blue.
- On the right (Drilldown section), create any actions as follows:
- Type = Select Module (to open a particular module) or Attachment (to open a URL).
- Module = Select a module from the dropdown list. Applies only if Module was chosen as the Type.
- Fieldname = Select the field name to link the action to from the dropdown list.
- Menu Caption = Enter the caption that the user sees when they right-click the entry.
- Repeat step 3 to create more actions (optional).
- Click Save (button).
How to Edit a Custom Report
- Navigate to Edit Reports.
- Right-click the report you want to edit and select Edit Report.
- When the interface opens, click Edit (button) on the top row.
- Edit the report as needed.
- Note: To edit the SQL, click Actions (button) > Edit SQL.
- Click Save (button) on the top row if it is not greyed out.
How to Copy a Report
- If the list is filtered so that the copy is not shown, the message “Report copied, but it is not shown in the list (check the filter).” appears. Clear or change the filter to find the copy.
- If the report no longer exists, for example, because another user deleted it, the message “Report not found - not copied.” appears and nothing is copied.
- Navigate to Edit Reports.
- Right-click the report you want to copy and select Copy Report.
- Note: When the report is open, you can also click Actions (button) > Copy Report. Any unsaved changes to the report are saved first.
- Click Yes (button) on the message “Copy Report?” to confirm.
- The copy opens for editing. Its description is the report’s description with “- Copy” added at the end. The copy has the same code, note, SQL, chart type, fields, filters, drilldowns and user access as the original report.
- Change the Description and Code, and edit the report as needed.
- Click Save (button).
How to Delete a Report
- Navigate to Edit Reports.
- Right-click the report you want to delete and select Delete Report.
- Confirm the deletion on the popup.
Tips
- Regularly save changes: Click Save (button) frequently to avoid losing changes, especially when editing fields, filters or SQL.
- Use descriptive names: Ensure report descriptions and codes are clear to make them easy to identify in the list view.
- Test SQL queries: Validate SQL queries in a separate environment before applying them to avoid errors.
- Leverage drilldowns: Use drilldowns to link reports to related modules for quick access to detailed data.
- Manage filters carefully: Ensure filter parameters match the SQL query to avoid runtime errors.
Troubleshooting
- Invalid SQL error:
- Check the SQL query for syntax errors or missing parameters. Ensure all referenced tables and fields exist.
- Fields not updating:
- Verify that the SQL query is valid and saved. Fields are generated based on the query’s output.
- Filters not working:
- Ensure filter names match the parameters in the SQL query and that the correct filter type is selected.
- Drilldown not working (when viewing the report):
- For modules, verify the field contains a valid ID.
- For attachments, ensure the URL is valid and accessible.
- “No SQL Statement Provided” Error:
- The selected report lacks a valid SQL query. Edit the report to provide a query.
- Note: This error message shows when you try to view the report.
- The selected report lacks a valid SQL query. Edit the report to provide a query.