Hi Champ,
I have a map variable and the same is used in the table. So I can see it was coded as todatasubset to the map variable with a local defined pagination variable. It's working fine if the map is having less no of rows then pagination ;but getting errorrdout when it's having more rows..message says like "batc size was 0 but te largest column data array had 12 items."
So FYI: We are not using datasubset rather using todatasubset.
Regards,
Ghanashyam
Discussion posts and replies are publicly visible
Please find the error screenshot along with the code snippet
I just put some portion of the code needed to debug this
a!localVariables( local!paginInfo:a!pagingInfo( startindex: 1, batchSize: 10 ), local!mapDataSubset: a!dataSubset( startIndex:local!paginInfo.startIndex, batchSize:local!paginInfo.batchSize, totalCount:count(index(ri!map,"abc",{})), sort:a!sortInfo( field:"abc", ascending:true ), data:ri!map, identifiers:index(ri!map,"abc",{}) ), a!gridField( label: "label", labelPosition: "ABOVE", data: local!mapDataSubset, pagingSaveInto:local!paginInfo )
ghanashyamm0005 Looks like in the above snippet use case is to get data and show on the grid if that is case in the query entity or record entity it is suggested to use fv!paginginfo so that records will be feteched accordingly.