On Feb 3, 2008, at 3:29 PM, Steve Rose wrote:
> Similar to Adrian's issue, I too lose the connection between parent
> and
> child when I click the form's pushbutton and the onHit event triggers
> self.Form.new(). The only workaround I could come up with was to add
> self.FillLinkFromParent = True to the ChildBizObj. Then, in the
> createBizojbs method I had to add the following:
> parentBizobj.NewChildOnNew = True
> childBizobj.NewRecordOnNewParent = True
That is exactly the way it is designed to work. If you don't set
FillLinkFromParent = True, you have to fill in the FK to the parent in
your own code. The 'NewChild' stuff is only necessary if you want to
automatically create a child record. If you don't, then your code must
handle child record creation.
> This maintains the relationship between and child but it forces the
> creation
> a new and sometimes unwanted child record.
Again, if the record is unwanted, then don't set the properties to
create it. You won't be ruining the "relationship" because there is no
relation to ruin, as there will be no child record.
I guess I'm not understanding what you mean by the relationship being
"ruined".
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]