PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB[19] - table won't refresh
WB[19] - table won't refresh
Iniciado por guest, 02,jul. 2016 17:10 - 4 respuestas
Publicado el 02,julio 2016 - 17:10
Hi - strange problem - I haven't worked with queries in a while, been doing SQL and code, so maybe I'm forgetting something -

I have a page that lists some records. I go to another page using (to add a new record, then return to the original page using the PageDisplay() function and upon returning to the 1st page the new record isn't listed in the table. But if I restart the project in the developer, it is there. Anyone have an idea of what's going on?
Publicado el 03,julio 2016 - 16:43
How is your data shown on the page. A table ? clearly the data isnot displayed / refressed.

So you could do a tabledisplay() with a TA Init selected ( this means trhat the inistation code is ran again.

regards

Allard
Publicado el 04,julio 2016 - 16:44
Thanks Allard! Yes, it is a table and it should refresh itself when I go back to that page. That's the weird thing. I'm using a Query from the query editor... Each time I open that page I should get the most recent data read, but I don't. Wouldn't tabledisplay() be used only if I was staying on that page and wanted to refresh the table?
Publicado el 04,julio 2016 - 21:09
Joel
I cannot speak for WB as I do not use it but a similar issue occurs in WD when using internal windows where a table control (or Combo) is bound to an array, which itself is filled by a query.

If I do not issue a 'TableDislay()' - or 'ListDisplay()' - new data is frequently not displayed.
Publicado el 04,julio 2016 - 22:47
Hi Derek -

Where to put the tabledisplay() command? In the Init code of the table?