-------------- Original message ----------------------
From: Paul McNett <[EMAIL PROTECTED]>
> Adrian Klaver wrote:
>
> > How does one go about accessing field in validateRecord?
> > I have self.addField("common") in the bizobj.
> > I thought
> > def validateRecord(self):
> > """Returning anything other than an empty string from
> > this method will prevent the data from being saved.
> > """
> > if len(self.common) == 0:
> > ret = 'No empty strings'
> > else:
> > ret = ""
> > # Add your business rules here.
> > return ret
> > would handle it. However I get error message: AttributeError:
> 'Publicplant1Bizobj' object has no attribute 'common'
>
> Did you find this in the docs somewhere? If so, it needs to be fixed
> because Dabo hasn't behaved that way in some time. Now, you need to say
> 'self.Record.common' or 'self.getFieldVal("common")'.
>
>
> Paul
>
No I found it in the email archives.
--
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]