Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread Auto update when data changed
Mon, Jun 13 2011 2:42 AMPermanent Link

Bronson Alex

Hi,
I am pretty new at C/S programming.
I am developing a C/S database application that acts like Chat application.

I don't know how to activate 'AUTO-UPDATE/REFRESH', meaning: whenever a user input new records, all other users can see the new records at the same time, so there is no need to refresh the table.
I am pretty sure there is an easy way to do this.

Pls help me

Thx,
Bronson
Mon, Jun 13 2011 5:14 AMPermanent Link

Fernando Dias

Team Elevate Team Elevate

Bronson

There is not a built in auto refresh mechanism in DBISAM, you will have to refresh the tables yourself.
A simple way to do that automatically is to use a TTimer and call TDBISAMTAble.Refresh from the timer.

--
Fernando Dias
[Team Elevate]
Mon, Jun 13 2011 10:53 PMPermanent Link

Bronson Alex

Fernando Dias wrote:

Bronson

There is not a built in auto refresh mechanism in DBISAM, you will have to refresh the tables yourself.
A simple way to do that automatically is to use a TTimer and call TDBISAMTAble.Refresh from the timer.

--
Fernando Dias
[Team Elevate]

Fernando,
Thx for your reply. I will do as you told. If I refresh the table too frequently (eg. every 1 minute), will it burden my server? Or maybe refreshing process doesn't take a lot of server's processing power?

Thx
Bronson
Tue, Jun 14 2011 4:42 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Bronson


I think some people have experimented with UDP broadcast to get people to refresh. If you search these newsgroups you should find some posts about it.

Roy Lambert
Tue, Jun 14 2011 6:08 AMPermanent Link

Fernando Dias

Team Elevate Team Elevate

Bronson,

I have done that with 5, 6 users refreshing every 30 seconds and its working
very well, but the timer interval is configurable in my application, so that
it can be adjusted as needed. Also, the datasets are only auto-refreshed
when they are in dsBrowse mode.

--
Fernando Dias
[Team Elevate]
Tue, Jun 14 2011 5:08 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bronson,

<< Thx for your reply. I will do as you told. If I refresh the table too
frequently (eg. every 1 minute), will it burden my server? Or maybe
refreshing process doesn't take a lot of server's processing power? >>

No, it's a pretty quick operation - it just checks the table's header to see
if the update counter is different, and then dumps any buffered data, which
is exactly what you want.

--
Tim Young
Elevate Software
www.elevatesoft.com
Wed, Jun 15 2011 2:10 AMPermanent Link

Bronson Alex

"Tim Young [Elevate Software]" wrote:

Bronson,

<< Thx for your reply. I will do as you told. If I refresh the table too
frequently (eg. every 1 minute), will it burden my server? Or maybe
refreshing process doesn't take a lot of server's processing power? >>

No, it's a pretty quick operation - it just checks the table's header to see
if the update counter is different, and then dumps any buffered data, which
is exactly what you want.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thanks for all your assistance. I will do refresh every xxx seconds (adjustable) while in dsBrowse mode.

Regards,
Bronson
Image