- 08 Jul 2022
- 1 Minute to read
- Print
- DarkLight
Using Data Flows to Select a Value in Drop Down Lists
- Updated on 08 Jul 2022
- 1 Minute to read
- Print
- DarkLight
Overview
Example Lab Details | |
Version | 6.10.1 |
Root Folder | Example Lab - Data Flow Change Drop Down Value |
Modules | None |
Dependencies | None |
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.