Page 1 of 1

Refresh question

Posted: Wed 20 Aug 2008 10:02
by gwardell
Hi,

I'm noticing that when two copies of my application are running, if one updates a record, the update doesn't show in the other copy.

Is there a setting that will cause the changes to the table to be picked up by other copies, or do I need to have a timer in my app to periodically poll for changes by doing a refresh?

I'm using MyConnection, MyTable, and MyDataSource and the VCL Data Aware controls.

I have MySQL DAC 5.50.36.

Gary

Re: Refresh question

Posted: Wed 20 Aug 2008 11:29
by eduardosic
gwardell wrote:Hi,

I'm noticing that when two copies of my application are running, if one updates a record, the update doesn't show in the other copy.

Is there a setting that will cause the changes to the table to be picked up by other copies, or do I need to have a timer in my app to periodically poll for changes by doing a refresh?

I'm using MyConnection, MyTable, and MyDataSource and the VCL Data Aware controls.

I have MySQL DAC 5.50.36.

Gary
Hi!
You need to use TMyTable.Options.AutoRefresh = True and TMyTable.Options.AutoRefreshInterval

is the solution.