- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2014 02:32 PM
I wanted to know if you can set the max row count for a Knowledge Base list to 100? I know you can set it as a personalize per person but that makes all the list to max 100.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2014 02:15 PM
This is the line in kb_list UI Page where the rowcount preference of the current user is retrieved:
<j2:set var="sys_nav_count" value="$[gs.getUser().getPreference('rowcount')]" />
Create a new global user preference (System = true and User = <empty>) and substitute it into that line like this:
<j2:set var="sys_nav_count" value="$[gs.getUser().getPreference('my_custom_kb_rowcount')]" />
Now the system will use the value you specified in your custom global preference for all users.
You will also need to remove navigation elements that users normally use to change their rowcount preference because they will no longer work in your case and will only confuse people.
Comment out the following line of code to remove the Show context menu:
gcm.addMenu("${gs.getMessage('Show')}", mRowsPerPage);
Comment out this <select> block completely inorder to get rid of the "rows per page" dropdown list in the upper-right corner:
<select class="listbar_select" name='perrows' onchange="changeRowCount(this);" id='perrows'>
...
</select>
And that should be it.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2014 10:56 AM
How would I change the rowcount within the UI page? I will evaluate the risk.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2014 02:15 PM
This is the line in kb_list UI Page where the rowcount preference of the current user is retrieved:
<j2:set var="sys_nav_count" value="$[gs.getUser().getPreference('rowcount')]" />
Create a new global user preference (System = true and User = <empty>) and substitute it into that line like this:
<j2:set var="sys_nav_count" value="$[gs.getUser().getPreference('my_custom_kb_rowcount')]" />
Now the system will use the value you specified in your custom global preference for all users.
You will also need to remove navigation elements that users normally use to change their rowcount preference because they will no longer work in your case and will only confuse people.
Comment out the following line of code to remove the Show context menu:
gcm.addMenu("${gs.getMessage('Show')}", mRowsPerPage);
Comment out this <select> block completely inorder to get rid of the "rows per page" dropdown list in the upper-right corner:
<select class="listbar_select" name='perrows' onchange="changeRowCount(this);" id='perrows'>
...
</select>
And that should be it.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2014 02:33 PM
Your example of how to subsitutue it in the line in the second set of code is the same as the first line. Which is the original line in the UI page. Please provide an example of how to replace the System user and set the row count.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2014 11:07 PM
Thanks for pointing this out, Travis. I have now changed the name of the user preference in the second line.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2015 07:21 PM
Can we also restrict the number of records being pulled? For example - no more than a total of 100 records and 20 records per page?