Page 1 of 1

Manualy smart refresh of TSmartQuery

Posted: Tue 29 Jul 2008 12:01
by oschulz
Hi there.

Is there a possibility, to send refresh event directly to a smart query instead of using DB to send refresh event?

The problem i have: smart refresh works fine but takes several seconds to refresh the list. If i add a new entry, it would be nicer, to refresh list without time shift.

kind regards
Oliver

Posted: Wed 30 Jul 2008 09:12
by Plash
You can call the Refresh method of TSmartQuery when you need to refresh data.

Posted: Mon 04 Aug 2008 08:41
by oschulz
Hi Plash.

Refresh method works like close and open dataset, which with get data completely new, I think?
Else it is, what I searching for.

Thanks
Oliver

Posted: Tue 05 Aug 2008 07:21
by Plash
Yes, the Refresh method gets completely new data like Close and Open.
But SmartRefresh calls the Refresh method when it receives an event. So if you manually call Refresh it will take the same time as SmartRefresh.