If both users can edit the data, you're asking for trouble. But if you
insist...
You can set a timer on the window and have the timer event re-retrieve the
DW. Just call the dw.pfc_retrieve event from the window.timer event.
If the user has any pending changes to the DW, you will have to do a lot of
work to refresh all of the data except for the one(s) the user has edited.
Off the top of my head, I don't think you'll be able to feasibly perform a
simple pfc_retrieve on the same DW; you will probably need to analyze which
row(s) the user has changed, and in a separate dataStore, retrieve all of
the rows except for those. Then delete those rows from the DW, use rowsMove
to move them from the dataStore into the DW, and then step through and set
their row status to NotModified!. This will probably take some time. If
the user is truly "doing nothing", this wouldn't be a problem. If on the
other hand, the user was between keystrokes, they may not be happy about the
performance delay.
Alternately, you may be able to set a "mode flag" (or just check to see if
there are pending changes) to indicate if the user is editing or not, and
not perform the reretrieve while there are pending changes.
--dang
-----Original Message-----
From: Andrew Subhagia T. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 09, 2000 02:17
To: pfcsig
Subject: PFCSIG Refreshing datawindow
Hi,
I have another question that might be you all knows about it and I need your
suggestion about this.
Did everyone know about refreshing datawindow !!!
ex.
Two users work together with the same app running on their computer.
last work position on their computer was displaying data.
One user inputing data while the other stay nothing.
Question:
How to make it refresh at user who's not doing anything and show it data on
screen or when he/she scrolling the data already there without pressing
retrieve button to make it refresh.
Regards,
Andrew
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]