Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 11:23 PM
Thanks Ankur. My requirement is to use a value from the data item to paginate the data.
The hope is to get the max value from each data page which would be in the last element of the results array, that is, the last “item” as seen in the parsing step. However, it seems the data items are not available to me in the pagination script, unfortunately. If you know of a way to access the data items in the pagination script, that would be great!
Data looks like this:
{
count: ...
next: ...
previous: ...
results: [
{
<my-element-here>: ...
...
},
...
]
}I have no problem accessing count, next, previous in the pagination script, but I am unable to access anything in "results".
Thanks for you help!