I have a Client/Server application where the Server side is another box (Linux) running an active real-time application unto itself.
I capture a "snap-shot" of a Remote table, make calculations based on the data, determine a "delta" for specific record values and then need to write the results back to the server table.
My Remote View of the server's table is Table Buffered
CURSORSETPROP('Buffering',5,'view1')
so as to not compromise the real-time data which might change during my application's processing. I then work on a local copy of the view until ready to write back.
My write back consists of doing a
SELECT view1
REQUERY()
of the server table's view and then a
REPLACE ALL view1.field WITH view1.field + local.delta;
FOR <criteria>
Finally I follow this immediately with a
=TABLEUPDATE(2,.F.,'view1')
However with the nRow parameter of the TABLEUPDATE() command set to 2 I do not know if an error occured (such as if the Remote record was in-use during the update) resulting in loss of data update.
Under the circumstances and considering that only some records of the table require updating, is there a better way to approach this issue so as to ensure the update of all appropriate record's data?
Your suggestions and advice are greatly appreciated.
Thanks,
I_Forgot
I capture a "snap-shot" of a Remote table, make calculations based on the data, determine a "delta" for specific record values and then need to write the results back to the server table.
My Remote View of the server's table is Table Buffered
CURSORSETPROP('Buffering',5,'view1')
so as to not compromise the real-time data which might change during my application's processing. I then work on a local copy of the view until ready to write back.
My write back consists of doing a
SELECT view1
REQUERY()
of the server table's view and then a
REPLACE ALL view1.field WITH view1.field + local.delta;
FOR <criteria>
Finally I follow this immediately with a
=TABLEUPDATE(2,.F.,'view1')
However with the nRow parameter of the TABLEUPDATE() command set to 2 I do not know if an error occured (such as if the Remote record was in-use during the update) resulting in loss of data update.
Under the circumstances and considering that only some records of the table require updating, is there a better way to approach this issue so as to ensure the update of all appropriate record's data?
Your suggestions and advice are greatly appreciated.
Thanks,
I_Forgot