Re: ADO - ClientDataSet - Master/Detail



"Bill Todd" <no@xxxxxx> ha scritto nel messaggio
news:4513f746$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Davide Pasqualini wrote:

So, my question is: How new detail records can get the master value ?

If I understand you correctly, you have to assign the primary key of
the master to the foreign key of each new detail record.

--
Bill Todd (TeamB)

Yes.
in the article http://bdn.borland.com/article/27146 and at the end of the
paragraph "TClientDataSet_1 Who needs cached updates?"
is written ....

a.. New detail records now get the master value.
a.. Detail records will not disappear.
a.. Changes to the master do not affect detail records (other than primary
key changes).

So, I don't understand whats wrong in my code.

Davide


.



Relevant Pages