Custom Actions List and Edit Views
Actions can be used to:
- Automate processes
- Add a layer of control
- Provide additional information
Actions can be created for:
- Transactions: The action is written for a specific transaction.
- Services: The action is written for a specific Service Type.
- Custom Reports: The action is written for a specific custom report.
- Global: These actions are not linked to specific modules but add specific functions to QuickEasy BOS, such as generating commission invoices or printing Point of Sale (PoS) receipts. These actions must be added to a menu and are executed by selecting the menu item.
How Actions Work
- Actions consist of an ordered list of items that are executed in sequence.
- Each item contains SQL that is run on the database and optionally returns a note.
- If a note is returned, it appears as a message to users.
- The input variables that can be used in the SQL are determined by the module the action is linked to.
- Multiple items, including duplicate items (e.g. multiple error messages), can be linked to an action.
- User Access must be assigned to each action.
- Actions use a fixed status list, and only those with an Active status are executed.
- 0-Pending
- 1-Active
- 3-Cancelled
- The Execute options are:
- Transactions / Service Types
- Actions (Single): Can be executed from the applicable Edit View > Actions (button).
- Actions (Multi-selected): Can be executed from the applicable:
- List View > Actions (button)
- Edit View > Actions (button)
- Custom Reports
- Actions (Single): Can be executed from the applicable context menu.
- Actions (Multi-selected): Can be executed from Edit View > Actions (button).
- Global
- Main Menu: Executed from the menu item the action is added to. New global actions are set to Main Menu.
- Transactions / Service Types
List View
Buttons Explained
| Button | Description |
|---|---|
| View | Displays a list of actions. |
| Arrow on View (button) | Reset Data Filter: Resets all the data filters. |
| New | Creates an action of the selected Type. The Type cannot be changed afterwards. |
| Actions | Import (.sql): Imports a script. |
| Menu | Layout |
Filters Explained
| Filter | Description |
|---|---|
| Type | Select an action type from the dropdown list. |
| Status checkboxes | Filter the results by certain statuses. If none of the boxes are checked, all the entries appear. |
Fields Explained
| Field | Description |
|---|---|
| Field Chooser (*) | Add or remove columns. |
| ID | The system-generated number for the entry. |
| Status | The entry’s status. |
| Type | The type of action. |
| Module | The module for which the action was created. |
| Description | The action’s description. |
| Execute | The action’s execution method. |
| Created | The date on which the action was created. |
| Updated | The date on which the action was last updated. |
| Updated By | The user who last updated the action. |
A submenu with the following options:
|
Edit View
Buttons Explained
| Button | Description |
|---|---|
| Arrows | Navigates to the next or previous action. |
| Edit | Edits the content. |
| New | Creates an action of the type selected from the dropdown list. |
| Save | Saves any changes. |
| Actions |
|
| Menu | Settings
|
Fields Explained
Info
Fields marked in blue (✎) can be edited.
| Field | Description |
|---|---|
| Status | Select from a dropdown list of statuses. |
| Status Note | Enter an optional status note. |
| No. | The auto-generated action number. |
| Type | The type of action as selected when the action was created. |
| Transaction / Service / Report | Depending on the type, select a Transaction Type, Service Type or custom report from the dropdown list. |
| Execute | Depends on the type. The options are usually:
|
| Caption | The caption on the menu. |
| Note | Enter a note. |
| Item (button) | Adds another item that must be executed. |
| ID | The system-generated number for the item. |
| Order ID | The system-generated number for the item’s order on the list. |
| Type | Select:
|
| Description | Enter a description of the item. |
| File Extension | A dropdown list of file extensions. These extensions are used for import and export purposes. |
| SQL | Checkbox. Checked if SQL is added. |
| Created | The date on which the item was created. |
| Updated | The date on which the item was last updated. |
| Updated By | The user who last updated the item. |
A submenu with the following options:
|
SQL Input Parameters
- The Template button in the SQL editor can be used to generate sample SQL to show how parameters can be used.
- Note: The SQL Editor has a Procedures tab: right-click it to generate the Call… SQL.
- Global
- user_id: The active user_id is assigned.
- file_content: The content of the imported file (Import SQL items only).
- Transaction
- trans_header_ids: A comma-separated list of the selected ids (e.g. 1,2,34 OR 1).
- user_id: The active user_id is assigned.
- Service
- project_ids: A comma-separated list of the selected ids (e.g. 1,2,34 OR 1).
- user_id: The active user_id is assigned.
- Custom Reports
- pk_ids: The primary keys are assigned (first column of the report).
- user_id: The active user_id is assigned.