I have a record that is created in code. All it takes to create it is a string, thus I'm using a dabo.ui.getString() dialog to get the string from the user. This lead me to wonder about where would be the best place to catch a validation exception (dabo.dException.BusinessRuleViolation).
I'm tempted to catch it in the bizobj and then return an empty string in case it is valid or a string with the error message if it's not valid. This way the client code (in a form) can alert the user. On the other hand I could just show the dialog from the bizobj, which doesn't seem like a good idea (for readability), although in many cases this wouldn't be a problem. It also crossed my mind that this could interfere with Springboard. Since I don't know if the bizobj runs remotely or locally. Are there other reasons for not doing this? Miguel _______________________________________________ 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]
