Setting A Constant Number of Data Repeater Rows
  • 19 Feb 2024
  • 1 Minute to read
  • Dark
    Light

Setting A Constant Number of Data Repeater Rows

  • Dark
    Light

Article summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.12.1
Root FolderExample Lab- Setting A Constant Number of Data Repeater Rows
Modules None
DependenciesNone

This Example demonstrates how to populate a Data Repeater with a constant number of Rows.


Explanation

For this example, Account Type was used for the Data Repeater input. The Data Repeater displays the following fields: "First Name", "Last name", and "Email". The Flow starts with the Create Data step, which contains an empty list of the Account datatype. The For Loop step is configured to 10 iterations. For every iteration, the Generate Random First Name step will generate a random First Name, and the Generate Random Surname Name step will generate a random Last Name. The Add Item to List step "New Item" input field is set to "Build Data" so that only the three fields set are found on the Data Repeater.

 First Name and Last Name are mapped from the output of the Generate Random First Name and Generate Random Surname Name steps, respectively. The Email field is set to "Merge Plain text," which is configured to "FirstNameLastName@email.com". The original List input is mapped to the empty Account List that was created in the Create Data step at the beginning of the Flow. The Add Item to List step output changes the value to the empty Account List. The updated Empty Account List is mapped to the Form Data Repeater element. When the "Main Flow" Flow is run, a Form will be displayed with only 10 entries on the Data Repeater.

Reference Articles




Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production-quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.12.1. or later, using our Importing/Exporting article.





Was this article helpful?