Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Why set Minimum and Maximum Records?
On an Actionflow's
connection point(s), a minimum and maximum number of records that should be received by the Actionflow receives before it runs can be defined. If the number of received records received is are not within the set minimum/maximum threshold, the Actionflow will not run. This can be useful for : Insert excerpt _input _input nopanel true
ensuring at least one record is selected before proceeding with an edit.
Setting Minimum and Maximum Records
- Click on the
node to open itsInsert excerpt _input _input nopanel true Insert excerpt _property_tabs _property_tabs nopanel true - Expand the Validation section
- Enter a number for Minimum Records and/or Maximum Records
the propertiesInsert excerpt _finish _finish nopanel true
Worked Example
Here's a worked example using the Shop the Retail Data (available from the Learning Centre).
In this example, we are using:
- A Shop Staff screen containing a grid of the Shop Staff data - this screen was created using the Tile with Buttons template
Tip |
---|
If you are completing this chapter as part of the Actionflow course and using a training instance, the data and screens have already been pre-loaded into the Actionflow Intermediate Application. For this example, we'll be working on the grid on the Shop Staff screen. |
GIF/SCREENSHOT OF FINISHED RESULT
Configuring a Maximum Records Threshold
In this example, we'll set a maximum number of records that can be edited at once.
- Open the Shop Staff screen
- Open the Actionflow on the Edit button
- Click on the
node to open itsInsert excerpt _input _input nopanel true Insert excerpt _property_tabs _property_tabs nopanel true - Expand the Validation section
- For Maximum Records, enter
1
the propertiesInsert excerpt _finish _finish nopanel true Expand title Checkpoint
- Close the Actionflow
- Close and reopen the Shop Staff screen to ensure the changes have taken effect
- To see the Actionflow in action, select multiple records on the Staff grid using the tick boxes, then click Edit
- An error message will show
Tip |
---|
This process can be further enhanced using a pop up screen with a custom message. Within the Actionflow Intermediate Application there is a Error Popup screen that can be configured for this purpose. See 1.11 Calculate Action Configuration for an example of how to map a message onto a dynamic text component. |