Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread Cached updates
Sat, Sep 17 2011 10:20 AMPermanent Link

Stefano Monterisi

I am working on cached update master-detail and I have troubles...
My scenario: Master Table A with 3 details B C D, all in editable grids ; I
can scroll A (query) and must see B C D (queries); When I can start (what
event) BegincachedUpdates, if user can edit directly A, B, C, o D in grids
(without pressing any button o function key gor edit, but only Save and
Abort buttons) ?
Please consider that I have to edit and post always the master record (for
calc sum fields) if I edit, insert or delete a detail...
If I apply Updates, I must call another BegincachedUpdates for prepare the
reedit of the same records?
If I call BegincachedUpdates in afterscroll event of master table, I must
call cancelCachedUpdates and BegincachedUpdates in loop, or a new
BegincachedUpdates discard the old one? (it seems that they are
cumulative....)

But, A simple Delta with all modified, inserted e deleted records don't is
better? So I can load records in a memory table and apply all updates when I
want... as AnyDac does.....

I hope that you understand my (poor) english, sorry.
Good Job,
Stefano Monterisi


Image