Just another little test drive and hit another wall (several actually)
did a mockup of a list with pagination andfind out that the WebPagination control is completly unusable.
If the pagination from your database query turns out to not be exactly divisible by the visible pages it is not going to work.
What happens if you need 11 pages? How many visible pages you have to use?
3, 4? WebPagination will show an nonexistent 12th page
5, 10? and the currently existent 11th page is not reachable.
But is even more broken⊠If in this example I first select the page 3 and then press forward it will reach only the 9th page, making the 10th and 11th not reachable.
Workarounds⊠Ask the end user to avoid saving records to the database until there are enought of the to have a divisible amount of pages?
This was actually reported almost 2 years ago and it still doesnât even have someone assigned. https://tracker.xojo.com/xojoinc/xojo/-/issues/63527
The pagination control should either:
Move in VisiblePages intervals until there is not enought pages left, in this case should move just the pages needed to acomodate the last page in the last visible place:
Or if that is too difficult, move it allways in VisiblePages intervals as now but making sure the last item is reachable AND disablig the others.
** Contextual WebMenu** is unusable on WeblabelsâŠ
Contextual menus in Weblabels are clipped to fit the padding box of the paret DIV
https://tracker.xojo.com/xojoinc/xojo/-/issues/70749
And talking about Contextual menus their behaivior is also broken. Any Contextual menu should be closed when another is oppened, but the âcontextualâ click does not closes the menues as the normal click does.