Without knowing anything about Datasnap or any other kind of middle ware you may be using (therefore this may be inappropriate or not the best way), I can think of a couple of ideas.

1) If you are using TCP/IP for communicating then just leave the connection open and send an update every second or so for the client to read

2) Whether you are using TCP/IP or not you could query the middle-ware every second or so, passing it an ID for the operation that you retrieved when it was initiated.

Either way, I think you will end up having to think about threading issues.

Hope I haven't misunderstood what you are asking.

Phil.

Alister Christie wrote:
I'm in the process of porting a desktop BDE application to a multier application (still using the BDE currently). I'm using the standard Datasnap stuff available in Delphi to do so (remote datamodules, clientdatasets, providers etc...). Some of the processes I want to shift into the middle tier can take minutes to process and was wondering how to display a progress bar while things are working in the background. I presume some sort of callback procedure would be required so that the application can be updated from the middle tier as to the progress of the operation. Can anyone point me in the right direction?

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi



begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:[EMAIL PROTECTED]
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to