- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 05:30 AM
Hello all,
I have been searching for a while now but I cannot find a way to increase the number of records displayed in a list within the Service Portal. So for example when you use the Data Table from instance widget in the Portal it only shows a maximum of 20 records, is there a way to increase it to say 50?
Thank you
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2017 06:12 AM
You're right, I did same test on my test instance and still got 20. I looked further and I found that in out of box configuration, the widget My Open Incidents is hardcoded with 20, like in screen shot below. Changing there to 50 solved the issue. Even so I do not recommend setting it higher than 50 as you might get performance issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2017 12:15 AM
HI Martin,
Sorry for not replying yesterday as promised, I had a busy day.
So I tested this morning by creating a similar widget called 'My Closed Incidents' like in screenshots below:
I then closed over 10 test incidents for a test user and then change the max value to 10, see result below:
I went back and changed it again to 5, and still worked:
If you lower your max value to less than 20, does it work? Or it's not working for anything else than 20? Would you be able to include some screenshots of your widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2017 01:59 AM
Hello Sergiu,
Thank you so much for taking the time to do that. If you set yours higher than 20 what is the outcome, do you see more? I will log into the other system and generate some screenshots and put them up, but it would be interesting to see if you can get yours higher than 20 on that list like your other one.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2017 02:24 AM
I've changed the value to 22 and still worked. Then changed to 24, still worked (had 25 closed incidents), then change to 30 and still worked (all incidents were shown). At this stage I believe the property works, there might be something else in your case that is restricting it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2017 07:15 AM
Sergiu, I'm beginning to think you're right. I will carry on looking a little longer then log a ticket on HI. If I get this resolved I will post what my problem was just in case others have this issue.
Thanks again for all your time you have spent!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 01:35 AM
Hi Martin,
Maybe this is not related, but I found that some widgets (like My Approvals) are different than others (My Open Incidents). My Approvals uses a widget called 'Approvals' that has a server script with a hardcoded list of 50 (therefore the Maximum value is not present on the form to be able to change it):
var gr = new GlideRecord('sysapproval_approver');
gr.setLimit(50);
var qc1 = gr.addQuery("state", "requested");
if (input)
qc1.addOrCondition("sys_id", "IN", input.ids);
gr.addQuery("approver", gs.getUserID());
gr.orderBy("sys_created_on");
gr.query();
Not sure if this might be the problem you're experiencing.