Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

prompt event(s) for scripting?

$
0
0

Hello,

 

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..

 

TEXT_1.setText(DS_1.getVariableValueExt("Z_VAR_0FISCYEAR_M_SV_M"));

 

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..

 

APPLICATION.openPromptDialog(600, 600);

(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!

 

Best regards,

Marco


Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>