There are 2 ways to do this:

self.getFieldVal("common")

or

self.Record.common

I would use the first way but both will work.  Also, if you need to
set the record, use:

self.setFieldVal("common", myVal)

or

self.Record.common = myVal

Hope this helps.

Cheers,

Nate L.

On Jan 28, 2008 1:13 PM, Adrian Klaver <[EMAIL PROTECTED]> 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'
>
> Thanks,
> --
> Adrian Klaver
> [EMAIL PROTECTED]
>
>
[excessive quoting removed by server]

_______________________________________________
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