cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive Form within Web Dynpro ABAP

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Ravi,

Could you please provide more details on how to set the click event value for the buttons in form ?

Thanks

Ravikumar

Former Member
0 Kudos

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