Hi All,
Portals partially support todatasubset() function by using integration/web API as per documentation. Is there any other alternative to this as I want to apply sorting as well on the data but without calling any integration? I tried using a!datasubset but sorting is not working in this case and we need sorting as well on the data? Any suggestions ?
a!localVariables( local!data: { { name: "b", position: 2 }, { name: "a", position: 1 }, { name: "d", position: 4 }, { name: "c", position: 3 } }, local!testDataSubset: a!dataSubset( startIndex: 1, batchSize: 4, sort: a!sortInfo(field: "name", ascending: true()), totalCount: 10, data: local!data, identifiers: local!data.position ), local!testToDataSubset: todatasubset( arrayToPage: local!data, pagingConfiguration: a!pagingInfo( startIndex: 1, batchSize: - 1, sort: a!sortInfo(field: "name", ascending: true()) ) ), local!testToDataSubset)
Thanks.
Hitesh
Discussion posts and replies are publicly visible