Pagination in the OOB Touch UI | Community
Skip to main content
sindhu_ramasamy
Level 2
September 4, 2017
Solved

Pagination in the OOB Touch UI

  • September 4, 2017
  • 4 replies
  • 1641 views

Hi all,

On the touch ui, at various locations like sites, projects , assets . I could see that there are various calls fetching the first 40 results , and as we scroll down the page, the next set of forty results comes on and this happens on further scroll down also,

http://localhost:2017/mnt/overlay/granite/security/content/useradmin/views/list.40.40.html?_=1504533806859

http://localhost:2017/mnt/overlay/granite/security/content/useradmin/views/list.80.40.html?_=1504533806860

What triggers these calls on the scroll down of every page ?

Thanks,

Sindhu.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

How do you want to use it? What is your use-case?

For reference,

Have a look at :- /libs/granite/security/content/useradmin/views/list

Onscrolling - /mnt/overlay/granite/security/content/useradmin/views/list{.offset,limit}.html is called.

Check offset in this file :- /libs/granite/ui/components/coral/foundation/table/table.jsp

~kautuk

4 replies

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
September 5, 2017

How do you want to use it? What is your use-case?

For reference,

Have a look at :- /libs/granite/security/content/useradmin/views/list

Onscrolling - /mnt/overlay/granite/security/content/useradmin/views/list{.offset,limit}.html is called.

Check offset in this file :- /libs/granite/ui/components/coral/foundation/table/table.jsp

~kautuk

Kautuk Sahni
sindhu_ramasamy
Level 2
September 5, 2017

Hi Kautuksahni,

My use case is that I have an separate console where I display the list of products custom to the project similar to the backup console. I need to implement the pagination and I was referring the OOB consoles to know how it is implemented.

Right now , I am getting the same calls repeated again and again and the offset is not incrementing.

http://localhost:2017/apps/pugranch/admin/ext/uptime/content/test/views/list.0.10.html?_=1504620336279

Any help regarding where the offset is getting incremented?

Thanks,

Sindhu.

smacdonald2008
Level 10
September 5, 2017

I do not recommend modifying the Admin UI code itself. If you break something - typically support will not help that.

sindhu_ramasamy
Level 2
September 6, 2017

Hi all,

Any idea on how the /mnt/overlay/granite/security/content/useradmin/views/list{.offset,limit}.html is called on scrolling and how the offset is getting incremented?

Thanks,

Sindhu.