Show More Button Is Not Working As Expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 07:33 AM
Hello All,
We have a customized widget which displays article depending on category selected. Recently we put in an functionality to alphabetical, view newest and by ratings in the article. Now the issue is by default we are alphabetelizing the article from A-Z and it should show 10 articles at first time and as and so the user clicks on show more button more 10 articles must be added to the list but in order. Issue is when first 10 articles are getting created it seems that its in alphabetical but it ignores few articles and on show more clicking it adds on those skipped article.
I am attaching the screenshot here:
Before clicking the show more option and After clicking the show more option.
The sorting of the knowledge articles are different from each screenshots.
Can anyone please help me on this.
Thanks&Regards,
Yamini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 09:28 AM
Show more button will just bring next 10 records.
I would insist you to put that sorting code in showMore fuction tht might sort the results for you.
Although , I am also of the opinion that sorting works more accurately only on KNOWLEDGE mgmt portal especially the alphabetical one.
For more info check this support article: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0713567
Mark my Answer as CORRECT and HELPFUL if it helps
