cancel
Showing results for 
Search instead for 
Did you mean: 

Problem on Button

Former Member
0 Kudos

Dear Experts,

I am new to interactive form development and i have one problem,

I have designed adobe form; it contains some input fields and a button (Submit to SAP). In the WebDynpro view, I placed the interactive form UI element and bound the adobe form with this. Also I have bound an Action to the onSubmit property of the Interactive Form UI and in this event I have written some statements to print a simple message to test the event trigger.

When I click the submit button from the adobe form at runtime, nothing is displayed in the browser. That is the onSubmit event is not triggered. Where do I go wrong? Kindly clarify me to resolve this problem.

Kind Regards,

parthasarathi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Parthasarathy,

If you working on WebDynpro for ABAP then in the Layout Designer you must insert the WebDynpro Script to work with the WebDynpro Native Library Palette. To do this open the Layout Designer then goto utilities and there select "Insert WebDynpro Script".

And in the properties of the UI element of Interactive Form in WebDynpro under the Events you'll find the onSubmit there you must specify the action and for that action in the method you can write the ABAP code.

Regards

Pradeep Goli

Former Member
0 Kudos

hi Pradeep Goli ,

i am working in webdynpro abap.. i am getting error when inserting the webdynpro script.

It show error message is " Error when inserting the Webdynpro Script "

please clarify my doubt.

by

parthasarathi

Edited by: Parthasarathi Lingam Subburaman on Dec 3, 2008 8:25 AM

chintan_virani
Active Contributor
0 Kudos

Parthasarthi,

See if my reply in below thread helps.

Chintan

Former Member
0 Kudos

Hi,

Select the Layout Type of the Adobe Form as "ZCI Layout".

Regards

Pradeep Goli

Former Member
0 Kudos

Hi Parthasarathi,

After you have inserted your Web Dynpro script sucessfully, check the Javascript of the button. You want to make sure that you have the following lines:

- inside the mouseDown event for the button (FormCalc)

$record.CONTROL_PARAM.ISR_EVENT = "CUSTOM_EVENT"

where CUSTOM_EVENT is the name of your operation in the backend... and in the Click event of the button (JavaScript):

ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");

This should trigger a call to the backend. The Web Dynpro script added to the form has the ContainerFoundation_JS scripting.

Also, you can add the following template to your library of elements for form development... the button here contains the code I listed above...

[Note 973170 - New library for "SAP Interactive Forms by Adobe"|https://service.sap.com/sap/support/notes/973170]

Hope this helps...

Cheers,

Kevin

Former Member
0 Kudos

hi pradeep,

i was change the layout type standard to zci.

But i am getting same error...and buttion is not trigger any action.

Former Member
0 Kudos

Hi PathaSaradhi,

I faced similar problem. Go through the following link:

Regards,

Ravi

Former Member
0 Kudos

Dear Chintan,

In my designer form does not contain webdynpro native library.

it only have the following tabs are standard,barcode,custom,webdynpro,form build in my library.

i think if any problem in ALD? my version is 7.0.....i need any upgrade in this.

Please give the suggestion...

chintan_virani
Active Contributor
0 Kudos

Partha,

Yes indeed you will need atleast ALD 7.1 to design Interactive Forms. Check Note 962763 for more details.

Chintan

Former Member
0 Kudos

Thanks chintan & pradeep,

My problem was solved.

my upgrade to ALD 7.1 from ALD 7.0.

After Install this s/w. Its Works Properly.

Thanks for yours help.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

please check the following link there is a very simple example on how to create interactive form using webdynpro for java

http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm

Thanks and Regards

shanto aloor