Home > Default > Fill in form using XML data source usable in Reader

Fill in form using XML data source usable in Reader

October 11Hits:0
I have a simple example of a scenario we need to solve. Different branches will fill out a form (designed in LiveCycle 8) and by entering their branch number static information will be filled in. I want to store the static infomation for all branches in an XML sheet that will be stored on a shared folder on the intranet.
The problem I have is getting the script to run in Reader. In preview in the Designer and using the import data function of Acrobat Pro it works fine. I think I am missing the script to import the data to work in Reader. I have not been able to find anything in the documentation to point me in the right direction. I have also had a case open with Adobe support for 2 months.
Any help would be appreciated.
Below is the script in the exit event of the Text field BranchNumber:
----- BranchInfo.#subform[0].BranchNumber::exit: - (FormCalc, client) ------------------------------
var BList = ref(record.Branches)
for j=0 upto (BList.nodes.length -1) do
xfa.resolveNode("BranchInfo.#subform[0].Ph") = BList.nodes.item(2).name
if (BList.nodes.item(j).BranchCode.value == $) then
xfa.resolveNode("BranchInfo.#subform[0].Full_Company_Address") = BList.nodes.item(j).Full_Address.value
var List = ref(BList.nodes.item(j).SPCS)
if (List.nodes.length == 1) then
xfa.resolveNode("BranchInfo.#subform[0].Party_Code") = BList.nodes.item(j).SPCS.SPC.value
elseif (List.nodes.length > 1) then
for i=0 upto List.nodes.length -1 do
xfa.resolveNode("BranchInfo.#subform[0].Ph") = BList.nodes.item(j).PH.value
xfa.resolveNode("BranchInfo.#subform[0].Fax") = BList.nodes.item(j).FAX.value
xfa.resolveNode("BranchInfo.#subform[0].Member") = BList.nodes.item(j).Member.value
Below is the xml data file for this test:
<Full_Address>123 First RD #02 BOX 2222, DARTMOUTH, NS, B7W 1X9</Full_Address>
<Full_Address>BOX 55 Second ROAD PLAZA, ST JOHN'S, NL, A9N 1X1</Full_Address>
<Full_Address>333A Third ST, ST STEPHEN, NB, E9A 2Z3</Full_Address>


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.

Read other 8 answers


Related Articles

  • Fill in form using XML data source usable in ReaderOctober 11

    I have a simple example of a scenario we need to solve. Different branches will fill out a form (designed in LiveCycle 8) and by entering their branch number static information will be filled in. I want to store the static infomation for all branches

  • Problem in filling jasper report with XML Data sourceOctober 11

    Hello! I am trying to build a report uxing xml data source..Please verify following code: String outFileName = "c:/Report1.pdf"; File xmlFileName = new File("C:/Program Files/JasperSoft/iReport-1.2.5/report.jrxml"); String recordPath =

  • Using a SQL data source and XML data source in the same templateOctober 11

    I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to us

  • How to create a report using XML data source from Crystal Report DesignerOctober 11

    Hi, Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) an

  • How to Write Log Message in a XML Data Source ReportOctober 11

    Hi Friends, Can anyone help me out what is the process of writing a log file in the XML Data Source Report. for eg: in Plsql we use FND_LOG.PUT_LINE to print the Log message in the Concurrent Request Output. in the similar manner, when we develop a r

  • Logon failed when connecting to XML data source over HTTPOctober 11

    I am trying to create a report using the standard report creation wizard: 1) new, standard report 2) create new connection 3) xml and web services 4) xml data source When using the sample from the SAP site, it works fine: http://resources.businessobj

  • MapViewer with XML data sourceOctober 11

    Hello all, We have the MapViewer read data from JDBC data source doing spatial queries. Can any one tell me if I can use XML data source as input to the MapViewer. We have a data source that is only available thru Web services, we cannot make a datab

  • Delta queue & XML data sourceOctober 11

    Hi All   Can any body pls tell mme as to what this delta que ais and where is it used and how is it created,and also i want to know what is this XML Data source.   I need to get the data from XI,so i need this integration. I would be very thank ful i

  • CollapsiblePanel with XML data sourceOctober 11

    I've been working with the CollapsiblePanel for the past two nights. I can't make the panel collapse at runtime when I have XML data attached. I validated by downloading one of the Adobe Lab CollapsiblePanel samples. I validated that I could make the

  • Newbie XML data source questionsOctober 11

    Post Author: tel CA Forum: Data Connectivity and SQL I'm trying to use the XML data source via http and i'm running into a couple of issues. First, we have separate environments for development, QA, and production.  Each environment will have a seper

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.629 s.