Hello community,
I am trying to save my local variable's data into the rule input.
I use editable grid and use of CDT as a local variable. Also, I have taken CDT as a rule input in the array form.
Now when I am trying to save these into rule input than after click on dynamic link, It is overriding the data and show the first time data I have and save data only one time in the rule input.
Discussion posts and replies are publicly visible
Hi Nitin, you can directly save that data to rule input, In line 33 & 34 you're using local variables.
I want to store in local variable after that it automatically save into rule input.
I would suggest you iterate your grid based on local variable as you are saving and displaying values from local variable and transfer local variable data on click of submit button. I hope this helps.
I do the same thing but when I click on dynamic link it shows the previous data on the text field automatically
right now you are using rule input in your a!foreach expression.
Yes, but when I change it into local variable, It saves data but show the same error & also not showing the text field using dynamic link
Make sure to change your dynamic link's saveInto, something like below
a!save( local!newGrid, append(local!newGrid,type!yourCdt) )
Could not display interface. Please check definition and inputs.Interface Definition: Expression evaluation error at function a!forEach [line 28]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!multipleDropdownField [line 54]: Cannot index "department" because it is an array type (List of Text String). Only fields with scalar types can be indexed from an array.
it shows the error...
can you share the code for department field?
a!multipleDropdownField( label: "Department", labelPosition: "ABOVE", placeholder: "--- Select a Value ---", choiceLabels: cons!EC_DEPARTMENT, choiceValues: cons!EC_DEPARTMENT, value: local!newgrid.Department, saveInto: local!newgrid.Department, searchDisplay: "AUTO", required: true, validations: {} ),