link showwhen in grid

i have added a link in a selectable grid, when we select that row then the link should be enabled how to configure that

  Discussion posts and replies are publicly visible

Parents Reply
  • a!gridLayout(
                  headerCells: {
                    a!gridLayoutHeaderCell(label: cons!CR_SF_ALL_LABELS[10]),
                    a!gridLayoutHeaderCell(label: "")
                  },
                  columnConfigs: {
                    a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight: 2),
                    a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight: 2)
                  },
                  selectionValue: ri!selected_txt,
                  selectionSaveInto: ri!selected_txt,
                  selectable: true(),
                  rows: a!forEach(
                    items: local!limitsList,
                    expression: a!gridRowLayout(
                      id: fv!item,
                      contents: {
                        a!textField(value: fv!item, readOnly: true()),
                        if(
                          rule!APN_isEmpty(ri!selected_txt),
                          a!textField(readOnly: true()),
                          a!richTextDisplayField(
                            value: a!richTextItem(
                              showWhen: index(ri!selected_txt, fv!item, {}),
                              text: if(
                                local!showLimitData,
                                "Hide Data",
                                "Show Data"
                              ),
                              link: a!dynamicLink(
                                value: not(local!showLimitData),
                                saveInto: if(
                                  local!showLimitData = true(),
                                  a!save(local!showLimitData, false()),
                                  a!save(local!showLimitData, true())
                                )
                              ),
                              color: if(
                                local!showLimitData,
                                "#ff0000",
                                "#00ff00"
                              )
                            )
                          )
                        )
                      }
                    )
                  )
                )

Children