Editing a List
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Editing a List

  • 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.2
Root FolderExample Lab - Textbox List Editor
Modules None
DependenciesNone

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.

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





Was this article helpful?