Hello,
I have a rule which takes group id as input and retrieves firstname of all users from that group.
Now I have to show the first names on a grid with batch of first 10 first then have > to go to next page.. I have a below code but same is not giving desired results:
Please help.
=load( local!data: { firstname : rule!test_rule_(7266), }, local!pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 10), with( local!datasubset: todatasubset(local!data, local!pagingInfo), a!gridField( label: "Example: Display Data in a Read-Only Paging Grid", totalCount: local!datasubset.totalCount, columns: { a!gridTextColumn( label: "Firs Name", field: "firstname", data: local!datasubset.data, alignment: "RIGHT" ), }, value: local!pagingInfo, saveInto: local!pagingInfo ) ))
Discussion posts and replies are publicly visible
What error are you getting exactly? Can you attach a screenshot. Also, to render data properly change the code of gridTextColumn() as
a!gridTextColumn( label: "First Name", field: "firstname", data: index(local!datasubset.data,"firstname",{}), alignment: "LEFT" )