Paginator - numbers not clickable

I am going to post this here just in case anyone has any ideas on a possible step that I missed which is causing the numbers not to respond to clicks. If if isn’t an ostensible configuration issue, I will post it over in the Bugs section.

App Structure

Table Generator

Thanks for having a look!

Do you have a live link so we can check?

Hi George, nice to hear from you. I do not have a live link yet as I am testing locally. Is there a way for me to package my project and ship it to you to check out?

I had to create a page using Data View with Table Generator today. Unless I used the feature incorrectly, which is very possible, you have to add some dynamic attributes when you’re setting up Data View, eg:

The pagination component worked without any problem - I don’t think there are any bugs. In case it helps…

(Edit: I just noticed some of the dynamic attributes are not visible unless you click on the image above, to expand it.)

3 Likes

Nailed it, @TomD !

I didn’t know about the Dynamic Attributes needed. Once I added the page attribute and linked it to #page in my Data View component it worked perfectly.

One question I have is, how is the Page Size Dynamic Attribute different than the Page Size property under Data View Properties

1 Like

Dynamic attributes in Wappler get their data from a dynamic source/changing data dynamically, in this case this could be a dropdown which you are using to change the number of records displayed per page.

The Page size option is something you enter manually, as a static value.

@Teodor makes sense, thank you for the explanation.

1 Like

I’m glad that helped.

One tip which might be not be obvious: if you include fields for searching or choosing the page size for example, you will want to reset the offset parameter to 0 when the fields are updated (attaching a dynamic event to the fields). Otherwise you might see no results, even when there are results - where the offset is beyond the number of results. You will probably want to reset the offset to the beginning anyway.

3 Likes