Simple List widget with pagination
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 03:57 AM
Hi guys,
How Can insert pagination on Simple List Widget ?
Thanks,
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2020 04:02 AM
Good Morning,
His referring to the attached zip file "sp_widget_b73f78fadb7783000c0a361b7c961944.xml.zip" in his post above, the hyperlink is just a guide on how to import\export xml files, the xml is inside the zip.
I got the widget working but it means you can't display more than 5 records at a time.
Kind Regards
Ashley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2018 06:13 AM
I'm about to try this myself. Did you have any luck?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2019 11:21 PM
Hi Vinay Reddy,
Thanks for the code. it works like a charm.
I am using 2 simple lists in the same page, whenever i navigate through in widget A the same navigation happens in the widget B which is untouched.
Is there any fix for this.
Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 10:15 AM
I have tried this ...but did not work. We are on London version. Do we need to make any changes to make it work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 12:07 PM - edited 05-22-2025 12:52 PM
Heads up, when using chooseWindow to introduce pagination you should also use setNoCount() to avoid an extra query. GlideRecord.chooseWindow causes GlideRecord to count all the records that match your query filter. You can avoid that extra query by using setLimit first.
Please ✅ Correct if this solves your issue and/or 👍 if Helpful
"Simplicity does not precede complexity, but follows it" - Alan Perlis