Hi, Can we format the data which is displayed in gridTextColumn.

Hi,
Can we format the data which is displayed in gridTextColumn.

data:index(local!displaydatasubset.data,"emailaddress",{}) .

From the above code I'd like to fetch the user first name and display on the grid column.

Suggestions appreciated.

Thanks....

OriginalPostID-135856

OriginalPostID-135856

  Discussion posts and replies are publicly visible

Parents
  • Hi deepanc,

    Instead of passing index(local!displaydatasubset.data,"emailaddress",{}) to data attribute of gridTextColoumn.
    you can make one rule with the following code and pass that to data attribute.

    load(
    local!data1:apply(getusersby(_,3,1),ri!emailaddress),
    local!result:apply(user(_,"firstName"),local!data1),
    local!result
    )

    And pass index(local!displaydatasubset.data,"emailaddress",{}) as input to that rule. then it returns the first names of users. make sure that input parameter in that rule is multiple type.

    Thanks
Reply
  • Hi deepanc,

    Instead of passing index(local!displaydatasubset.data,"emailaddress",{}) to data attribute of gridTextColoumn.
    you can make one rule with the following code and pass that to data attribute.

    load(
    local!data1:apply(getusersby(_,3,1),ri!emailaddress),
    local!result:apply(user(_,"firstName"),local!data1),
    local!result
    )

    And pass index(local!displaydatasubset.data,"emailaddress",{}) as input to that rule. then it returns the first names of users. make sure that input parameter in that rule is multiple type.

    Thanks
Children
No Data