I’ve read the docs, and just spent about an hour searching the forums and I can’t quite find what I’m looking for. ChatGPT isn’t really any help either, so I’m coming to the experts
What I’m trying to do:
I have a repeating_panel with 400 rows, but only show 50 rows at a time to the user, with the navigation arrows at the bottom so that they can navigate the pages.
The user is able to edit a row, and write those changes to the database (this all works nicely)
However when I refresh the repeating_panel, the user is presented with the first page again, and will have to use the navigation to find their amended row.
I am trying to find a way that I can get my app to “Remember” which page in the repeating_panel the user was on, so that when the page is refreshed, the repeating_panel moves automatically to that page, and preferable that row is presented in the middle of the screen…I’ll settle for just that page though.
If I can access the “page number” attribute or something like that, then perhaps I could write a set/get function pair to meet my requirements.
What I’ve tried and what’s not working:
Reading all the docs
Reading the forums posts
ChatGPT - tells me to use repeating_panel.selected_index, which doesn’t exist as far as I can see
Hi stefano - I mean reload the page, which rereads the table, which then reloads the repeating_panel.items().
however, the fix works. I’ll put that in a different reply.
My repeating panel rows have an edit button in them, so I want the displayed repeating_panel to remember where it was when I edited a row…so I did the following:
Then in the RowTemplate form,