Pagination in the OOB Touch UI | Community
Skip to main content
sindhu_ramasamy
Level 2
Sep 4, 2017 6:25 PM UTC
Solved

Pagination in the OOB Touch UI

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.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Sep 5, 2017 7:39 AM UTC

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

4 replies

sindhu_ramasamy
Level 2
Sep 6, 2017 10:02 AM UTC

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.

Translate
smacdonald2008
Level 10
Sep 5, 2017 4:59 PM UTC

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

Translate
sindhu_ramasamy
Level 2
Sep 5, 2017 2:11 PM UTC

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.

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Employee
Sep 5, 2017 7:39 AM UTC

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

Translate
Kautuk Sahni