prompt event(s) for scripting?
are somewhere events for prompt execution ("OK" / "Cancel" Button) available?
The scenario is: Application with a BEx Query Datasource (DS_1). The BEx Query has an input ready, mandatory, single value variable for 0FISCYEAR. In the application I want to show the selected year in a text box via the Script Code..
Including this code in the "On Startup" event of the application works fine. The prompt dialog is shown in the beginning and the according text is set after I choose a year and press the OK-Button of the prompt. Unfortunately I am stuck when I want to enable the endusers to refresh the prompt without having to start the application all over again. E.g. by a button with the "On Click" script code..
(like described in http://scn.sap.com/docs/DOC-41393)
First idea was to put the setText-method directly underneath the openPromptDialog-method in the "On Click" event of the button. But then the prompt is shown and the text is refreshed directly after that - with the selected year of the prior(!!!) prompt execution.
Executing the prompt via the button doesn't trigger the "On Startup" event of the application again.
So what I probably need is something like prompt events.. And I cannot find anything like that..
Any ideas are appreciated!