Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
_Banners
_Banners
nameactionflow
nopaneltrue

Why set Minimum and Maximum Records?

On an Actionflow's

Insert excerpt
_input
_input
nopaneltrue
 connection point(s), a minimum and maximum number of records that should be received by the Actionflow the Actionflow receives before it runs can be setdefined. If the number of received records received is are not within the minset minimum/max threshold set then an error message will show.maximum threshold, the Actionflow will not run. This can be useful for :

Ensuring

ensuring at least one record is selected before proceeding with an edit.

Setting Minimum and Maximum Records

  • Click on the
    Insert excerpt
    _input
    _input
    nopaneltrue
     node to open its
    Insert excerpt
    _property_tabs
    _property_tabs
    nopaneltrue
  • Expand the Validation section
  • Enter a number for Minimum Records and/or Maximum Records
  • Insert excerpt
    _finish
    _finish
    nopaneltrue
     the properties 
TipFor Insert excerpt_input_inputnamecapsnopaneltrue Connection Points the default Minimum Records is 1.

Worked Example

Here's a worked example using the Shop the Retail Data (available from the Learning Centre).

In this example, we are using:  

  • Shop StockStaff screen containing a grid of the Shop Stock data, a pie chart of the Shop Stock data and a grid of the Shop Departments data  - this Staff data - this screen was created using theMulti- 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 Stock screen.

GIF/SCREENSHOT OF FINISHED RESULT

Counting Stock

Staff screen.

Configuring a Maximum Records Threshold

In this example, we'll create an Actionflow to count the quantity of stock in our Shop Stock data and map this amount back to the screen to display in a field. We'll set 

Screen Setup

set a maximum number of records that can be edited at once.

Image Added

  1. Open the Shop Stock Staff screenUse
  2. the Serene Grey Open the Actionflow on the Edit button
  3. Click on the 
    Insert excerpt
    _paletteinput
    _paletteinput
    nopaneltrue
     to:
    1. Add an Area - Row and position this under the Shop Stock grid
    2. Add a button of your choice to this area - this button will initiate the counting Actionflow
      1. Give this button a suitable name, i.e. Count Stock
    3. Add a String Form Field to this area - this area will display the value returned by the Actionflow
      1. Style the components in this area to your choosing

Actionflow Setup

  1. Open
HTML Comment
hiddentrue
BETTER EXAMPLE: SEND EMAIL ACTIONFLOW, ADD A MINIMUM TO THE EMAIL PHASE. ONLY SEND AN EMAIL IF MORE THAN 2 RECORDS HAVE BEEN UPDATEED?
  1.  node to open its 
    Insert excerpt
    _property_tabs
    _property_tabs
    nopaneltrue
    1. Expand the Validation section
    2. For Maximum Records, enter 1
    3. Insert excerpt
      _finish
      _finish
      nopaneltrue
       the properties

      Expand
      titleCheckpoint

      Image Added


  2. Close the Actionflow
  3. Close and reopen the Shop Staff screen to ensure the changes have taken effect
  4. To see the Actionflow in action, select multiple records on the Staff grid using the tick boxes, then click Edit
  5. 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.


Image Modified