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
Is there any easier way to get a range in appian for an array?
Is there any easy way to get an range in array in appian
ghanashyamm0005 said:Is there any easy way to get an range in array
again - todatasubset() does this for you. a!dataSubset() does not.
Now I am doing something as below and it's working now
The change is in data and indentifier parameter in a!datasubset()
it seems like you're doing a lot of work to manually recreate the output you'd get automatically just from calling todatasubset() on the original data set and paging info. I guess I'm unclear why.
The reason is..the code is already written and there are other changes I need to do if I change that to todatasubset(), because I can't set the identifiers by my own and it's taking the id automatically like 1,2,3. That will make lot of code change again. So I was thinking of a minimal code change but no major testing needed.Hope that makes sense.
hi ghanashyamm0005 could modify code for pagingSaveInto as pagingSaveInto: a!save(local!pagingInfo, save!value), and rowHeader : 1 and check please just a try
You could try updating just the identifiers parameter of the datasubset with the identifiers for the current page via a!update().
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.