You can use Actions, which are linked to Reports, to update the selected records in a Report. These actions are customisable and there are very few limitations to what they can do. Examples of how Report Actions can be used, include:
Bulk Invoicing of Subscriptions
Creating Purchase Orders for Materials that have reached their minimum inventory level
Adding interest to overdue accounts
Batch changing of Transaction Status.
Report Actions bypass all the Security and Audits in the application, so they need to be created with care and access needs to be strictly controlled.
Actions are setup in the 'Actions' tab of the Report editor. Fields include:
Description - This will be used as the Caption in the Actions menu
Confirmation - This will be used as the Confirmation message - leave this field blank if a confirmation message is not required
Note - A description of what the Action is expected to do.
SQL - The SQL that will be executed when the Action is fired. Access this field by clicking the Action button in the Grid and selecting 'Edit SQL'. Right-clicking on the Action grid will also open the popup menu.
The SQL is the heart of the Action and will be executed once for every selected record in the Grid. It contains the Update statement that updates data or executes a procedure to update the data.
The SQL can contain Parameters that match the Field names in the report. A list of available Parameters is available from the Parameter list at the bottom left of the SQL Editor.
When a Report that contains Actions is viewed, the Action menu will appear at the right of the Report's data grid. Actions are applied to the visible and selected records in the Grid and can be executed in any one of the following ways:
Double-click the Action in the Action Menu
Select the Action, select the records to be Actioned and press Enter.
Select the Action, select a Record, press Enter, scroll to next record, press Enter, etc.
The Report's Key Field (The first field in the Report) is used to locate & refresh records so ideally it will be the Primary Key of the principle table in the Report.
Add a Field to the Report to provide visual feedback that the Action was successfully executed. eg. If you are updating the Status of Transactions, make sure the Status field is visible in the Report.
Multiple records can be selected in a Report using the same methodology used to select multiple files in a Windows folder. ie.
Ctrl+Click - to select or unselect a specific record
Shift+Click - to select a range of records
Ctrl+A - to select all the Records in the Grid