On Sunday 03 February 2008 7:13 am, Ed Leafe wrote: > 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
The problem boils down to the back end doing the right thing but not the front end. This led me to do some more digging. Seems I am still having a issue with dropdown lists. When I create a new() record I get an error to the effect that string value is not in list of choices. As far as I can tell that is wrong. I have to do further debugging to track down the problem. It would seem this error may be preventing the GUI from updating properly. -- Adrian Klaver [EMAIL PROTECTED] _______________________________________________ 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]
