Is there a bug in pui.click() ?
Posted: Fri Feb 22, 2013 8:07 am
Hello,
i have a mask with a cancel button. When the user clicks this button, the application and the Genie Session shall end. I don't want to have the "are you sure you want to leave this page" - message, when the program ends. Therefore i set in the onload event of the screen this code: pui.skipConfirm = true;
But this is a very "global" solution. I think it would be better, if "pui.skipConfirm = true;" would only be executed when the cancel button is clicked. This should have the effect that user doesn't get the confirm message, when he clicks the cancel button but the he will get the message when he leaves the screen in an incorrect manor (e.g. by closing the Browser).
So i moved the "pui.skipConfirm = true;" from the onload event to the onclick-event of the cancel button. But then the button does not work any longer. Even if i append the code pui.click('btnCancel") to the onclick event of the button, the button does not trigger the onclick event.
Has anybody an idea?
Thanks,
Dieter
i have a mask with a cancel button. When the user clicks this button, the application and the Genie Session shall end. I don't want to have the "are you sure you want to leave this page" - message, when the program ends. Therefore i set in the onload event of the screen this code: pui.skipConfirm = true;
But this is a very "global" solution. I think it would be better, if "pui.skipConfirm = true;" would only be executed when the cancel button is clicked. This should have the effect that user doesn't get the confirm message, when he clicks the cancel button but the he will get the message when he leaves the screen in an incorrect manor (e.g. by closing the Browser).
So i moved the "pui.skipConfirm = true;" from the onload event to the onclick-event of the cancel button. But then the button does not work any longer. Even if i append the code pui.click('btnCancel") to the onclick event of the button, the button does not trigger the onclick event.
Has anybody an idea?
Thanks,
Dieter