Hello, I have a question, I have an interface which is a grid, this allows me to add a dropdown with information obtained from a constant, this constant has 3 groups, my question is, how can I do so that when I add a new grid, this information from my constant is independent of my dropdown that makes new, all this is written to another constant through a process. I have something like this, I already tried using save to to my new constant, but it is not updated with the process, does not elminate or anything. this is my code.
thanks you!
a!localVariables( /*rule to save groups */ local!groups: rule!GS1_getgroupnames(), /*rule to get all groups */ local!grupos: rule!GS1_getgroups(), a!formLayout( label: "Manage Additional Distribution List", instructions: "Please select and modify the groups that you wish to update in the grid below.", contents: { a!sectionLayout( label: "Additional Distribution List", contents: { a!gridLayout( label: "", labelPosition: "ABOVE", headerCells: { a!gridLayoutHeaderCell(label: "Email"), a!gridLayoutHeaderCell(label: " ") }, columnConfigs: { a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight: 3), a!gridLayoutColumnConfig(width: "ICON") }, rows: { a!forEach( items: local!grupos, expression: a!gridRowLayout( contents: { a!dropdownField( label: "Dropdown", labelPosition: "ABOVE", placeholder: "--- GROUP LISTS ---", choiceLabels: rule!GS1_getgroups(), choiceValues: rule!GS1_getgroups(), value: fv!item, saveInto: fv!item, searchDisplay: "AUTO", validations: {} ), a!richTextDisplayField( value: a!richTextIcon( icon: "close", altText: "delete " & fv!index, caption: "Remove " & fv!item, link: a!dynamicLink( value: fv!index, saveInto: { a!save( local!grupos, remove(local!grupos, save!value) ) } ), linkStyle: "STANDALONE", color: "NEGATIVE" ) ) } ) ) }, selectionSaveInto: {}, selectionDisabled: false, addRowlink: a!dynamicLink( label: "Add Email", saveInto: { a!save( local!grupos, append(local!grupos, save!value) ) } ), validations: {}, shadeAlternateRows: true, borderStyle: "LIGHT" ) } ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Save", saveInto: { a!save(ri!groups, local!grupos), a!save(ri!constants, "GROUPS") }, submit: true, style: "PRIMARY" ) }, secondaryButtons: { a!buttonWidget( label: "Close", value: 1, submit: true, saveInto: { ri!cancel }, validate: false, style: "NORMAL" ) } ) ))
Discussion posts and replies are publicly visible
Hi,You can pre-create the constants according to your requirement and then plug that constants to a decision rule.Then you can call the decision rule for you drop down.Thank you.