Run a Function

A function allows you to create a group of functions that can be reused elsewhere in the application. Context is very important to functions. For example, let's say you want to create a function that will update the status of a workorder. The first action inside the function will check to see what the current status of the workorder is. If the workorder is the current record when you create the function, the workorder will need to the be current record wherever you run the function.

The actions inside the function will act upon the item you select when adding the function to Action Manager.

Functions are attached to a table or relationship.

Settings

Action Configuration

Items to Run the Function On

Use the Query Builder to find the record(s) on which you wish to run the actions that are inside the function.

Function to Run

Select a function from the list or add a new function by clicking the plus sign. You can edit a function name after you have selected it by clicking the wrench next to the plus sign. The list of functions you are given is based on the table you selected in the previous step.

Describe this action

Useful as a comment, this description will overwrite the automatically generated description in the Action Manager.

Queue this action

When an action is queued, the subsequent actions continue to process without it. Meanwhile, the queued action and its children process separately. Queue actions that you don't want a user to wait for.

action type - run function.txt · Last modified: 2016/09/14 18:19 (external edit)
Copyright WorkXpress, 2024