Selectables in read-only grid

Hi All,

I am using selectables in read-only grid, based on the selected row I need to show a value in a particular column. In editable grid, we can configure the readonly as not(contains(ri!selectionList,fv!index)). But how to check whether the current row is in the selected list. How to get the row id in read-only grid?

  Discussion posts and replies are publicly visible

Parents
  • I hope following code fragments helps you in saving code fragments.

    /*Local variable declaration*/
    ...
    local!selectedMappingId: tointeger({}),
    ...
    
    /*To save a selected row id in the readonly grid*/
    ...
              selectionValue: local!selectedMappingId,
              selectionSaveInto: {
                a!save(
                  local!selectedMappingId,
                  save!value
                )
              }
    ...
    
    /*To save the complete selected row and selected row id*/
    ...
              selectionValue: local!selectedMappingId,
              selectionSaveInto: {
                a!save(
                  local!selectedRow,
                    fv!selectedRows
                )
              }
    
    ...
    
    /*To check whether the id is in the selected list. The usage of this varies on  your scenario */
    ...
    wherecontains(sav!value,local!selectedMappingId)
    ...

Reply
  • I hope following code fragments helps you in saving code fragments.

    /*Local variable declaration*/
    ...
    local!selectedMappingId: tointeger({}),
    ...
    
    /*To save a selected row id in the readonly grid*/
    ...
              selectionValue: local!selectedMappingId,
              selectionSaveInto: {
                a!save(
                  local!selectedMappingId,
                  save!value
                )
              }
    ...
    
    /*To save the complete selected row and selected row id*/
    ...
              selectionValue: local!selectedMappingId,
              selectionSaveInto: {
                a!save(
                  local!selectedRow,
                    fv!selectedRows
                )
              }
    
    ...
    
    /*To check whether the id is in the selected list. The usage of this varies on  your scenario */
    ...
    wherecontains(sav!value,local!selectedMappingId)
    ...

Children