Not exactly...

Create an textbox object on a form and with
DataSource=self.Form.PrimaryBizobj, DataField='somefield'

In the biz obj define a field validator for 'somefield'

Def fieldValidation(self,fld,val)
        if fld=='somefield'
                blah blah

Run the form and change the value and fieldValidation does not fire because
the DataSource is passed as an object
Change textbox binding to -> DataSource='public.mytable',
DataField='somefield'

And the fieldValidation fires.

Larry



 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: Friday, December 21, 2007 5:55 PM
To: Dabo Users list
Subject: Re: [dabo-users] Possible bug with fieldValidate

On Dec 21, 2007, at 5:49 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
wrote:

>>> If the DataSource of an object is set to a bizobj vs its string 
>>> equivalent, Then the fieldValidate function never fires.  We traced 
>>> this to the line...
>>>
>>> biz=Self.Form.getBizObj(ds)
>>>
>>> Which apparently returns none if ds is an object.
>>
>>      What sort of object is 'ds'?
>
> A bizobj

        So let me understand this: you have a bizobj reference, and they you
call self.Form.getBizobj(), passing the bizobj reference, and expect the
form to return the exact same bizobj?

        Would you mind if I asked why you were doing that?

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




[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