How can you tell if a form was cancelled or okayed?
I have a form
f = appuifw.Form(data, 17)
def get_stuff_from_form(self, form):
a = int(form)
b = int(form)
if (<the form was cancelled>):
How can I tell if my form was cancelled or not? Is it one of the attibutes of 'form'?
I haven't tried it, but I think that when you cancel the form (and you change the values), the returned values will be the default ones, won't them?
If so (I am not sure, that's just an idea), you can compare the default value with the returned value and find out if the form was cancelled or not
Thanks, that's a good workaround. I was hoping there was a better way, but I guess not.
I actually want to send something if they hit ok even if they don't change the values, but not with a cancel. I guess it doesn't support it.