De: johnf <[EMAIL PROTECTED]>
Data: Segunda-Feira, 23 de Abril de 2007, 19:48
Assunto: Re: [dabo-users] problem with data-environment

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

The indentation is correct John.
I've followed Paul's sugestion and added a page in the developer wiki. It's 
under Demos/Demos in Progress. I would appretiate very much if you could take a 
look at it and give me some sugestions.

Thanks,
Miguel


_______________________________________________________________________________________
10 000 Euros sem precisar de trazer a vida toda atras
Saiba mais em http://www.iol.pt/correio/rodape.php?dst=0701162



_______________________________________________
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