I would like to have a general YES/NO alert, which would be called across application with different questions (Title & Label texts will be passed as parameters).
What I need is an ability to catch a response.
So far I did:
3. Test Alert from application after some button is pressed:
PROCEDURE test_question IS BEGIN fs_app.questionYesNo(p_title => 'Confirmation', p_label => 'Tes YES /NO reposnse. Check LOG messages in LOG window!');
Problem with above is that it's not working correctly as it returns a previous response and not most recent response.
Any idea how to fix it? And probably how to rewrite it so it won't be using SESSION variable?
Note: I don't want to catch an alert response in "questionYesNoResponse" procedure, but in any other one which follows alert invoke. That's because I want to use this alert GENERIC and don't know what db action will be called once button1 or button2 is pressed.
asked 25 Sep '12, 07:30
Unlike Oracle Forms alerts, Formspider alerts does not stop the code flow, therefore it's not possible to retrieve the alert's response in the same event where the alert is shown. You can only retrieve alert's response when the alert is closed, using "On Close" event of the corresponding alert.
In our projects, in order to use an alert generically, we set a session variable just before showing our alert, this session variable points the procedure which will be called on "On Close" event of our generic alert. Then in a generic procedure which is called on "On Close" event of our alert, we retrieve the alert response and call the necessary procedure following the session variable value;
Please note that we split your "
Kind Regards, Ibrahim
answered 25 Sep '12, 10:33
Ibrahim Sand... ♦♦
thanks for the reply, initially I wanted to have an option without need to modify a "questionYesNoResponse" procedure in case a new use of the alert.
But nevermind, it§s not a big problem for us.
answered 26 Sep '12, 04:56