I have 10 row in Notes CDT and I am using below script to display the data in P

Certified Lead Developer
I have 10 row in Notes CDT and I am using below script to display the data in Paging grid, it is displaying 5 rows in ascending order as expected but when I click on next page arrow in paging grid to view next 5 set of data it is loading form with same set of data.

=todatasubset(pv!Notes,type!PagingInfo(startIndex:1, batchSize:5,sort:{field: "createdOn", ascending: true}))

Please verify my code.
...

OriginalPostID-74479

OriginalPostID-74479

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    This looks like its on a form as opposed to a SAIL right? I don't believe that's a valid way of doing it for forms; instead try just doing todatasubset(pv!Notes) then at the bottom of the left hand page in the modeler tool when you've clicked on the corresponding paging grid, there is a "Rows Per Page" option and set that to 5. Now it should work as expected. Hope that helps
Reply
  • 0
    Certified Lead Developer
    This looks like its on a form as opposed to a SAIL right? I don't believe that's a valid way of doing it for forms; instead try just doing todatasubset(pv!Notes) then at the bottom of the left hand page in the modeler tool when you've clicked on the corresponding paging grid, there is a "Rows Per Page" option and set that to 5. Now it should work as expected. Hope that helps
Children
No Data