Page 1 of 1

Question about Master / Detail with SDAC 4.x

Posted: Wed 04 Jul 2007 09:10
by Sergio Bertolotti
Dear Support,

I use Delphi 7 prof. and SDAC 4.x ver. professional.
I see your SDACDEMO.
I have a question about demo Master - Detail under General Demos.
I see 2 checkboxes :

1) SQL Links
2) Simple field link.

I note that if I select first check when I insert a new record in detail, field DEPTNO is empty; while if I select second check when I insert a new record in detail, field DEPTNO set automatically value that is present in DEPTNO of the master table.

If I see code note that source is obviously different.
In case 1) source contains quDetail.DetailFields := '' and quDetail.MasterFields := '';.
In case 2) source contains quDetail.DetailFields := 'DEPTNO'; and quDetail.MasterFields := 'DEPTNO'.

If I create M/D relationship with two tables and if I want automatically set field of foreign key of the detail table I must use property DetailFields and MasterFields of my Dataset.
If I create classic M/D via SQL link without set this two properties Detailfields and MasterFields of the detail table, field that is used for link is not automatically fill.

Is this correct ?
Where can I find more information about M/D with your SDAC components ?


Best regards.

Sergio Bertolotti

Posted: Thu 05 Jul 2007 07:16
by Antaeus
Sergio Bertolotti wrote:Is this correct ?
Yes, it is.
Sergio Bertolotti wrote:Where can I find more information about M/D with your SDAC components ?
Please take a look at the "Working with master/detail relationships" topic in SDAC help.

Posted: Thu 05 Jul 2007 07:31
by Sergio Bertolotti
Dear Antaeus,

many thank's for your answers.

Best regards.

Sergio Bertolotti

Not found

Posted: Mon 07 Apr 2008 13:01
by PreverInfo
I didn't find the post "Working with master/detail..." in forum.
Please, put the link here.

Posted: Mon 07 Apr 2008 13:25
by Sergio Bertolotti
Dear PreverInfo,

search in http://crlab.com/sdac/download.html under section - Documentation and Demo - at this link you find a docs of components in PDF,CHM,etc,etc,...

After download it search for Master /detail relationship.

Best regards.

Sergio Bertolotti

Regards

Posted: Mon 07 Apr 2008 18:23
by PreverInfo
Thanks Sergio.

:D