- 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Dynamic Data Repeater Contents
- Updated on 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Overview
Example Lab Details | |
Version | [6.2.0] |
Root Folder | [ExampleLab.DynamicDataRepeaterContent] |
Modules | [None] |
Dependencies | [None] |
This project serves as an example for utilizing a selector, in this case a radio button list, to dynamically determine what content gets placed within the drop-down on a data repeater.
Explanation
In the main Flow of this project, a simple structure is built to contain a list of Accounts and a list of Folders. First a list of said structure is initialized, which will then be passed to a simple data repeater on a Form. This data repeater holds two components, a two item radio button list (Account or Folder) and a drop down list. On the source definition of the data repeater there is a data flow that is used to populate the drop down on the repeater. Based on the user's selection on the radio button list the data flow within the repeater will fetch either Accounts or Folders, the names of which are then mapped back to identical data names. This allows the repeater's drop down to contain either a list of the email address field from Accounts or a list of Folder names.