I think something like...
if self.save():
self.close()
else:
self.notifyUser('Cannot save')
should work
HTH,
Larry
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Miguel Lopes
> Sent: Monday, November 09, 2009 11:39 PM
> To: Dabo Users list
> Subject: [dabo-users] Form Validation
>
> A button on a form saves and closes the form.
>
> def onBtnSave(self, evt):
> self.save()
> self.close()
>
> This seems like a straight forward situation, but if the
> bizobj validateRecord kicks in with the save() call. I don't
> know how to stop the method from calling close().
>
> What's the dabo way to accomplish 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/a19730800911092039gfa9e1c3m6a2
> [email protected]
>
_______________________________________________
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/!~!uenerkvcmdkaaqacaaaaaaaaaaaaaaaaabgaaaaaaaaaafa2fnyupuomnfpiynbeqckaaaaqaaaawe8j++8j9k2gch7+mzk6haeaa...@charter.net