on 07-06-2007 2:41 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.