- 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Editing a List
- Updated on 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Overview
Example Lab Details | |
Version | 6.9.2 |
Root Folder | Example Lab - Textbox List Editor |
Modules | None |
Dependencies | None |
This Example Lab project demonstrates how to create a new, customized list based on a pre-existing list.
Explanation
This project allows the user to create a new, customized list from a pre-existing list by adding, removing, and editing values on the new list from the original list. This is accomplished by displaying the new and original list side by side in a Form while using Form buttons to execute the add, remove, and edit actions. The add and remove actions are both carried out using data Flows which implement the Remove Item From list and Add Item to List steps. The edit action uses a Sub Dialog Button which allows for specific inputs to be passed into a separate Flow and the output to be passed back into the Form.
The "Edit List" Flow works by taking in the two inputs from the Form, the selected item, and the customized list. The Flow then displays a Form to allow for the user to specify what they would like the selected item to be replaced with. That item is then added to the list using the Add Item to List step and the previously selected item is removed using the Remove Item From List Step.
This project's Main Flow requires an input of a list of string to populate the original list. For ease of use, there is a unit test that can be used saved in the Flow's debugger.