Actions

Overview

💡Actions let your administrator add custom, one-click steps to BOS Pro, such as updating a field on selected orders or checking a rule before you continue.

  • Actions were added in version 26.04.
  • Each Action belongs to a module (or to a Custom Report) and runs a list of steps in order.
  • Every Active Action is listed for all users. If you were not given access to an Action, running it shows "Access denied" and nothing is changed.

Where to Find Actions

Screen Where
QuotationsThe Actions dropdown on the Quotation item screen (runs on the open Quotation) and on the Quotations list (runs on the selected rows).
Sales Orders and Work OrdersThe Actions dropdown on the edit view (runs on the open order) and on the list view (runs on the selected rows).
Custom ReportsThe Actions button next to Output, and the right-click menu on the report results. Actions run on the selected rows. The Actions button appears only when the selected report has Actions.
Global ActionsThe Actions menu on the main menu bar. It appears only when at least one Global Action is Active.

A list view only offers the Actions set to run on multi-selected rows (see Execute in Header Explained).

On the edit views, Actions are listed under a Custom Actions heading. After an Action runs, the screen refreshes, including its items, status colour and read-only state.

List View

Navigation

Main Menu > Setup > Actions

Buttons Explained

Button Description
ViewDisplays the Actions that match the filters.
NewCreates an Action. Select its module: Quotations, Sales Orders, Work Orders, Custom Reports or Global. A new Action starts as Pending.
ActionsDisplays the Import (.json) option, which imports an Action from a file. The imported Action is Pending: check its Users Access before you set it to Active.
MenuA submenu with these options:
  • Reset Data Filter
  • Layout: Save Grid, Save Grid (All Users), Restore Default (All Users)
CloseCloses the screen.

Filters Explained

Filter Description
ModuleAll, Quotation, Sales Order, Work Order, Custom Report or Global.
ReportFor Custom Reports: the report whose Actions are listed.
Pending, Active, CancelledCheckboxes. The statuses to list.

Fields Explained

Field Description
Field Chooser (*)Used to add or remove columns.
IDHidden by default. The Action's number.
StatusPending, Active or Cancelled. An Action runs only when it is Active.
ModuleThe module the Action belongs to.
ReportFor Custom Reports: the report the Action belongs to.
DescriptionThe Action's name, as it appears in the Actions menus.
ExecuteActions (Single), Actions (Multi-selected) or Main Menu (see Execute in Header Explained).
Users AccessThe users who can run the Action.
Created, Updated, Updated ByHidden by default. When the Action was created and last updated, and by whom.
Menu (...)The right-click options:
  • Edit Users Access
  • Export (.json): saves the Action and its items to a file.
  • Copy
  • Edit
  • Delete: deletes the Action and its items, after you confirm.

Edit View

Buttons Explained

Button Description
Back arrowReturns to the list.
Up and down arrowsMove to the previous or next Action.
EditLets you change the Action.
NewCreates an Action, as on the list.
SaveSaves your changes.
ActionsA submenu with these options:
  • Export (.json)
  • Import (.json)
  • Copy
  • Delete
MenuA submenu with these options:
  • Settings: Edit Users Access
  • Layout: Save Grid, Save Grid (All Users), Restore Default (All Users)

Header Explained

Field Description
StatusPending, Active or Cancelled, with a status note next to it.
No.The Action's number.
ModuleThe module the Action belongs to.
ReportFor Custom Reports: the report the Action belongs to.
CaptionThe Action's name, as it appears in the Actions menus.
ExecuteWhere the Action is offered. The options are:
  • Actions (Single): only on the edit view, where it runs on the open record.
  • Actions (Multi-selected): on the edit view and on the list view, where it runs on the selected rows.
  • Main Menu: for Global Actions, on the Actions menu of the main menu bar.
NoteA note about the Action.
UpdatedWhen the Action was last updated, and by whom.

Item Buttons Explained

Button Description
Add ItemAdds a step. A new step is an Execute SQL step.
NotesShows or hides each step's note under it.

Item Fields Explained

Field Description
Field Chooser (*)Used to add or remove columns.
ID, Order IDHidden by default. The step's number and its place in the order.
TypeError, Warning, Confirm or Execute SQL (see Steps).
DescriptionThe step's description, or the message it shows.
SQLThe SQL that an Execute SQL step runs.
Created, Updated, Updated ByHidden by default. When the step was created and last updated, and by whom.
Menu (...)The right-click options:
  • View/Edit Note
  • View/Edit SQL: opens the SQL editor (see SQL Template).
  • Copy Item
  • Delete Item: deletes the step, after you confirm. The other steps are renumbered.
  • Move Up, Move Down: change the order in which the steps run.

How to Set Up Actions

Note

You must have Settings access to set up Actions.

Navigation

Main Menu > Setup > Actions

  1. The list shows the Pending and Active Actions. Filter by Module (and Report for Custom Reports) or Status, then click View.
  2. Double-click an Action to open it, and click Edit to change it.
  3. Add the steps the Action must run, in order (see Steps).
  4. Set the status to Active when the Action is ready. New and copied Actions start as Pending, and an Action runs only when its status is Active.
  5. Choose who can run the Action (see Users Access).

Steps

Each Action has a list of steps that run in order:

Step Description
Error messageShows a message and stops the Action.
Warning messageShows a warning. The user can cancel before the next step runs.
Confirm messageAsks the user to confirm. The user can cancel before the next step runs.
Execute SQLRuns the SQL you enter in the SQL editor (see SQL Template).

Users Access

  • Open Users Access from Menu, from the edit view's Actions dropdown or by right-clicking an Action.
  • Move users between the Available and Selected lists. Only the selected users can run the Action.
  • The arrow buttons save and move to the previous or next Action without closing the window.

Copying, Exporting and Importing Actions

  • A copied Action is named after the original, followed by "(Copy)", and starts as Pending.
  • Actions can be exported to a file and imported from a file, to move them between databases.

SQL Template

The SQL Template button in the SQL editor inserts Firebird examples for the Action's module:

  • An update of the selected records.
  • A call to a selectable procedure that returns a message.
  • A call to a procedure that does not return a message.

The IDs of the selected records are passed as :IDS and the user as :STAFFID.

Note

Inside an execute block, always write the parameters with the colon (:IDS, :STAFFID). Without it, Firebird reports Column unknown IDS. A procedure that has output parameters must be called with returning_values.

Report an issue with this page

For more useful feedback, select the text on the page you're reporting about, then click Feedback again — or continue without selecting anything.