Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setPage Table CSA not updating content with server side pagination #9765

Open
GrowwithNaveen opened this issue May 17, 2024 · 0 comments
Open

Comments

@GrowwithNaveen
Copy link
Collaborator

GrowwithNaveen commented May 17, 2024

Description:
There is a bug with the setPage CSA when server side pagination is used with the table component. ``

Current behavior:
When a button with the event handler action of setPage CSA is used to switch pages, the page number of the table component changes, but the displayed content remains the same.

Expected behavior:
The table should display the content corresponding to the selected page when the button is clicked.

Steps to reproduce:

  1. Place a table component and enable server side pagination.
  2. Add a button with the setPage CSA.
  3. Try switching the page using the button added in step 2.
  4. Observe that the page number of the table component changes, but the displayed content does not update.
    Attaching video for reference,
Screen.Recording.2024-05-17.at.12.08.25.AM.mov

Solution:
Adding both setPage and runQuery actions to the button click event handler is necessary to fetch and display the correct data for the selected page.

@GrowwithNaveen GrowwithNaveen added this to the App Builder 1.9 milestone May 17, 2024
@GrowwithNaveen GrowwithNaveen changed the title Set Table Page event not updating content with server side pagination Set Table Page CSA not updating content with server side pagination May 21, 2024
@GrowwithNaveen GrowwithNaveen changed the title Set Table Page CSA not updating content with server side pagination setPage Table CSA not updating content with server side pagination May 21, 2024
@GrowwithNaveen GrowwithNaveen changed the title setPage Table CSA not updating content with server side pagination setPage Table CSA not updating content with server side pagination May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant