cancel
Showing results for 
Search instead for 
Did you mean: 

Check and Submit Button dont trigger the events

Former Member
0 Kudos

All,

I have two webdynpro activex buttons check and submit embedded on the form. These buttons have this script on their respective click events -

app.eval("event.target.SAPSubmit();");

app.eval("event.target.SAPCheckFields();");

This inturn is supposed to trigger the code within the onCheck and onSubmit event handlers of SAP Interactive Form.

But, when I click these buttons nothing seem to happen.

Can someone help me resolve this issue as it is very criticial for me.

Any help is highly appreciated.

Many thanks,

Divya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Divya,

Check whether you set the right "displayType" property for Interactive form.

If your using Activex button then set it to Activex, if your using native button then change it to Native

And check the "mode" property too... try by setting it to generatePdf

Thanks

Gopal

Former Member
0 Kudos

Hi Divya,

These events would also work in both modes "updateDatainPDF" as well as "usePdf". Try using activex controls with ACF installed on your machine, ACF is the most common reason behind such issues.

Hope this helps!!

Regards,

Arafat

Answers (1)

Answers (1)

Former Member
0 Kudos

All,

I now made the events as "Server"and get an information message stating (Couldn't post data to '' ) when I click on these buttons.

But, it still does not trigger the event handler method.

What can be wrong?

Many thanks,

Divya

Former Member
0 Kudos

Hi Divya,

Change the Interactive form type to native and use the UI elements from the webDynpro native pallette.

This would help.

The scripts are in the elements by default.

Thanks and Regards,

Antony

Former Member
0 Kudos

Hi Antony,

I tried this as well but it still throws the message Couldn't post data to '' on click of the button.

Please help.

Thanks,

Divya

Former Member
0 Kudos

Are you sure, you have put the button in the body page (If you are using Designer 8.0, it is called by a differnt name, sorry i forgot )

Thanks and Regards,

Antony