On Jul 13, 2008, at 11:12 PM, Paul McNary wrote:
> I normally bottom-post but the mailing list cut it off.
You must have posted beneath the footer of the old message. The list
software trims anything after a quoted footer.
> Case 1, I am adding to both parent and child. The the self.Form.Save()
> should save the parent, then do a saveall on the children if I
> understand correctly. If I get this working then case 2 would be
> used to
> add further rows. ie. like a VFP grid which always has a hot new row
> available on the grid.
>
> Case 2 - I have a parent record that is on the Form through
> self.Form.requery(), go through record with next, prior, what ever.
> do the self.Form.new("public.cmpd_ingredients") to add a new row to
> the
> child or the grid.
>
> Case 3 - Data added to child database externally. Then I can change
> data
> in those records and issue the self.Form.save(). However if I add a
> new
> child it gives the error.
>
> Both cases fail when trying to save the children.
> Case 1 the parent is saved then the error.
I've been looking over this, and am not sure why you are getting this
error. The only thing that looks out of the ordinary is that your
child is not linked via the parent's PK, but rather through the
'compoundid' column of the parent. Perhaps there is some logic that is
assuming a PK link that I'm not aware of.
If I were to send you a modified version of dBizobj.py, would you be
willing to replace your copy with the modified version, run your app,
and post the debug output here so that I can get a better idea as to
where the problem is located?
-- 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/[EMAIL PROTECTED]