Editable Grid - Selection

I have a editable grid.  I have to select only one row at a time.  Based on the selected identifier, I am displaying another grid in the side.  How can I select only one row at a time?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Have a local variable which stores selection value. In selectionSaveInto directly save the index of the row selected in the local variable. Have the side grid configured such that it shows data as per the row index saved in local variable.

    How can I select only one row at a time?

    Have your selectionSaveInto something like the below

     selectionSaveInto: {
          a!save(local!selected,a!flatten(save!value)),
        a!save(
          target: local!selected,
          value: index(local!selected, count(local!selected), null)
    )},

Reply
  • 0
    Certified Lead Developer

    Have a local variable which stores selection value. In selectionSaveInto directly save the index of the row selected in the local variable. Have the side grid configured such that it shows data as per the row index saved in local variable.

    How can I select only one row at a time?

    Have your selectionSaveInto something like the below

     selectionSaveInto: {
          a!save(local!selected,a!flatten(save!value)),
        a!save(
          target: local!selected,
          value: index(local!selected, count(local!selected), null)
    )},

Children
No Data