Page 1 of 1

masterDetail & CachedUpdates

Posted: Sun 01 Jun 2008 18:16
by siberya
When inserting a new detail record, the linking data is not automatically inserted into the detail field (cachedUpdates = true)

How to solve this problem? or i need master/detail cachedUpdates simple demo.

thanks.

Posted: Mon 02 Jun 2008 13:53
by jkuiper_them
There's a demo of MyDAC in the corelab directory. Ther you can find something about master/detail.

Posted: Mon 02 Jun 2008 14:16
by Antaeus
If you want the value from the master table to be automatically inserted into the detail dataset, you should setup your master/detail relationship through MasterFields and DetailFields. For example see the Simple field link option in the MasterDetail demo of MyDAC.