Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 3 Jahren, 3 Monaten
Letzter Beitrag:
vor 3 Jahren, 3 Monaten
Beteiligte Autoren:
John Marrone Jr, Alexandre Leclerc, DerekT, Allard

WD[18] Reload data into table control that is link directly to a database.

Startbeitrag von John Marrone Jr am 09.05.2015 22:42

Hi

I have a table that is linked to a database directly. I am not using a query to load the data into the table, I am linking straight to the database. I need to reload the table. As it is now I don't need to do anything. What I need is the row display event to execute again as each row of data is loaded into the table. TableDisplay is not cutting it. I need WD to empty the table and link to the file again and load records into the table causing the row display to fire when each row is loaded with a record. Can anybody help.

Thanks for any help I might receive.

Antworten:

John
More info please - what exactly is not happening.

I just set up a simple table control bound directly to a data file + a button coded with TableDisplay(MyTable,taInit).
Added a trace in 'On display' code section.

Trace is displayed when window is opened.

As expected the trace is again displayed when the button is clicked.

Are you sure your TableDisplay() code is firing?

von DerekT - am 10.05.2015 10:00
Hi

Just as Derek states use the tabledisplay() function. Make sure you add the tainit

TableDisplay(MyTable,taInit) means it runs the initiation of the table. A binded table will indead run again.

Regards

Allard

von Allard - am 11.05.2015 06:53
Thanks DerekT and Allard. Will give it a try when I get back home in a few days.

von John Marrone Jr - am 11.05.2015 11:25
Hi John,

"Row display" event will only be executed for the rows that are actually displayed. It will not fire for data not displayed on screen "yet". If you need that every row be "displayed" you will have to loop through the table (if my memory is good, doing a FOR EACH will do the job - and I think it will work even if you set ..DisplayEnabled to false).

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 11.05.2015 14:23
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.