How can i read XML from local drive using Javascript into Live Cycle

Hello,
I am creating PDF Form using Acrobat LiveCycle.
I want to write java script for load data into relative field and data present into xml file which is located at local drive
I have write all method for parsing xml which is required ............... but i am stuck into how to read/open/load local drive xml using javascript?

sandyrock:
You'd better post this message to Adobe LiveCycle forum: http://www.adobeforums.com/webx/.3bbeda8d/
You can use postMessage method in LiveCycle JavaScript to communicate with host application,the host application can be a web brower like IE.
In IE you can use IE javascript to access local XML file.

Similar Messages

  • How can I read bytes from std input using nextByte()

    Hi. I am trying to read input text from std input into a byte array. I used the following procedure but have been getting errors
    Scanner myScanner = new Scanner(System.in);
         do{
              List[i] = myScanner.nextByte();
              i++;
         }while(i<List.length);
    When i try to print the List array after this loop, i get an InputMismatchException and Unknown Source error. What could be responsible for this?
    Thanks

    i don't really know what you're trying to do, but try this:
    maybe it helps you out.
    byte List[] = new byte[10];
            for (int i = 0; i < List.length; i++) {
                Scanner myScanner = new Scanner(System.in);
                List[i] = myScanner.nextByte();
            }this code creates an array of byte elements. the length of the array is 10 ( = new byte[*10*]). the for loop let's you fill the array with byte numbers over the keyboard.
    good luck

  • How can we read data from spread sheet using RowSet Object ??

    Please give some sample code for this...
    Urgent requirement....please....

    http://java.sun.com/developer/Books/JDBCTutorial/chapter5.html
    �I sense many useless updates in you... Useless updates lead to defragmentation... Defragmentation leads to downtime...Downtime leads to suffering..Defragmentation is the path to the darkside.. DBCC INDEXDEFRAG and DBCC DBREINDEX are the force...May the force be with you" --
    http://sqlservercode.blogspot.com/

  • How can get formatted data from hard drive

    how can get formatted data from hard drive?

    No chance without special tools/knowledge. There are companies that can do it, unless you use multiple format or rewrite data with special erase ustility or unless you have done low level format.
    Regards
    Milos

  • How can we read filenames from a specific folder

    Hi forum,
    I have a situation that, there are several files coming daily in a specific folder.
    I want to read filenames from that folder and want to get that filename in a variable.
    That filename contains account nos. which I need for further processing.
    Now, how can we read filenames from a specific folder with using Oracle PL/SQL Procedure?
    Please suggest.
    Thanks & regards,
    Kiran

    If you are on 10g (not sure which exact release I'm afraid) you might look at Chris Poole's XUTL_FINDFILES that lists the files in a directory using PL/SQL and DBMS_BACKUP_RESTORE.SEARCHFILES (all a bit undocumented as it seems to be provided as part of rman).
    The conventional (i.e. supported) approach is to use a Java stored procedure - there is an example on AskTom.
    Message was edited by:
    William Robertson

  • Read XML from a hardware sensor file into ODI

    Read XML from a hardware sensor file into ODI
    Hi,
    I am trying to extract xml data from a flowmeter that generates XML data.
    The xml file is found in http://ip_address/history.xml
    I’ve defined my Topology as such
    JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
    JDBC URL: jdbc:snps:xml?f=http://192.168.0.202/history.xml&ro=true
    Please note to access the file I have to supply a username and password so I did in the definition But when testing my setup I get an error:
    ava.sql.SQLException: The DTD file "http://192.168.0.202/history.dtd" doesn't exist: Server redirected too many times (20)
    Please note I cannot write dtd to the device as it is a read only device.
    Has anyone came across such an issue, how can I achieve this.
    Thanks
    Hicham

    Hi David,
    Thanks for your reply.
    I've tried this jdbc url
    jdbc:snps:xml?f=http://192.168.0.202/history.xml&d=c:\temp\history.dtd
    but when I test the connection i get the following error
    java.sql.SQLException: While generating the DTD from the XML file, a java.io.IOException exception occurred saying: Server returned HTTP response code: 401 for URL: http://192.168.0.202/history.xml
    If I browse http://192.168.0.202/history.xml and i supply the username and password I get an xml page.
    I've supplied the username and password in the definition tab of the Data Server windows but still getting the above error.
    THanks
    Hicham

  • How can i send pictures from iphoto and use entourage

    how can i send pictures from iphoto and use entourage. I use to do it when I used Mac OS Leopard

    Click on the image in question and execute COMMAND D which will copy an image in iPhoto.
    To delete an image in iPhoto, execute COMMAND DELETE.
    Ciao.

  • How can i transfer msgs from iphone 4s using ios6 to iphone 5 using ios7 without removing any thing from iphone5?

    how can i transfer msgs from iphone 4s using ios6 to iphone 5 using ios7 without removing any thing from iphone5?

    Thanks for the response -I thought that may be the case. I can access all the tracks in iTunes as it's part of the iTunes Match library. Is there not a way to download the tracks that are currently on the iPhone to the MacBook? I'm not trying to transfer the purchases but download the content from the cloud.
    Have I explained myself at all well?!

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • How can I read email from my aol account from my iphone and keep it as uread on my computer at home.  It automatically goes to read mail on my computer.  On my computer if I want to keep an email to answer later I can mark it "Keep as New".

    How can I read my email from my aol account from my iphone and keep it as "unread" on my computer at home?  At home I can read an email and if I want to get back to it at a later date I can mark it as "keep as new".  I tend to forget it if it goes to "read" mail.   Right now, when I read an email from my phone it goes automatically to "read" mail.

    On the iPad, using the mail app, there is no way to do what you are asking without tapping the flag icon and marking the item as unread. Have you tried the OWA app for the iPad? It may have that functionality, but I haven't tested it as you need an Office 365 subscription with Exchange support to use the app.

  • How can I read color from frond-end PC

    Hi Everybody,
    I have en HTML- control in my GUI and I would like to adjust back ground color of my HTML page to actual client color scheme. Does anyone known how can I read the color settings from client pc?
    Best regards
    Bogdan

    Hi,
    If you are using LOAD_HTML_DOCUMENT method to load the repository object, then pass a merge_table which contains an instruction to replace the background:
    TYPE-POOLS SWWW.
      DATA: l_merge_table TYPE swww_t_merge_table,
            l_merge_item  TYPE swww_t_merge_item,
            l_html_table  TYPE TABLE OF w3html,
            l_html_line   TYPE w3_html,
            l_url         LIKE me->url.
        CLEAR l_html_table.
        l_html_line = ' '.  " No background color, use default
        APPEND l_html_line TO l_html_table.
        l_merge_item-name = '<!BACKGROUND!>'.  " Tag to be replaced
        l_merge_item-html = l_html_table.
        l_merge_item-command = ' '.     " blank means replace tag line
        APPEND l_merge_item TO l_merge_table.
        CALL METHOD html_view->load_html_document
             EXPORTING
                  document_id  = 'DOCID'
             IMPORTING
                  assigned_url = l_url
             CHANGING
                  merge_table  = l_merge_table
             EXCEPTIONS
                  OTHERS       = 1.
    I have not tried this code but hope it helps,
    Rao A

  • How can I backup an external hard drive using Time Machine?

    How can I backup an external hard drive connected to my MacBook Pro using Time Machine?

    Attach drive, open Time Machine preferences, be sure external drive is not in the Exclude list.

  • How can I read a file with ASCII Special Character into a SQL table using SSIS 2008?

    I've tried everything to read this file and am getting no where.   Help how can I read this file and load a SQL table?
    RS - AscII - 30  (Record Separator)
    GS - AscII - 29 (Group Separator)
    Thank you for your assistance - Covi
    Mark Covian

    We can use script component as source/transformation to read the text file and assign the contains to a string. Split the string by chr(30)  i.e RS and finally stored into an array or write to the output buffer of the script component.
    For example on how to use script component refer this link
    http://social.technet.microsoft.com/Forums/en-US/6ff2007d-d246-4107-b77c-624781baab38/how-to-use-substring-in-derived-column-in-ssis?forum=sqlintegrationservices
    Regards, RSingh

  • How can I get permission from imovie to use text in my uploaded monetized YouTube clips

    I am able to use imovie to edit movies. I use a small amount of text and no music from imovie. How do I obtain permission from imovie to use a text title for my monetized YouTube uploads?

    You do not need permission for this.

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

Maybe you are looking for