Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Why set Minimum and Maximum Records?

On an Actionflow's  input connection point(s), a minimum and maximum number of records that should be received by the Actionflow can be set. If the number of records received is not within the min/max threshold set then an error message will show.

This can be useful for:

  • Ensuring at least one record is selected before proceeding with an edit

Setting Minimum and Maximum Records

  • Click on the  input node to open its  Properties tab
  • Expand the Validation section
  • Enter a number for Minimum Records and/or Maximum Records
  •  Apply and Close the properties 

For  Input Connection Points the default Minimum Records is 1.

Worked Example

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

In this example, we are using:  

  • Shop Stock 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 screen was created using the Multi-Tile template

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

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

  1. Open the Shop Stock screen
  2. Use the Serene Grey  Palette 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



  • No labels