Forum Discussion

bhupen's avatar
bhupen
Advisor
10 years ago

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...
  • bhupen's avatar
    10 years ago

    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.