how to refresh the repeater?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

how to refresh the repeater?

#1

Postby t4nu » Mon Feb 29, 2016 9:17 am

Hi,
I have two repeaters, I placed them side by side. Both consists data that has hyperlink.
If I click the hyperlink in the right repeater, it will take the user to other page, and if on that page the user click apply, then that data move to the left repeater. I can manage up to move the data, but it seems the display is not what I expected, because the new moved data is not directly display in the left repeater. It will displayed after I close and reopen the form.
I have tried to do a fetchtable, but still the same result.
What should I do so it can display instantly after the move.
Thanks in advance for the help.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#2

Postby t4nu » Mon Feb 29, 2016 10:05 am

I have manage to achieve what I want by doing a fetchtable, right before the form is shifted to first page.
Seems the fetchtable has to be done before the page displayed. Or maybe there is still other way more efficiently to reach it?
Thanks.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#3

Postby Jon » Mon Feb 29, 2016 10:37 am

You can do a fetchTable() at any time, it doesn't make any difference. The system will always display the latest version of the table. Are you re-displaying the original page via the server? e.g. with a gotoPage() call - normally you would insert your fetchtable at this point or on the before page event. But if your edit page is invoked via a popup, then it might be that this just gets closed to redisplay the original page containing repeaters, in which case there is no server side event.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#4

Postby t4nu » Mon Feb 29, 2016 10:49 am

Previously I do a fetchtable(), in the before page event. It didn't show the latest data. After I change the fetchtable() before doing form.gotoPage() then when the page show, it show it as it should be.
Jon wrote:You can do a fetchTable() at any time, it doesn't make any difference. The system will always display the latest version of the table. Are you re-displaying the original page via the server? e.g. with a gotoPage() call - normally you would insert your fetchtable at this point or on the before page event. But if your edit page is invoked via a popup, then it might be that this just gets closed to redisplay the original page containing repeaters, in which case there is no server side event.
0 x


Who is online

Users browsing this forum: No registered users and 21 guests