Using Data Flows to Select a Value in Drop Down Lists
  • 08 Jul 2022
  • 1 Minute to read
  • Dark
    Light

Using Data Flows to Select a Value in Drop Down Lists

  • 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.10.1
Root FolderExample Lab - Data Flow Change Drop Down Value
Modules None
DependenciesNone

This Example Lab project demonstrates how to use a Data Flow to change the selected value in a drop-down box on a Form.  It is important to check "Refresh all the components listening to this data-name" for the output of the Data Flow to see the expected behavior.


Explanation

This Example Lab project displays a Form with a checkbox and a drop-down box. Changes to the checkbox value will trigger a Data Flow to run, which changes the selected value in the drop-down box. The Data Flow runs a Rule to determine the value of the checkbox. If the checkbox value is set to "True" the "return" value on the Output String step will be 3, and if "False" it will be set to null. This value is then passed to the End step.  

In the Data Flow Editor, it is important that the Flow output name is identical to the drop-down box output, and that "Refresh all components listening to this data-name" is checked. This ensures the selected drop-down down value updates every time the Data Flow runs. "RunOnValueChanged" in the Flow Input Editor should also be checked to trigger the start of the Data Flow when the checkbox value changes.

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





Was this article helpful?