Unable to save selected rows in gridRowLayout to a local variable

Hi everyone,

I need help checking whether I’m doing something wrong with my code.

I’m having an editable grid with data is a data subset local variable. In it’s gridRowLayout() I also provided the id parameter. But somehow when selecting the row, it does not save any data to local!selectedAzureId. I also tried with fv!index instead of fv!item.fileId but did not work either.

{
   a!gridLayout(
     label: "Documents",
     labelPosition: "COLLAPSED",
     headerCells: {},
     columnConfigs: {},
     rows: a!forEach(
       items: local!data.data,
       expression: a!gridRowLayout(
         id: fv!item.fileId,
         contents: {}
       )
     ),
     selectable: true,
     selectionValue: local!selectedAzureIds,
     selectionSaveInto: {
       a!save(
         local!selectedAzureIds,
         a!flatten(save!value)
       ),
       a!save(
         ri!selectedAzureIds,
         local!selectedAzureIds
       ),
 
     },
     rowHeader: 1,
     showWhen: rule!AAA_CMN_IsEmpty(local!curDoc),
 
   ),

And below is local!data – the gridLayout data source:

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data