can we make a text column in Paging grid a link based on a particulat value type

I want to make a text column in a Paging Grid a link when the value in it is for example "12345", so for all those rows which have 12345 as the value for that column, I want to make it a link. can you suggest me on how it's possible?

 

Thanks in advance,

Sindhu

  Discussion posts and replies are publicly visible

Parents
  • Hi Sindhu,

    Please follow the sample code which will satisfy your requirement

    load(
    local!data: {
    "John Smith",
    "Michael Johnson",
    "Mary Reed",
    "Angela Cooper",
    "Elizabeth Ward"
    },
    a!gridField(
    label: "Employees",
    totalCount: 5,
    columns: {
    a!gridTextColumn(
    label: "Name",
    data: local!data,
    links: {
    a!forEach(
    items: local!data,
    expression: if(
    fv!item = "John Smith",
    a!dynamicLink(
    label: ""
    ),
    null
    )
    )
    },
    alignment: "LEFT"
    )
    },
    value: a!pagingInfo(
    startIndex: 1,
    batchSize: 5,
    sort: a!sortInfo(
    field: "name",
    ascending: true
    )
    )
    )
    )

    Hope it will be help for you.
Reply
  • Hi Sindhu,

    Please follow the sample code which will satisfy your requirement

    load(
    local!data: {
    "John Smith",
    "Michael Johnson",
    "Mary Reed",
    "Angela Cooper",
    "Elizabeth Ward"
    },
    a!gridField(
    label: "Employees",
    totalCount: 5,
    columns: {
    a!gridTextColumn(
    label: "Name",
    data: local!data,
    links: {
    a!forEach(
    items: local!data,
    expression: if(
    fv!item = "John Smith",
    a!dynamicLink(
    label: ""
    ),
    null
    )
    )
    },
    alignment: "LEFT"
    )
    },
    value: a!pagingInfo(
    startIndex: 1,
    batchSize: 5,
    sort: a!sortInfo(
    field: "name",
    ascending: true
    )
    )
    )
    )

    Hope it will be help for you.
Children
No Data