On Sep 30, 2010, at 11:05 PM, Bronwyn Woods wrote:

> I have a bizobj with a validateRecord method.  When the validateRecord
> method fails (returns a string), a "dabo.dException.BusinessRuleViolation"
> is printed to the console with the correct error message.  But I can't
> figure out how to get a dialog to appear or the form's status bar to change.
> The PyCon tutorial seems to suggest this should happen automatically, but
> since I'm hand coding my forms I probably missed a step.  Can you tell me
> what the process is for getting that message propagated appropriately?

        The form has a method called 'notifyUser()' that is called when a 
BusinessRuleViolation is caught. By default it displays the error message in 
the status bar and in an informational dialog. Are you trying to call the 
'validateRecord()' method directly in your code, bypassing the framework? That 
method is called automatically when the form's 'save()' method is called.



-- Ed Leafe



_______________________________________________
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