Increase dashboard list number
PostPosted:Sat Dec 09, 2017 3:59 am
by saman_s1
Hi,
all view list in dashboard has beed limited to 20 number, is it posible to increase this limition ?
as you can check here:
https://docs.openkm.com/kcenter/view/ok ... board.html
Example:
Last created documents > Displays a list with the last 20 documents created.
can I change it to display last 100 ?
Re: Increase dashboard list number
PostPosted:Sat Dec 09, 2017 5:21 pm
by jllort
Should be modified the source code for it. If you want I can provide the clues for how doing it. The best option will be with a new configuration parameter in the profiles.
Re: Increase dashboard list number
PostPosted:Sun Dec 10, 2017 5:36 am
by saman_s1
thanks,
I found these link but I can't find proper property !
could you please give me more clues
Creating your own parameters
User interface configuration parameters
Re: Increase dashboard list number
PostPosted:Sun Dec 10, 2017 10:27 am
by jllort
1- Fork the project in github
2- Create your branch ( where you will apply the changes )
3- First you should add new profile configuration parameter, for it must take a look at:
GWTWorkspace.java
ProfileServlet.java -> line 240
profile_general.jsp
ProfileMisc.java
-- When you got success with new configuration parameter then should use to choose the number of rows in the list, for it should change the methods to use the new var
DashboardServlet
OKMDashboard
DbDashboardModule ( here there a variable named MAX_RESULTS = 20;, if you only change it you will get the expected results, but obviously because is not a configurable parameter we will not merge in the actual source code ).
4- ask for a merge request from your branch to 6.3-dev ours