bsgriggs / mendix-advanced-pagination

Reusable widget to encapsulate the math required to manually do pagination. Most useful when getting data from an API that allows pagination (e.g. https://facebook.com/me/feed?limit=25&offset=50).
MIT License
3 stars 3 forks source link

Mutiple calls #4

Open rafaeldfdias opened 2 weeks ago

rafaeldfdias commented 2 weeks ago

Hello, I don't know if this due to the way that I assembled the page, but when I enter a page which has both the Advanced Pagination and Advanced Sorting, I get three calls to the service that I am consuming. Is this normal, or is this a widget limitation? This is the way that I have my page assembled image

bsgriggs commented 2 weeks ago

Hi there, can you please provide screenshots of the advanced pagination & advanced sorting widget's settings?

rafaeldfdias commented 2 weeks ago

Hi, sure! Here they are: Sorting: image Pagination: image And just to give you a little bit of more context, this is the page structure with the helper object that gets refreshed: image

best regards

bsgriggs commented 2 weeks ago

Make sure that your UIHelper's default value for Page is set to 1. It may be refreshing due to the Auto Correct setting and the Page Number being invalid.