[DUG] progress callback
Phil Middlemiss
phil at tumonz.co.nz
Tue Jul 11 15:43:18 NZST 2006
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
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phil.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20060711/3aa3a77b/phil.vcf
More information about the Delphi
mailing list