How to show result after 1000 records. Its showing blank after 1000 records
Not showing result after 1000 records and showing empty result after 1000 records
Page call get only 1000 records. once record will go up it will get blank result to you.
There is 2 ways yo solve this but Iam not able to get the result for this.
1. write this query in API-V2
<#assign nots = restadmin( '/users/id/' + user.id + '/notifications?restapi.response_style=view&page_size=' + page + '&page=' + y).notifications />
2. Write pagination for this. Following is the pagination I have implemented but it doesn't works for me.
<#list 1..3 as y>
<#assign page = notificationsPage * pageSize />
<#assign nots = restadmin( '/users/id/' + user.id + '/notifications?restapi.response_style=view&page_size=' + page + '&page=' + y).notifications />
</#list>
Hi Gyz, I gota fix for that. It might not be upto standard but it fixed my issue. Following is the snippet which shows only used notification instead of unused notification. Once it will go up 1000+ it will assign allnotification to 999. It works perfectely for me.
<#assign _notificationsCount = restadmin( '/users/id/' + user.id + '/notifications/count' ).value?number />
<#if ( _notificationsCount > 999 )>
<#assign _notificationsCount = 999 />
</#if>Note: Solution as per my requriement.