cancel
Showing results for 
Search instead for 
Did you mean: 

Binding problem from adobe interactive form to SAP

seluk_gmi
Explorer
0 Kudos

Hello All,

I'm using SAP NetWeaver Developer Studio 2.0.9 SAP WAS 2004s SP11.

I'm tried to exercise with document "How To…Create Online and Offline Forms in Web Dynpro for Java" (you can check it this link https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fd2d690-0201-0010-de83-b4fa0c93.... I could run it succesfuly but i have a problem. I couldn't get data from Adobe Interactive form when i click "Submit to SAP" button. All field value return with "null".

The code is like that;

public void onActionFormSubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionFormSubmit(ServerEvent)

String name = wdContext.currentTravelDataElement().getEmployeeName();

String costcenter = wdContext.currentTravelDataElement().getCostCenter();

String city = wdContext.currentTravelDataElement().getDestinationCity();

String country =

wdContext.currentTravelDataElement().getDestinationCountry();

wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(

"Form submitted: Employe Name="

+ name

+ " costcenter="

+ costcenter

+ " city="

+ city

+ " country=" +

country);

}

}

What could be the problem?

Accepted Solutions (1)

Accepted Solutions (1)

amolgupta
Active Contributor
0 Kudos

hi Selcuk,

check what is the cardinality of the node that bound to the interactive form.

interactive form->properties->dataSource = <xyz node of context>

goto <xyz node of context> -> properties

just change the cardinality to 1..1.

goto

interactive form->properties...

check that the dataSource and pdfSource are bound to the right Context nodes/attributes...

hope this helps...

with regards,

-Amol Gupta

seluk_gmi
Explorer
0 Kudos

Thank you Amol Gupta,

This problem's been solved for quite a before now. I just insert a new method in context element -> supplyFunction and afterthat i can read data on interactive form.

Thank you all - for your answers,

Regards

Selcuk

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please check if there are proper scripts in the click event of the submit button at the script editor.

Also check if you have used the button from the WebDynpeo Library pallette.

Thanks and Regards,

Anto.

seluk_gmi
Explorer
0 Kudos

Thanks for reply,

I check code again and button from web dynpro library palette as you said, its not be helpful.