Updating A Checkbox Using Data Flow
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Updating A Checkbox Using Data Flow

  • 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.12.1
Root FolderExample lab-Updating A Checkbox Using Data Flow
Modules None
DependenciesNone

This Example lab demonstrates how to use a Data Flow to update checkboxes on a Form.


Explanation

The Main Form contains the following: one drop-down element, three checkboxes, and one outcome button. The three checkboxes are disabled so users cannot modify them. These checkboxes will be updated by the Data Flow. The Drop-Down element is set to static and has the following four options: "Checkbox 1","Checkbox 2", Checkbox 3", "All Checkboxes". The Data Flow takes in the Drop-down selection from the Main Form. The String Match step evaluates the Flow input and the Flow goes down one of the paths. The Create Data step holds the three checkbox Boolean values. Depending on which selection was made from the Drop-down on the Main Form, the Boolean variables in the Create Data step are set to True or False. The Data Flow outputs the three Checkbox values. On the Main Form, the outputs of the Data Flow are set to "Refresh all the components Listening to this data name". The output name for these outputs need to match the data name of the Checkboxes. The trigger for the Data Flow is set the selection change on the Drop-down element. This configuration will allow the checkboxes to be updated when the Drop-down selection is changed.

To test this example, run the "Run Main Form" 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.12.1 or later using our Importing/Exporting article.





Was this article helpful?