(Click to open topic with navigation)
The DataviewConfig.groovy file is set up by default so that when a Viewpoint DataView page first loads, the page displays the first 20 items in the list. However, you can cause the page to open to a different page of items, and you can customize how many items display on each page. For example, you can set up the Node Management page to display 50 items per page and to open (by default) on the 3rd page of results, so that items 101-150 display when the page loads. These instructions explain how to change the default paging options in the DataviewConfig.groovy file.
To configure paging settings
nodes = """{
"sort" : {"${DV_SORT_SORT}":[{"name":"ASC"}]},
"page" : {"${DV_PAGE_NUMBER}":0, "${DV_PAGE_COUNT}":20},
"filter" : "{}",
...
The "${DV_PAGE_NUMBER}" value corresponds to the item page number that will display when the page loads—0 is the first page, 1 is the second, and so on. The "${DV_PAGE_COUNT}" value is the number of items that appear per page.
nodes = """{
"sort" : {"${DV_SORT_SORT}":[{"name":"ASC"}]},
"page" : {"${DV_PAGE_NUMBER}":0, "${DV_PAGE_COUNT}":10},
"filter" : "{}",
...
nodes = """{
"sort" : {"${DV_SORT_SORT}":[{"name":"ASC"}]},
"page" : {"${DV_PAGE_NUMBER}":4, "${DV_PAGE_COUNT}":10},
"filter" : "{}",
...
Your changes should update automatically. However, if you see that your changes have not taken effect, it is recommended that you restart Tomcat.
Related topics