Using a Data Flow on a Data Repeater
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Using a Data Flow on a 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.0
Root FolderExample Lab - Data Flow on Data Repeater
Modules None
DependenciesNone

This Example Lab project demonstrates how to use a data Flow on a data repeater to populate the fields of an individual item in the repeater. When using a data Flow on a data repeater it is important to leave "Refresh all the components listening to this data name" unchecked to see the expected behavior.


Explanation

This Example Lab project displays a Form with a data repeater. The data repeater uses an entity called Employee. Two instances of the Employee type are included in the project with ids 1234 and 56789. By running the main Flow, the user will be able to add items to the data repeater list which have a field for employee id, first name, last name, email, and address. By typing the employee id into the designated field, the other fields automatically populate. This is accomplished with a data Flow on the user control repeater called Employee DR, which takes the entered employee id as input, fetches the employee by the id, and returns the other fields on the returned entity. It is important that the outputs from the data flow have the "Refresh all the components listening to this data name" option set to false in order to update the selected item in the data repeater. If this option is set to true, all items in the repeater will have their fields updated with the details returned by the last run of the data Flow.

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





Was this article helpful?