on 05-18-2006 12:49 PM
Hi,
Are there any helpclasses available to fill in the value attributes of a contextnode of an adobe interactive form (in Web Dynpro for Java) using the XML data that has been generated by that interactive form?
Or should I parse the XML myself and fill the node attributes manually?
thanks,
Jeroen
Not sure,
but here are some hints.
1. TO_XML method which can convert context elements to XML format.
2. when you work with Interactive Forms in Web Dynpro, the only format you get back is the PDF.
While there is XML conversion (from Java or ABAP structures to Adobe's XML format XFA), this is done by the SAP environment in the background based on the Web Dynpro context. XFA is what the Adobe document services use to generate the PDF and to extract the data from the filled-in interactive form. There is no standard way of accessing the XFA directly.(by Mrkus Meisl in other thread).
3. If it is atleast SP14 (WebDynpro runtime) then you can use the following code to get the data contained in the data dource context in an XML format:
OutputStream data = WDInteractiveFormHelper.getContextDataAsStream(wdContext.nodeData());
Thanks,
Raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply,
But then how is the xml data supposed to be treated? When a user uses the send mail button in an adobe interactive form, xml data is send to an email address. How should I use this XML data together with the PDF template in order to get a filled in PDF (in Web Dynpro for Java?)
Thanks
Hi Jeroen,
can you please explain in detail what you want to do? The solution in Web Dynpro is actually set up in such a way that you don't have to do anything with the XML at all, the framework handles that for you. You wikr in Web Dynpro and code what you need to do there.
What is your scenario?
Kind regards,
Markus Meisl
Hi Markus,
The scenario is quite simple:
1. user fills in an offline adobe interactive form
2. user clicks on send-mail button in form
==> The filled-in data is send to an email-address in XML format (the target mailserver is on SAP WAS)
3. The XML data is stored somewhere in SAP
4. Later on, the user goes to its workitems inbox at the portal and clicks on a workitem. The previous filled in PDF should appear so the user can complete some fields he wasn't able to fill in before.
So in step 4 I want to create a PDF (in Web Dynpro for Java) using the previously sent XML data & the PDF template.
Thanks!
Jeroen
Hi Jeroen,
to have a user fill in, you first need to create a Web Dynpro application providing the offline form, e.g. through a download - tutorial at http://sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/2dd3dbcd-0401-0010-55b8-b10808ff688e - or an e-mail - tutorial at http://sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b040e6cd-0401-0010-268d-f67cf4904358
On the return trip, the user-entered data is stored in the SAP backend via the Web Dynpro context. (You do not store the raw XML, the data is back-converted by ADS to Java.)
In the fourth step, you will have to provide a Web Dynpro
application with an online form, which can be part of the same project, but basically generates the form again for completion.
If you want to use the same form that was submitted, you have to have your app store the submitted PDF (do not submit only the XML) in the backend (through the WD context), and then call that one up in the online scenario.
Cheers,
Markus
. user clicks on send-mail button in form
==> The filled-in data is send to an email-address in XML format (the target mailserver is on SAP WAS)
The XML data is stored somewhere in SAP
Hi Jeron ,
Can you let me know how my ABAP program can locate the XML data stored in SAP server ..
I am in urgent need for this .. I am planning to write a ABAP code to read this XML file .. any light into this will be helpful
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.