Creating a Mixed Type Data Repeater
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Creating a Mixed Type Data Repeater

  • 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.9.2
Root FolderExample Lab - Mixed Type Data Repeater
Modules None
DependenciesNone

This Example Lab project demonstrates how to create a data repeater that can utilize more than one type of Form component.


Explanation

This project work by using a series of data Flows in order to add and remove items from the data repeater and lists. Upon running the main Flow, in this example that is titled "Run Me" A from will be displayed with several options on the left-hand side. 

On the upper left, there is a text box labeled "Name" Inserting text here will label any Form component subsequently added to the data repeater with said input.  

Clicking the "Add Text Element" will add a textbox to the data repeater and clicking "Add Dropdown Element" will add a dropdown list. There is also a list displayed at the bottom left which can have values added and removed at any time. Adding values to this list will allow any subsequently added dropdown elements to be pre-populated with the contents of the list. The list can then be altered before adding another dropdown list for another unique entry to the data repeater.

Each button in the Form works by running a data Flow upon being clicked. For Example When the "Remove From List" button is clicked the "Remove From List" data Flow will be run. This data Flow takes in the selected list item and the original list. These inputs are then passed into the Remove Item From List step where the selected item will be removed from the list. Once the item is removed the new list will then be output by the Flow and refresh the list displayed in the Form.

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.9.2 or later using our Importing/Exporting article.





Was this article helpful?