main logo
Subject: Re: Sandwich Generation Biz Objects
Author: Pamela Thalacker
Posted: 2001/10/26 12:15:31
 
View Entire Thread
New Search


Hi Lynette,

<i><font color="#663300">I seem to be having trouble with my "Sandwich Generation" Biz Objects -- i.e., BizObjects that are BOTH parents and children!</font></i>

The object in the middle is no different. It relates to its parent as a child and its children as a parent. A child needs to know its parent's primary key, so it can requery appropriately. A parent only needs to know who its children are (in the aChildren collection which is resolved by a bizobjform in the Init event) so it can trigger cascading events.

If you check 'lGetViewParmFromParent' in the child and the parent's cKeyfield is correct, then GetViewParmValue with return the parent's key field value for a requery.

If you set the "lFillParentKey" property in a child, then the field specified in the cParentKeyField property will be autopopulated with the parent's key field value in the OnNew() method.

<i><font color="#663300">Do I use Optimistic Record or Optimistic Table in the Data Environment ??</font></i>

I have never found a reason to use anything other than Table buffering and I use optimistic.
:-) Pamela
pamela at eagle-crest .DO.T com
 
©2001 Pamela Thalacker
<-- Prior Message New Search Next Message -->