> You're correct; confirmChanges() only returns True/False, depending
> on whether the process should proceed. I was thinking of the
> dabo.ui.areYouSure() method, which will return True for 'yes', False for
> 'no' and None for 'cancel'.
>
>
>
> -- Ed Leafe
>
And that's what I trying to grab. The value of areYouSure. Ed's suggestion
doen't allow what I need.
The form is being closed when the Dashboard icon is clicked which fires
confirmChanges (when there are unsaved changes) which in turn fires the
areYouSure dialog. To this point I have the desired behavior.
What I'm wanting is
If the Yes button is clicked all works as expected with:
def openDashboard(self,evt):
self.close()
dabo.ui.createForm("frmDashboard.cdxml", show=True, parent=None)
If the No button is clicked all works as expected with:
def openDashboard(self,evt):
self.close()
dabo.ui.createForm("frmDashboard.cdxml", show=True, parent=None)
It's when the Cancel button is clicked that the problem arises. Closing of
the active form is stopped as it should but the
dabo.ui.createForm("frmDashboard.cdxml", show=True, parent=None) is still
firing which I don't want it to.
Carey
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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]