Saving Selected DropDown Item into Defined Type

Saving Selected DropDown Item into Defined Type

Comments

  • Hello,

    I have a question regarding the drop-down list component that may exist in a form. Is there any way I can display a list of outcomes based on a data structure field I created?

    [img]att1[/img]

    (I would like to display the following “categories” as a drop down list in order to for the user to select one of the “categories” and for it to be saved into my data structure.)

  • [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Hi,[/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Please check the below steps about creating a dynamic dropdown list component based on your data structure. Explanations are based on the attached example project. I created a Defined Data Structure named Computer and its Color property is being created by dropdown menu selection data.[/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]1. Use Fetch Entities step to fetch current data to your flow. You need to select your data type in the Type Name section.[/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif][img]att1[/img][/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]2. Create a form with a data grid inside to enable data selection. Create another form with a dropdown static list. Map Initially Visible Data as the output of Fetch Entities step in the second form. Complete mapping as shown below.[/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif][img]att2[/img][/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif][img]att3[/img][/font][/color]

    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif][img]att4[/img][/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]3. Drag related type Edit step from the steps menu. Complete the mapping by selecting the Build Data option.[/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif][img]att5[/img][/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]

    [/font][/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif][img]att6[/img][/font][/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    So, basically, this flow will fetch data and reflect previously selected Color property on a drop-down selection. If a user changes the selection and submit, the Color field of that selection will be updated and next time when the user runs the same flow new value will be shown.

    If you need to create new data you have to add Create Computer step to this flow. Based on your use case it could be a new optional create button on the main form that navigates to create data form or [url=https://documentation.decisions.com/docs/sub-dialog-data-flow]sub-dialog data flow.[/url] (I added a create data example to the attached project)

    I hope this helps. If you have any other questions please let me know.
    [/font][/color]
    [i]edited by kenan@decisions.com on 7/24/2019[/i]
    [i]edited by kenan@decisions.com on 7/24/2019[/i]
    [i]edited by kenan@decisions.com on 7/24/2019[/i]

Sign In or Register to comment.