On selection of one row disable the other rows in grid based on the status

Hello Everyone,

I am working on a!gridField and need to select the rows which are of same status and other rows should be disabled(Non selectable).

For Example : If I select any row with status :"Inprogress" then only inprogress rows should be selectable where other rows should be in disbaled.Later similarly if I select a row with Draft status then only draft status records should be selectable and other should be disabled.

Please help me if anyone have worked this kind of requirement.

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents Reply
  • +1
    Certified Lead Developer
    in reply to hemap0003

    The compare operator does not make much sense. Comparing a list to a single value returns a list of true/false values which you then feed into that parameter.

    I understand your explanation a bit different. As soon as a single row is selected, only rows with the same status should stay selectable. If this is the case, I think working code might look like this:

    contains(index(local!selectedRows, "workflowStatus", {}), index(fv!row, "workflowStatus", {}))

Children