Set flag
See also: Unset flag, Working with flags
Actions – Abstract
The Set flag action sets the flag specified by the Flag name in the context of the form, so that the behaviour type Check flag, that refers to this flag, returns the check result 'true'.
The Set flag action sets the flag specified by the Flag name in the context of the form, so that the behaviour type Check flag, that refers to this flag, returns the check result 'true'.
If the flag in question was not set before the action was executed, the triggering event Flag changed is triggered, so that other behaviour can be executed within the form.
►NOTE◄ Linking an element has no effect on this action.
Example
In a portal that is opened as a modal dialog on request, an 'account statement' (a list of all invoices and, if applicable, incoming payments) should be displayed for a customer determined by context when opening the portal. The relevant data series is obtained by a Tuple search (Form designer) behaviour, the results of which are written to a Repeatable element that is shown with the 'Grid' display type. If there are any irregularities in any row of the displayed 'History' regarding payment behaviour, a corresponding warning symbol will appear above the list.
Runtime example:
The example shows several overdue invoices with incomplete incoming payments.
The relevant validation criteria are primarily checked when each 'row' is filled in the Repeatable element container.
At the time of the screenshot (06/26/2020), the invoice listed in the first position is not yet due. Therefore the second row appears selected.
For the selected row (in the detail area), the [!] symbol is displayed at the end of the row if there is an irregularity.
If there is an irregularity with at least one row, the 'thumbs down' symbol appears in the form header (see image above).
Configuration:
|
For the text field 'Outstanding', which displays the difference between the 'Amount invoiced' and the 'Payment receipt', a number of behaviours are configured as shown on the left. The expanded behaviour ('alert') is the only one that contain the Triggering event and actions, while the other two only provide check results for the Logical condition in the 'alert' behaviour:
|
|
The 'thumbs down' Image/Icon is set to invisible when opening the form. The 'paymentAlert' behaviour shown on the left is configured for this element:
|
|
In addition, the behaviour shown on the left is configured for the text input 'Outstanding', which sets the focus on 'Outstanding' in the first invoice with irregularites, and thus also ensures that its detailed data is immediately visible because the corresponding row is selected:
|