> This is in the Form's createBizobjs():
>
> class AuthorBizobj(dabo.biz.dBizobj):
> def afterInit(self):
> self.DataSource = "author"
> self.KeyField = "author_id"
> self.addFrom("author")
> self.addField("author_id")
> self.addField("authorname")
>
> def validateRecord(self):
> """Returning anything other than an empty string from
> this method will prevent the data from being saved.
> """
> ret = ""
> # Add your business rules here.
> return ret
>
> self.addBizobj(AuthorBizobj(self.Connection))
>
> And this in the Form too:
> def afterInitAll(self):
> self.requery()
>
> The rest are just properties in the designer. If you which I can paste the
> cdxml (but that is a little larger)! Sorry about the top-posting.
>
> best,
> Miguel
It looks like you have the indenting wrong the self.addBizobj should be inline
with the class AuthorBizobj.
Other than the indenting I see nothing wrong with this bizobj! Does someone
have an idea what would prevent the data from displaying? Of course the I
normally:
publicauthorbizobj = AuthorBizobj(self.Connection)
self.addBizobj(publicauthorbizobj )
--
John Fabiani
_______________________________________________
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]