Subject Re: [IBO] Master detail
Author Jason Wharton
I suggest that you use the OnNewRecord event of the detail table. This way
it won't flag the record as modified. If you do it in the AfterInsert event
then the record will be flagged as modified.

HTH,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: <stewartbourke@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, May 09, 2001 4:42 PM
Subject: [IBO] Master detail


> I have looked through the archives regarding M/D relationships but
> cannot seem to find a definitive answer to the following question.
>
> I am using 2 IBOTABLEs in a mas/det relationship. When the link
> columns on both tables are the same then the link field is filed in
> correctly as soon as the child table has in insert. Typically
> however, I have a standard naming convention for all my tables which
> means that the link columns will never be the same - hence it does
> not appear possible for the system to automatically complete the link
> field when I do an insert.
>
> Given this sitation, where is the correct place for me to update
> these links automatically? Which event should I use to assign the
> field value?
>
> Thanks for any assistance.
>
> Stewart Bourke
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>