Import external xml file in PDF using Livecycle

I require sending some values in main xml file from the external xml file during sending mail on button click. Doing so, I want to read values from external file into a hidden field or send the external xml/text file as an attachment.
1. Is there any feature in live cycle to attach multiple xml/text files in mail using button click?
2. Is there any way to read an external xml file to pre-populate a textbox using javascript?
Kindly help me to find out the solution.
Thanks in advance
Vikram Kumar

Hi,
1) You can do this with a script. But this script works only with the Acrobat Pro not with the Adobe Reader!!
2) Sure.
You open your form.
Go to File | Form Properties |  Preview | then choose your xml-file
Then you have to got to the textobject | mark this | go to "Object" | "Binding"
Here you can bind the field: $record.PRINTJOB.PMSDATA.ObjectNameXML (You have to adapt this in the path in your XML to the field in the XML)
If you make a preview you will see the value of the XML in your textfield.
You can also script the databinding. You have to go to the initalize.event and write:
this.rawValue = xfa.record.PathToYourFieldInYourXML.ObjectNameXML.value;
Hope it will helps you,
Mandy

Similar Messages

  • How to import external XML file

    Hello guys:
    From this demo
    http://www.adobe.com/devnet/flex/quickstart/accessing_xml_data/#section2
    we know how to use a intrernal XML document. I know there are
    several way to load a external XML like:
    <mx:HTTPService
    id="loadTest"
    useProxy="false"
    showBusyCursor="true"
    resultFormat="xml"
    url="data/login.xml"
    />
    What I want to know is whether I could load a XML file
    directly, not use HTTPService and send. For a instance:
    [Bindable]
    private var login:XML = ("data/login.xml");
    or something like that. And then I could use login.user or
    login. pass .
    Now seems it is easy to control a intrernal XML data. I want
    to import a external XML file and use it like a intrernal XML.
    Thanks a lot

    You only have 2 choices: include the XML as part of the SWF
    using <mx:XML source="filename.xml" /> or load it dynamically
    using a data service such as HTTPService.

  • Load data in xml file into Pdf form created by LiveCycle Designer

    I want to load data in xml file into Pdf form when Pdf opened and Form field will be filled with data from xml file .I try to use $host.importdata("filename.xml"); But i could not find suitable place to run my code. Can anyone give me some advice? thank you.

    Hi,
    extract your xml and then you can use insert all clause.
    here's very small example on 10.2.0.1.0
    SQL> create table table1(id number,val varchar2(10));
    Table created.
    SQL> create table table2(id number,val varchar2(10));
    Table created.
    SQL> insert all
      2  into table1 values(id,val)
      3  into table2 values(id2,val2)
      4  select extractValue(x.col,'/a/id1') id
      5        ,extractValue(x.col,'/a/value') val
      6        ,extractValue(x.col,'/a/value2') val2
      7        ,extractValue(x.col,'/a/id2') id2
      8  from (select xmltype('<a><id1>1</id1><value>a</value><id2>2</id2><value2>b</value2></a>') col from dual) x;
    2 rows created.
    SQL> select * from table1;
            ID VAL                                                                 
             1 a                                                                   
    SQL> select * from table2;
            ID VAL                                                                 
             2 b                                                                    Ants

  • What XML encoding do I use to get APEX to import an XML file?

    Environment:
    APEX 3.1.1.00.09 on AIX 5.3
    SQL Developer 1.5.5 on Windows XP Pro SP3
    Oracle 10.2.0.2 EE on AIX 5.3
    Trying to import an XML file generated from SQL Developer into a table using APEX Import utility.
    I'm getting the error: ORA-19200: Invalid column specification
    All I've done is exported the EMP table from SQL Developer (v. 1.5.5) into an XML file and then tried to load into an empty EMP table in the database (10.2.0.2) using APEX and the Data Load Utility.
    I've tried creating the XML file using different encodings out of SQL Developer but so far an still getting the above error.
    Any help is greatly appreciated.
    -gary

    Hi Scott
    First of all I was successful in exporting and re-importing the EMP table to and from APEX.
    When I exported the EMP table in XML format using SQL Developer, the resulting XML looked very different from the same data exported from APEX. My APEX exported XML looked just like yours. Here are the first 3 rows of the XML file exported from SQL Developer. I'm NOT an XML person so I can't judge whether or not this is valid XML but I can tell you that it doesn't import into an empty EMP table through APEX. I can control the encoding type in SQL Developer and have tried several different flavors.
    <?xml version='1.0' encoding='UTF-8' ?>
    <RESULTS>
         <ROW>
              <COLUMN NAME="EMPNO"><![CDATA[7876]]></COLUMN>
              <COLUMN NAME="ENAME"><![CDATA[ADAMS]]></COLUMN>
              <COLUMN NAME="JOB"><![CDATA[CLERK]]></COLUMN>
              <COLUMN NAME="MGR"><![CDATA[7788]]></COLUMN>
              <COLUMN NAME="HIREDATE"><![CDATA[12-JAN-83]]></COLUMN>
              <COLUMN NAME="SAL"><![CDATA[1100]]></COLUMN>
              <COLUMN NAME="COMM"><![CDATA[]]></COLUMN>
              <COLUMN NAME="DEPTNO"><![CDATA[20]]></COLUMN>
         </ROW>
         <ROW>
              <COLUMN NAME="EMPNO"><![CDATA[7499]]></COLUMN>
              <COLUMN NAME="ENAME"><![CDATA[ALLEN]]></COLUMN>
              <COLUMN NAME="JOB"><![CDATA[SALESMAN]]></COLUMN>
              <COLUMN NAME="MGR"><![CDATA[7698]]></COLUMN>
              <COLUMN NAME="HIREDATE"><![CDATA[20-FEB-81]]></COLUMN>
              <COLUMN NAME="SAL"><![CDATA[1600]]></COLUMN>
              <COLUMN NAME="COMM"><![CDATA[300]]></COLUMN>
              <COLUMN NAME="DEPTNO"><![CDATA[30]]></COLUMN>
         </ROW>
         <ROW>
              <COLUMN NAME="EMPNO"><![CDATA[7521]]></COLUMN>
              <COLUMN NAME="ENAME"><![CDATA[WARD]]></COLUMN>
              <COLUMN NAME="JOB"><![CDATA[SALESMAN]]></COLUMN>
              <COLUMN NAME="MGR"><![CDATA[7698]]></COLUMN>
              <COLUMN NAME="HIREDATE"><![CDATA[22-FEB-81]]></COLUMN>
              <COLUMN NAME="SAL"><![CDATA[1250]]></COLUMN>
              <COLUMN NAME="COMM"><![CDATA[500]]></COLUMN>
              <COLUMN NAME="DEPTNO"><![CDATA[30]]></COLUMN>
         </ROW>
    Maybe I should move this thread to the SQL Developer or XML forums.
    If you have any other suggestions I would be most appreciative.
    Thanks very much for your help.
    -gary

  • How to import multiple xml records into PDF form

    Our organization needs to print and distribute serveral hundred PDF forms to our members.  We want to populate the names and some other basic info at the top of each form so the member can fill in the rest and sign and return it.  I have the one page form set up with the fields and it's connected to an xml schema data source.  When I import the xml file it reads the first record and that's it - how do I get it to read all of the xml records into a copy of the form for each record in the xml data source file so we can print and discribute the forms?  We are using Acrobat 9 Pro on a Windows 7 32 bit machine.
    Thanks

    Is this a form created with Acrobat or LiveCycle?
    Acrobat would need uniquely named fields for each individual's page or pages if they are all in one file.
    If you are processing one PDF file per individual, I would look at splitting the XML or FDF file into a record for each individual and them populating each individual's PDF form.
    You could even use a tab delimited file and a template to populate the  PDF template and then spawn a new page from the template.
    With LiveCycle I would look at using a database for the variable data.

  • Testing SWF with external XML file, strange problem.

    Hi!
    My problem started after migration to 2.01. But I think it's
    not version problem.
    I have old project which uses external XML files ("
    http://www.mydomain.com/myxml.xml").
    When I teste project in "bin" folder it works perfect and SWF
    import data from XML.
    I created new Flex project and copied all scripts from old
    one. And my new app can't read external XML!!! (tested in "bin"
    folder):
    *** Security Sandbox Violation ***
    Connection to xmlURL halted - not permitted from
    file:///C:/myproject/bin/myproject-debug.swf
    BUT when I copy my new SWF to the old project "bin" folder
    then it WORKS! Strange!
    I found in Help "The Global Flash Player Trust directory" and
    I checked files: "flexbuilder.cfg", "flexbuilder.fbr" there are all
    my project paths (old and new).
    Thanks for help!
    newman

    You should your homework with Google and other search engines
    better ;)
    http://www.robrusher.com/1/2006/08/Flex-2-Error-with-XML.cfm

  • How to read an external XML file in a indesign Plugin?

    Hi All,
    Can you please guide in reading an external XML file in a indesign Plugin in MAC system. I am an windows user.We are using this file for reading some inputs.
    Thanks,
    Daniel

    Hello Daniel,
    I am uncertain about the actual question. If you are developing a plug-in or otherwise interfacing with the guts of ID, I suggest asking the question in the SDK forum:
    InDesign SDK Forum
    Otherwise, what is it you are wanting to know concerning importing XML into InDesign?
    Mike

  • Can't import an xml file

    Hi,
    I am using Captivate 5.5 on Windows. I have an .swf file which needs to have an xml file with it in order for it to behave the way in which it was intended. The developer has said that the two files need to be included in the same folder.
    I have no problem importing the swf file however I can't import the xml file which is called flashParams.xml. I have been editing the xml file in windows notepad and it is working perfectly outside Captivate. However when i try to import the xml, I get the message 'Cannot import XML'. I have been using File/Import/from xml to get the file loaded but no luck. I have also tried dragging it into the library but no luck here either.
    Can anyone suggest what I might be doing wrong and how they would approach what surely must be a very simple task.
    Thanks,
    Nick

    Hi Rod,
    Thanks for the reply.
    I think what I could do is to launch the swf by clicking on a link in the Captivate session to an external url (it will be hosted on Moodle). The one problem I have is that when I do this in Captivate, the slide refuses to pause and moves onto the next slide. What I would like is for the user to be able to click on the link for the url and for the slide to pause until the user clicks on a next button to go to the next slide.
    Nick

  • How do I import one xml file into 3 separate tables in db?

    I need to utilize xslt to import one xml file into 3 separate tables: account, accountAddress, streetAddress
    *Notice the missing values in middleName, accountType
    sample xml
    <account>
    <firstName>Joe</firstName>
    <middleName></middleName>
    <lastName>Torre</lastName>
    <accountAddress>
    <streetAddress>
    <addressLine>myAddressLine1</addressLine>
    <addressLine>myAddressLine2</addressLine>
    </streetAddress>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>mypostalCode</postalCode>
    </accountAddress>
    <accountId>A001</accountId>
    <accountType></accountType>
    <account>
    I need the following 3 results in 3 separate xml files in order for me to upload into my 3 tables.
    Result #1
    <rowset>
    <row>
    <firstName>Joe</firstName>
    <lastName>Torre</lastName>
    <accountId>A001</accountId>
    <row>
    <rowset>
    Result #2
    <rowset>
    <row>
    <addressId>1</address>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>myPostalCode</postalCode>
    <row>
    <rowset>
    Result #3
    <rowset>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>1</addressLineSeq>
    <addressLine>myAddressLine1</addressLine>
    <row>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>2</addressLineSeq>
    <addressLine>myAddressLine2</addressLine>
    <row>
    <rowset>

    Use XSU to store in multiple tables.
    "XSU can only store data in a single table. You can store XML across tables, however, by using the Oracle XSLT processor to transform a document into multiple documents and inserting them separately. You can also define views over multiple tables and perform insertions into the views. If a view is non-updatable (because of complex joins), then you can use INSTEAD OF triggers over the views to perform the inserts."
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#i1007013

  • How can I set connection to external XML file with Dreamweaver to buiild AIR app?

    Hello,
    I try to do simple AIR app in dreamweaver. It's not problem
    to use static data. But I'd like to use dynamic data from external
    XML file. I try to use Spry and evrything works fine in web browser
    but i have problem with loading external XML data into my app in
    AIR. Can I simply transform my spry based html app into AIR?
    What should I add to do this?
    Pawel

    Daniel Lichtenwald wrote:
    What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?
    Usually, we don't speak of "receive" when using FTP, since the file is transferred from server to client, so it's more of a case of "download".
    At your end, it's simple. You use an FTP client; under SL, that includes Finder and Safari, so you don't even need to get any additional software.
    At the other end, it's more complicated; the 'sender' must set up an FTP server on his machine.
    Alternatively, you can set up your own Mac as an FTP server, and have the 'sender' connect to you with an FTP client and upload the file; but, if your Mac lives behind a router, then you have more work to do with the router settings.
    That's why it's much easier to use the file sharing services mentioned above -- if they are available in both sender's and receiver's locations. (Keep in mind that some countries block access to all those mentioned -- except perhaps <www.transfer.ro>, of which I know absolutely nothing.)

  • Is there a way to import large XML files into HANA efficiently are their any data services provided to do this?

    1. Is there a way to import large XML files into HANA efficiently?
    2. Will it process it node by node or the entire file at a time?
    3. Are there any data services provided to do this?
    This for a project use case i also have an requirement to process bulk XML files, suggest me to accomplish this task

    Hi Patrick,
         I am addressing the similar issue. "Getting data from huge XMLs into Hana."
    Using Odata services can we handle huge data (i.e create schema/load into Hana) On-the-fly ?
    In my scenario,
    I get a folder of different complex XML files which are to be loaded into Hana database.
    Then I gotta transform & cleanse the data.
    Can I use oData services to transform and cleanse the data ?
    If so, how can I create oData services dynamically ?
    Any help is highly appreciated.
    Thank you.
    Regards,
    Alekhya

  • Adobe not allowing import of XML file captured from Media Express through Black Magic capture card

    I have been going crazy trying to find a way to import the XML files to fix the digitized look Adobe capture gave my footage. Someone help me
    These are not XML from Final Cut. They are files saved from Media Express, a Black magic design program used for Capturing.
    THANK YOU.
    Please email me if you know how to fix this
    [email protected]
    THANKS AGAIN!

    Wouldn't it be more appropriate to open the actual media files captured with the program?

  • Attach an xml to a pdf using ADS

    Hi all,
    I have a scenario where we are sending a Base64 encoded PDF (a bill) and the corresponding xml data from SAP backend on level 4.6C to PI 7.1. In PI we should attach the xml data to the PDF. I have already succeeded to do this using iText but we have a requirement to do this with ADS instead. In Netweaver Developer Studio I created an example project where I am reading a PDF as a byte array, also reading an XML file and try to attach the XML to the PDF using the ADS api. The project successfully built in NWDS but when I am running the project it failes.
    I am using standard code to attach the xml stream to the pdf, the error message is thrown when the following line is executed:
    IWDPDFDocument document = context.execute();
    Exception in thread "main" java.lang.ExceptionInInitializerError
         at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.impl.PDFDocumentAccessibleContextWDImpl.execute(PDFDocumentAccessibleContextWDImpl.java:99)
         at com.eon.xi.dijnet.base64.PdfWithAttachment.addAttachmentWithSap(PdfWithAttachment.java:129)
         at com.eon.xi.dijnet.base64.PdfWithAttachment.main(PdfWithAttachment.java:218)
    Caused by: java.lang.NullPointerException
         at com.sap.tc.webdynpro.services.sal.deployment.core.DeployableObjectInternal.getSystemDeployableObjectName(DeployableObjectInternal.java:53)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper.<clinit>(AdobeFormHelper.java:115)
         ... 3 more
    Is it the problem with the PDF that it is not an Interactive Form?
    Or the problem is simply that I am trying to run the project on my local machine where ADS is not available?
    Thanks for your help.
    Pal
    Edited by: Pal Somogyi on Oct 17, 2010 10:30 PM
    Edited by: Pal Somogyi on Oct 18, 2010 11:44 AM

    Hi Pal,
    There is a requirement to generate an Adobe Form using SAP Interactive forms, and then, send this PDF to a non-SAP system using Base-64 encoding. The receiving system will decode this file and re-generate a PDF.
    I have heard that this could be done in the PI layer, using the Conversion Agent.
    Another approach which I can think of is convert PDF to binary and then use the cl_http_utility=>encode_base64 to convert binary to base64.
    You have mentioned that you have had to send a base 64 encoded pdf. Could you pelase guide me through the process?
    Thanks,
    Preethi.

  • How to convert XML file to PDF

    Hi there,
    Does anyone know by any chance, how to covert XML file to PDF? Thanks

    Hello,
    You can convert most of the files in PDF by using the Print menu.
    Open the file you want to save in PDF and choose in the menu bar File > Print....
    You will see a will the Print window and at the left, click on the PDF button.
    Choose in the menu “Save as PDF...”
    Insert the name and you can also set security settings (like a password) and click on the “Save” button.
    Hope this will help.
    EDIT : (oups, dsimagry posted as the same time of me)

  • How to import a XML file into the document?

    Hai,
    i had created a table using xml file....
    Now i want to import that xml file tabel into the document...
    Can any one tell me how to import the xml file into the document?
    thanks
    senthil

    Hai...
    this is senthil...
    i'm beginner for creating adobe indesign plugins..
    i want to import a html file in the document...
    i want to create a table by using html tags and
    that table will be imported into the document..
    How shall i do it?
    can any one plzz explain me?

Maybe you are looking for

  • Error executing a package on Oracle 10G database

    Hi, I've a package on Oracle 10G database which accepts xml string as input,loads it into XMLDOM and does some processing. When I execute this package from .Net 2.0 client,I get the following error: **Error** err ORA-31011: XML parsing failed ORA-192

  • Can't install itunes 11.1.3 on Windows 8.1

    Hi, I bought a new toshiba a few days ago, and i need to install itunes. I tried many times, and I can't install it. My pc runs windows 8.1 64 bit. It says that exists a problem with this windows installer package. And that is necessary a DLL to conc

  • App uninstall and Windows File protection

    Hello, I am having problems uninstalling Apps created with snapshot. The apps install fine but when uninstalling Windows file protection pops up with the prompt for the cd. Is there a work around to this? Can I hack the registry to point to an i386 d

  • Demantra - can it run with two Data Models in parallel?

    Hello, we face the following situation: we have items that have to planned on a daily basis; many other items, however, only need weekly planning. Demantra only allows one base time unit in its data model. If we choose "daily" for all products, the s

  • Bom Changing Authorization Check (CS02,CS62)

    Hi all I am tring to block users from changing Material Bom usage 1 without ECM but allowed them to change Order Bom any usage without ECM I used c_stue_ber and c_stue_noh for tring block them also i couldn't find any user exit that i can used for th