"Load Next" List button logic

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
CathyC
Posts: 472
Joined: November 16th, 2021, 11:15 am
Contact:

"Load Next" List button logic

Unread post 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.
word count: 95

Tags:
SteveCap
Posts: 329
Joined: August 26th, 2021, 9:18 am
Contact:

Re: "Load Next" List button logic

Unread post 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 964 times
image.png
image.png (15.77 KiB) Viewed 964 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
word count: 77
Post Reply