masterDetail & CachedUpdates

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
siberya
Posts: 23
Joined: Thu 23 Mar 2006 19:00

masterDetail & CachedUpdates

Post by siberya » Sun 01 Jun 2008 18:16

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.

jkuiper_them
Posts: 28
Joined: Thu 20 Dec 2007 14:48

Post by jkuiper_them » Mon 02 Jun 2008 13:53

There's a demo of MyDAC in the corelab directory. Ther you can find something about master/detail.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Mon 02 Jun 2008 14:16

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.

Post Reply