Select only one choice in grid selection

Hello,

I'd like to be able to select only one choice in a grid selection at the same time.
Is there a way to force that?

OriginalPostID-202357

OriginalPostID-202357

  Discussion posts and replies are publicly visible

Parents
  • Hi mokhtarc970,
    You can do by making some changes in the saveInto parameter of grid as follows:
    saveInto: {
    local!gridSelection, //you create a variable to save grid selection data
    a!save(
    local!selectedId, //you save the selected value to another local variable
    reverse(local!gridSelection.selected)[1] //you reverse the local!gridSelection.selected to get the first value as the latest value
    ),
    a!save( // set the local value as null
    local!gridSelection.selected,
    null
    ),
    a!save( // reset the value to previous variable
    local!gridSelection.selected,
    local!selectedId
    )
    }
Reply
  • Hi mokhtarc970,
    You can do by making some changes in the saveInto parameter of grid as follows:
    saveInto: {
    local!gridSelection, //you create a variable to save grid selection data
    a!save(
    local!selectedId, //you save the selected value to another local variable
    reverse(local!gridSelection.selected)[1] //you reverse the local!gridSelection.selected to get the first value as the latest value
    ),
    a!save( // set the local value as null
    local!gridSelection.selected,
    null
    ),
    a!save( // reset the value to previous variable
    local!gridSelection.selected,
    local!selectedId
    )
    }
Children