Save Data in Dynamic Editable grid(Dynamic Header Values also) to a variable

 Hi All, 

I had a requirement where We need to display a grid based on user selection,

sometimes we get 4 headers, some times 6 ,7,... headers also vary. in grid rows I have simple textboxes,

my requirement is to store value entered in each text box in a variable with header value. in Json format.

 

a!gridLayout(
label: "",
instructions: "",
headerCells: {
a!forEach(
items:local!assignedDates,
expression: a!gridLayoutHeaderCell(label: fv!item 
)
},
rows: {
a!gridRowLayout(
contents: {
a!forEach(
items:local!assignedDates,
expression:
a!textField(
value: ?????,
saveInto: ??????
)
)
}
)
}
)

 

Thanks in Advance.

  Discussion posts and replies are publicly visible