On Feb 2, 2008, at 4:50 PM, Adrian Klaver wrote:

> I trying to figure out self.Form.new(). I have a button that has an  
> onHit event
> with self.Form.new(). When I click on it I get a new parent record.  
> I fill in the the fields and save the record, so far so good. At  
> this point I lose the connection between the parent and child record.

        That's odd, as it looks as though you've set up the bizobjs  
correctly. BTW, you don't need to set the ParentLinkField property on  
the child if that is the KeyField in the parent. Dabo assumes that FKs  
link to PKs; you only need to specify that if it links to some other  
non-PK field.

> When I use the navigation buttons to go back and forward the child  
> records move but the parent does not. Also the PK field for the new  
> record remains at -1 even though the bizobj has the correct value in  
> the field. Any suggestions welcome.


        What is creating the PKs for the new records? I'm assuming that  
you're using PostgreSQL; as far as I know Postgres is working well  
with retrieving auto-generated PKs.

-- 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]

Reply via email to