on 05-18-2009 3:50 PM
Hi,
I've an Adobe interactive form element within Web Dynpro ABAP view. I've more than one WebDynproActiveX buttons within the Interactive form (like Submit, Cancel, Clear).
How can I differentiate the user selection within Webdynpro ? Whether the user selected Submit or Cancel or Clear ? Can we associate any function code for each button ?
Thanks
Ravikumar
Hi Ravi,
You can take a context attribute lets say "STATUS"(string) in your form context. For your buttons in the form, in click event set the value. like
STATUS.rawValue = "1"; (eg Submit)
STATUS.rawValue = "2"; (eg Cancel)
And in your submit event read this context attribute and you can use CASE like when 1 , when 2 etc and you can execute your code accordingly.
it should solve your problem.
With Regards,
Ravi.D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
Once you select the button in Adobe life cycle designer, on the top you can see Events with scripts. Select Click event from the drop down. And select language as JavaScript.
Once you select these two options , you can write your java script in script editor.
If you dont find these options.. go to palettes and select Script editor.
With Regards,
Ravi.D
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.