Now tried the same field validation in the AppWizard version of my
maintenance screen. The validation works correctly on the first record!
Maybe its a problem with the data cursor generated in the ClassDesigner as
opposed to the AppWizard which (it appears to me from a novices viewpoint)
loads its initial set of data in a very different way.
nb still didn't get any output in the console window, so I guess I did put
the debug code in the wrong file.
Rodgy
----- Original Message -----
From: "Ed Leafe" <[EMAIL PROTECTED]>
To: "Dabo Users list" <[email protected]>
Sent: Friday, November 21, 2008 2:59 PM
Subject: Re: [dabo-users] Bizobj Validation
> On Nov 20, 2008, at 9:31 PM, Roger Lovelock wrote:
>
>> I am validating that the field must have a value. The initial record
>> displayed already has a value. If I clear it and save (record level
>> validation) or clear it and tab to the next field I do not get the
>> validation message. If, however, I have navigated prior to this to
>> another
>> record all works fine and the error message appears (in both cases).
>
> Can you make this change to dabo.ui.dDataControlMixinBase.py?
>
> 68 def _lostFocus(self):
> 69 ok = True
> print "IN FLD VALID", self._inFldValid
> print "OLD", self._oldVal
> print "CURR", self.Value
> 70 if self._inFldValid or (self._oldVal != self.Value):
> 71 # Call the field-level validation if indicated.
> 72 if hasattr(self.Form, "validateField"):
> 73 ok = self.Form.validateField(self)
>
> After you add those debugging lines, run your app as your have and
> post the output in your reply.
>
>
> -- Ed Leafe
>
>
>
>
>
[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/[EMAIL PROTECTED]