Page 1 of 1

"Load Next" List button logic

Posted: June 16th, 2023, 2:44 pm
by CathyC
In a page on EC MVC, SingleList, we have a "Load Next" button at the bottom of the list.
It is meant to be clicked to show more results if they exist. I would like it to be hidden if I have no more results and all are on the page.
image.png
What is the recommended way of setting this up?
We went to look at how the list builder does this, but it didnt have the options we expected to setup extra features on a list and when created, the "Load Next" button wasnt created.

Re: "Load Next" List button logic

Posted: June 28th, 2023, 10:26 am
by SteveCap
The list wizard will create a button for load next and have its visibility set to a node from the model
image.png
That value will get updated after the submethod runs.
image.png
image.png (15.77 KiB) Viewed 350 times
image.png
image.png (15.77 KiB) Viewed 350 times
it's value is determined by the start index, the page size, and the number of records. Return Total Count needs to be set to true for this to work properly.
image.png