getTotalPageCount() returns 0 for a Dataset inspite of the dataset having entries.

Hello,

Start from debugging your code by following the instructions from the article below:

Corvid: Testing and Debugging Your Code

If you try the following code and the result still will be zero (even though there are several items in your database collection), I’d recommend to contact Wix Customer Care and provide all the details regarding the issue so they can take a look at it.

let pageCount = $w("#myDataset").getTotalPageCount();