Based on gridrowlayout selection dropdown field should be enabled

Hi All,

How to enable the dropdown field based on gridLayout selection?

actually i am trying with the below code but it is not working as expected: Please help and suggest logic so that i will try to test it.

a!gridLayout(
  headerCells: {
    a!gridLayoutHeaderCell(label: "Dropdown")
  },
  columnConfigs: {
    a!gridLayoutColumnConfig(width: "DISTRIBUTE")
  },
  rows: {
    a!forEach(
      items: ri!data,
      expression: a!gridrowLayout(
        contents: {
          a!dropDownField(
            disabled: if(
              and(
                rule!APN_isNotEmpty(ri!selectedid),
                contains(fv!item.gfcid, ri!selectedid)
              ),
              false,
              true
            )
          )
        }
      )
    )
  }
)

  Discussion posts and replies are publicly visible