class MatchBiz(dbiz.dBizobj): def beforeInit(self): self.Caption = "Matches" self.Encoding = "latin-1" self.DataSource = "tbl_matches" self.KeyField = "project,bnummer,telefonval" self.AutoPopulatePK = False
I bind this datasource to a grid. Calling bizobj.new() creates a new record. Editing in a grid reflects the values in the dataset. When calling save() I get no messages at all. Calling saveAll() gives me an exception, "Invalid row specified". Even if I answer No or Cancel when asking to save to data I get this error. isChanged() shows False, isAnyChanged() shows True. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe Sent: 10. januar 2008 03:32 To: Dabo Users list Subject: Re: [dabo-users] Problem with BizObj save On Jan 9, 2008, at 8:09 PM, Nate Lowrie wrote: > Ed and I have been going back and forth on this and he found the > problem. The problem was with my bizobj. I forgot to set the > datasource to "customers". Now save works as expected. The error > that I got on delete is now gone too. Can anyone else who was experiencing a problem with disappearing 'new' records verify that they did or did not set the bizobj's DataSource property? -- Ed Leafe -- http://leafe.com -- http://dabodev.com [excessive quoting removed by server] _______________________________________________ Post Messages to: Dabo-users@leafe.com 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]