hasNextPage() always returns false on Dynamic Pages (Solved)

Hey there!
Today I got a question here in the forums why hasNext() and hasNextPage() always returns false. I realized that it does that because the Dynamic Dataset always only has 1 record. If you check getTotalCount() that will always be 1.

But in the API reference they have now splitter the Dataset docs between Dataset and Dynamic Dataset but still the hasNext and hasNextPage are in the reference but they shouldn’t I suppose.

But as always in Wix Code there is a hidden solution. I managed to make a work around and used the property enabled() on a button that links to the Next Dynamic Page.

Here is the full solution for ya all that needs this check working.
https://wixshow.wixanswers.com/en/article/check-if-there-is-a-next-item-on-a-dynamic-page

#dataset #dynamicdataset #hasNext #hasNextPage #button