The Actions component is a navigation component. It presents the user with a list of active links to components, which the user can select from.
Making Actions Visible, Disabled, Marked
The list of possible actions does not need to be static. You can configure it to adapt to specific circumstances.
For each action, you can specify a condition under which the action:
- Appears / does not appear
- Enabled / disabled (for example, the third action in the image above)
- Marked / unmarked
How to specify the "switches"
How do you use a switch then? For example, how do you make an action not appear in certain circumstances?
Well, two steps: (1) select an object to use as the source for switches for the component, and then (2) select a TRUE/FALSE field of that object and specify that (for example) "when this field is TRUE, show the action, otherwise - when the field is FALSE - hide it".
How to select an object to use as the source for switches
In the Logiak Builder, select your Actions component and, on the right, under the Configuration tab, select to edit the actions.
Use Switches button
Now turn on the use of Switches by clicking the "Use Switches" button as shown here below.
You will now be prompted to select which of the available objects you want to use to provide the TRUE/FALSE values for the switches.
Then four new columns appear in the grid, including an Edit column which gives a button to be able to edit each action.
Editing Actions: specifying conditions
When you select to edit an action, a window opens where three drop downs (labelled VISIBLE if, MARKED if and DISABLED if) present you with a list of all the TRUE/FALSE fields in the object selected.
Choosing one of those fields makes the visibility/enabled status/mark of an action depend on the value of that field.
Note, you can also choose whether the relevant status is altered if the value is true, or is false.