I have the following code which uses the setPageSize for my repeater to display 1 item. If there is more than 1 item then the LOAD MORE (button3) shows. If a user selects the LOAD MORE and then changes the dropdown3 value, the repeater doesn’t reset the setPageSize back to 1. If the user pressed the LOAD MORE 2 more times to display 3 items, when they change the dropdown3 value to something else the repeater doesn’t reset the setPageSize back to 1 it will use the 3 instead.
Any insight to how to correct this so that each time the user changes the dropdown3 value, the setPageSize will also reset to 1?
export function dropdown3_change(event) { var maxShow = 1 ;
$w( “#dataset2” ).setPageSize(maxShow);
console.log(maxShow);
To add to this, in doing a console.log, the setPageSize is resetting to 1, but the data is still pulling 3. It seems the repeater is ignoring the setPageSize value after the initial page load.
@scottb
I do not see any CODE for LOAD-MORE-BUTTON in your snipet !?!?
So if you have connected your DATASET and are using the optional integrated next/previous-buttons and load-more button, then this will probably not work as you want.
You will have to CODE it by yourself, to get it working like you want.
Mixing CODE with integrated DATASET-options, always have a bad end!