Yes - if I open the screen and clear the first field, then tab to the next 
field there is no error message. If I open the screen, navigate to the next 
record, then navigate back to the first and do the same thing I do get an 
error message in the status bar. Basically the same thing happened with 
record level validation (but with the message in a message box happening 
after the save button was clicked rather than the control losing focus) 
Record and Field validation routine are as follows :-
  def validateRecord(self):
   """Returning anything other than an empty string from
   this method will prevent the data from being saved.
   """
   ret = ""
   myval = self.Record.MTypeDesc
   if myval is None or myval =='':
    ret = "Please enter a description"
   # Add your business rules here.
   return ret

  def validateField(self, fld, val):
   ret = ""
   if fld == "MTypeDesc":
    if val is None or val =='':
     ret = "Please enter a description"
   # Add your business rules here.
   return ret
----- Original Message ----- 
From: "Ed Leafe" <[EMAIL PROTECTED]>
To: "Dabo Users list" <[email protected]>
Sent: Friday, November 21, 2008 11:08 AM
Subject: Re: [dabo-users] Bizobj Validation


> On Nov 20, 2008, at 5:59 PM, Roger Lovelock wrote:
>
>> Have tried using both record level and field level validation
>> routines - problem occurs if no navigation between records has
>> happened - with either type of validation it appears to work, but
>> the error messages do not appear. Once any sort of navigation
>> between records has occured messages appear as expected. Perhaps I
>> am missing something?
>
>
> Field level validation happens when the control loses focus, not just
> when navigating to a different record. Are you saying that you are
> failing field validation but without any visible clue? Record-level
> validation of course only occurs before a save().
>
>
> -- 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]

Reply via email to