Xfa.host.exportData and Reader

I've created a dynamic xml PDF form in Adobe LiveCycle designer.
Inside the form I placed a button and on the click event I call xfa.host.exportData("",0);
Then opened the file in Acrobat Professional, clicked the button and it works Yay! Then I Saved Other as Reader Extended PDF.
Opened the newly saved file in Reader XI and when I click the button the JavaScript console spit out the following error:
NotAllowedError: Security settings prevent access to this property or method.
Doc.exportXFAData:-1:XFA:form1[0]:page3[0]:Button1[0]:click
This is really annoying and could use some guidance.

Take a look at the documentation for Doc.exportXFAData():
http://help.adobe.com/livedocs/acrobat_sdk/11/Acrobat11_HTMLHelp/wwhelp/wwhimpl/common/htm l/wwhelp.htm?context=Acrobat11_HTMLHelp&file=JS_API_AcroJS.89.470.html
As you can see from the "F" in the Quickbar, the document would need "Forms
Rights" for this to work in Reader (
http://help.adobe.com/livedocs/acrobat_sdk/11/Acrobat11_HTMLHelp/wwhelp/wwhimpl/common/htm l/wwhelp.htm?context=Acrobat11_HTMLHelp&file=JS_API_AcroJSPreface.88.8.html).
You need LiveCycle Reader Extensions to assign those rights.
Unless you can assign form rights to your document, this will not work in
Reader.

Similar Messages

  • Acrobat Reader 7.0.3 and xfa.host.exportData("",0);

    I have a lot of forms that I have made with Designer 7.0. Each of them has 'Export XML' button that has the following code
    xfa.host.exportData("",0);
    So far people with Acrobat Reader clients have been able to export form content to XML file, but now it seems that after some update (7.0.3) this is no longer possible?
    Is this really so?
    Br,
    Kari

    Hi!
    No, it is no so.
    At least it works fine with my forms. I have trouble with the
    xfa.host.importData();
    which gives me an error message even though it works.
    Håkon

  • Xfa.host.exportData function

    Hello all,
    I have a problem related to the function xfa.host.exportData:
    My scenario is the next:
    - I have done a form with several fields.
    - A determined user open this form and fill up the fields.
    - That user, is able to send form via PDF or save as XML.
    In Acrobat Professional 8, there is no problem in order to do these functionalities but in Acrobat Reader 9, the user cannot save the data as XML.
    I placed the function xfa.host.exportData("",0) in the click event of a check box.
    I would like to know if there is any way to get the same functionality in Adobe Reader than Adobe Professional.
    Many thanks in advance.
    Best regards.

    Hi,
    Unless the form is Reader Enabled in LC Reader Extensions ES2, then users with Reader will not be able to export XML data.
    There is a summary and PDF here:
    http://www.assuredynamics.com/index.php/2010/11/using-livecycle-forms-in-acrobat-and-reade r/
    So the only way you will get this to work in Reader is to Reader enable the form in LC Reader Extensions ES2. Reader enabling in Acrobat Professional 8 will not work.
    Hope that helps clear that up,
    Niall
    Assure Dynamics

  • Xfa.host.gotoURL() in Adobe Reader / Dynamic Tables with AcroForms?

    Hi All,
    I have a dynamic table in my LifeCycle form. Each table row contains a button that links to an external PDF file (using xfa.host.gotoURL). The links work fine in Acrobat 8 Pro, so far, so good... But when clicking the buttons in Reader 8, nothing happens. No error message or security warning, nothing...
    I searched the web and some forums for this problem and by reading between the lines of some posts I came to guess that my LifeCycle form will not work in Adobe Reader unless I purchase the respective LifeCycle Extensions license... :-/
    What exactly are my options now? Can I get the buttons to work in Adobe Reader somehow (using JS) without having to purchase the Reader Extensions? Or can I somehow recreate the dynamic table of the LifeCycle form using AcroForms in Acrobat 8 Pro to avoid the problem? If so, how do I add such a table using Acrobat's form tools...?
    Thanks for your help,
    Marcus

    Normal http://... URLs do indeed work, but relative URLs pointing to local files do not work with the Adobe Reader on my machine. I thought this might be due to a security restriction that can only be overcome by using the Reader Extensions...?
    Is there any other way of linking to other PDFs on the local machine than the gotoURL method? I also tried launchApp(), but it didn't work either.
    I currently use this statement to link to PDFs in a subfolder:
    xfa.host.gotoURL("TrainingGuides/"
    + docName + ".pdf", 1);

  • Can I save and read text files on a server that I host?

    Hello everyone,
    I am a java hobbiest. I was wondering if I set up my own server, running out of my house, could I have my applets save to my computer and read from my computer without having to learn JDBC and a DATABASE language. In other words could i just have my applet save and read text files from and to my server?
    I'm trying to set up a sight for my 5th grade class where parents can log into. Thanks for your time.
    Oh yeah, which is easier, learning how to set up a server or learning JDBC and a DATABASE language?
    If you have any other good idease please tell me them
    Thank you, Bryan

    Short answer: This isn't gonna work
    Long answer: For this to work, the first thing you're going to need is a static IP address and a DNS name registered -actually you don't necessarily need #2 but you're probably gonna want it and it's by far the easier of the steps.
    As far as I know to get a fixed IP address you've either gotta be directly attached to a larger network (ie university network) or get a leased line from an ISP.
    Once you've got that done come back to us.

  • Xfa.host.resetData() error message

    Some users, but not all, are getting an error message "Please select the Client's locale" when they press a button that has a single line of code on its click event: xfa.host.resetData(). The button has the default locale selected in its properties. The form has had the Reader extensions added, but the same thing is happening on the non-extended form.
    The users are using Acrobat Reader 7.0.5. Users with Reader 9 or Acrobat Pro 9 are not having the same issue. I could change the button's locale to English (USA), but that doesn't fix it (I tried) and all the other buttons are set to default locale and work fine.
    This is an 11th hour glitch -- we're supposed to distribute the form tomorrow if at all possible and this is the first time I've seen this.
    Any help greatly appreciated!

    There is a message defined in the mandatory field (State). I am wondering if they have not selected a state and this message is getting displayed (have you tied this field to any others in a calculation)? Just to confirm, change the text of the message and see if it happens again with the new message. It is not happening to me and I am using Acrobat 9 .... also see which version of Acrobat/Reader the troubled users are using.

  • Xfa.host.importData()

    Hi,
    I have stand-alone form PDF file, reader-extended, I open it with Reader-X,
    and I have a piece of javascript behind a button on the form that calls the importData() method,
    to import a XML data file.
    say, my form has 6 fields: a, b, c, x, y, z
    and the XML file has data in a, b, c, d, e, f
    it appears that after the importData() call, my form fields a, b, c got populated with data from the XML file,
    but the fields x, y, z got wiped out at the same time.  they become "null".
    Is it supposed to work like that?
    or maybe I have done something wrong?
    If it's supposed to work that way, is there a way to keep the data in x, y, z after the importData() call?
    is there another method that I can use to keep the original data in x, y, z?
    thanks

    Hi,
    If you open the form in LC Designer and select x, y, and z fields. Go to the Object > Binding palette and select the binding as None. This means that the fields will not take part in an XML data import OR export. This might suit your requirements, depending on how you are processing returning data.
    If you need to export data in the x, y, and z fields, then change the binding back to Normal/Name.
    As a workaround, you could script variables to have the values of the x, y and z fields BEFORE the import script. Then repopulate the fields after import. Something like this:
    // declare the variables
    var myX = TextField1.rawValue;
    var myY = TextField2.rawValue;
    var myZ = TextField3.rawValue;
    // import the xml
    xfa.host.importData();
    // repopulate fields
    TextField1.rawValue = myX;
    TextField2.rawValue = myY;
    TextField3.rawValue = myZ;
    Hope that helps,
    Niall
    Assure Dynamics

  • Getting rid of "Warning:  JavaScript Window" when using xfa.host.response()

    When I use xfa.host.response() I get that javascript warning. Is there a way to get rid of it?
    Thanks.

    The only way I know of to get rid of this warning is to Certify the document. Once the document has been certified, any javascript interaction either through the Dialog Manager or xfa.host.response will not have the warning.
    However, The only way to certify the document is to use Document Security Server or manually through Acrobat by adding a blank signature.
    I also dont know if this will work with Dynamic forms without breaking the certification. It worked in Static / Acrobat 6 compatible PDF's.
    Any scripting or dynamic rebuild of the form will break the certification and the message comes back.
    So basically, stick with the warning for now or else you need to make sure you revalidate the signature after EVERY piece of script using the signatureValidate() method of the AcroForm Field.

  • Xfa.host.beep

    I have a button that I want to make a Windows error sound when certain conditions are met. I've tried variations of xfa.host.beep() (e.g. xfa.host.beep("1"), xfa.host.beep("2")), but they never generate any sound. I tried both Acrobat and Reader (11.0.09) static and dynamic forms.

    Well actually, they didn't. I looked at my sound mixer (Windows 7)
    System sounds were disabled...

  • How to certificate a Form, that i can use xfa.host.importData("");?

    Hello!
    I´ve got made a Form that can import an XML Document. For this feature i use the javascript function
    xfa.host.importData(""); <-- empty String to open the OpenFileDialog
    the form works in Adobe Acrobat Reader 7.05 fine, but now i have updated my Adobe Acrobat Reader to 7.07 and nothing happend. A first look in the JavaScript Debbuger says me, that there is an security problem. So i have searched for this problem here in the forum and found an answer that this is only working with a certificated document/form.
    Is that right? I think its a bug, because why shoudt i certificate a document for Adobe Reader 7.07 and not for 7.05?
    My question is, how do i certificate the Form and what do i need to configure in the adobe reader that my document is working?

    [email protected] wrote:
    > Eva,
    >
    > While it's technically possible to attach files to an XFA-PDF form (a form designed in LiveCycle Designer (XFA) and saved as a PDF document) using Acrobat Pro, for example, it's really not recommended. An XFA form saved as a PDF document really a PDF with a thin wrapper around an XFA document. When the PDF document is opened in Designer, the PDF wrapper is discarded and therefore any annotations (such as bookmarks, attachments, comments, etc.) that you might have added to the PDF document using Acrobat are lost. Fortunately, we have a great solution for this in an upcoming release but I can't really give any details on it at the moment.
    >
    > As far as digital signatures go, I'm not really an expert in that area so I can't speak to whether attachments get signed or not. This might be a good question to post on an Acrobat Forum
    or the Reader Extension Forum
    >
    > Stefan
    > Adobe Systems
    Stefan,
    I'll have to disagree with you...I don't see the use of file attachments within an XFA form as an
    issue. Sure, the attachments will be discarded when you open them in Designer, but the purpose of
    Designer is for designing the form template, not as a client application for
    viewing/filling/distributing forms. The same could be said for form data or digital signatures...as
    soon as you open up a PDF file containing saved form data in Designer, you lose that information as
    well.
    As far as the digital signatures go...the attachments are included as part of the information
    that is signed. If you add or remove an attachment, the signature validation icon will display a
    yellow exclamation mark indicating that something in the form has changed.
    Justin Klei
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • Xfa.host.print not working as expected with Reader8!?

    Hello,
    I have a two pages form created a while ago with Designer 7.1. When the Print button in the form is clicked, only the last page is printed. We now upgraded to Reader 8.0, and I tested my forms with it. All works fine except the print-out. It always prints both pages. It seems that the properties set in xfa.host.print are totally ignored. Any one having the same problem? Does somebody know the reason or a workaround for that?
    Thanks!
    Kind regards, Karin

    Hello Ivan,
    I got a response: It is a bug in Reader 8.0. It should be fixed in Reader 8.1
    Regards, Karin

  • Xfa.host.openList

    Hi everyone.  I am using this in the "enter" event for my dropdown list:
    xfa.host.openList("Dropdown2");
    When I tab onto that field, the list does open but only for a quick second and then closes.  Does anyone know how I can make this list stay open?
    Putting that code in the MouseEnter event works too but that will not work if I'm using "tab".
    Thanks so much in advance!

    Thank you so very much for your response however placing the code in the "initialize" event causes the same issue.  The drop down list will open for a split second and then close.  Any other assistance would be GREATLY appreciated.

  • Xfa.host.gotoURL : Mixed results using Acrobat Pro

    In my form, I've got a button that executes an xfa.host.gotoURL on the value of another field, which has a url (www.aetna.com). When you click the button, it simply executes:
    xfa.host.gotoURL(WebAddress.rawValue);
    It works fine in both designer and Reader, but in Acrobat Pro, it doesnt do anything. No errors, no status boxes, nothing. Has anyone else seen or experienced anything like this? Is there another way to popup a window/navigate to a website other than xfa.host.gotoURL?

    When you use Acrobat as a stand alone application, you will get this behavior.I think what happended is when you try to open a web page, HTML is being sent to Acrobat and it does not know what to do with it. If you want this to work to view the page you will have to use Acrobat inside of a browser. Now the browser recieves the HTML and knows how to interpret it.

  • I upgraded from Dreamweaver CS4 to CS6. but now "an TFP error occured - cannot make connection to host". I spent hours with the host technician and we cant find the error. I reinstalled DW4 and it connects to host perfectly. Anyone else seen this problem?

    I upgraded from Dreamweaver CS4 to CS6. but now when I want to upload I get "an TFP error occured - cannot make connection to host". I spent hours with the host technician and we cant find the error. I reinstalled DW4 and it connects to host perfectly. Anyone else seen this problem?
    Mac OS 10.8.5
    None of these issues are causing the error in DW CS6. We have double checked all of them and we have everything exactly right. Also I have exactly the same SiteSetup in DW CS4 and that works perfectly well. Could there must be factor in 6 that didn't exist in 4? Something that isnt in the SiteSetup but in some hidden dialog box ?
    I can also upload to my host using Fetch, a third party FTP. And as I said DW CS4 works fine. So the problem is not with my host, its with DW CS6 in particular.

    Thank you Jon, that fixed it perfectly. You have saved me from going crazy. The only difference I see now is in "Server Name" it changed what I had entered (my ftp address) to "Remote Server"; which seems odd -- but it works!   Although I know there maybe also some other dialog box I have never seen
    Of course I saw that menu item "Import"  and but I thought thats obviously not for me: "Why would I want to import an entire website?". I did not however see "Export the selected site" for thats only a tiny icon in the footer. However I would have thought the same:  "Why would I want to export my entire website?".
    An observation: I've seen this problem in a lot of Adobe software, the menu-names of items are  obscure, non descriptive. What would be better would be for the menu names or popups to say "Export Site Setup settings" and "Import Site Setup settings"

  • Appending new pages to signed documents now makes Acrobat 9 and Reader 9 mark signature as invalid

    Hello!
    I have developed a service that appends additional pages to existing PDF documents. Some of the documents the service works on happen to be signed. As the service appends the pages using incremental updates, the signed contents are left untouched. This makes Acrobat 8 and Reader 8 display the signature state as "valid with subsequent changes" which is ok and no one complains about.
    Now along come Acrobat 9 and Reader 9, and all of a sudden the signature state is "invalid" which my users do complain about. Telling them that inspecting the signature state details they can see that the signed content still is untouched and the actual change is recognized to be some appended pages, doesn't help either as they in turn forward the documents to their customers who don't accept the documents if the Adobe Reader sais the signatures are invalid.
    Does anyone know a way new pages can be added to a signed document without having the new Adobe program versions choke on them?
    Even a hint that involves adding some flag to the original unsigned document or the signature itself would help as the users in question can tweak those processes. Due to the nature of the workflow, though, signing unfortunately must happen before my service can add the new pages.
    Best regards, Mikel.
    By the way, the signatures in question are regular approval signatures, nothing fancy, especially not certifying signatures (which indeed can forbid any changes or at least any changes but some form fill-ins and annotations)...

    Hi Fritz,
    In the interest of full disclosure, I got the answer to the problem from one of my distinguished colleagues, I'm just the messenger in this case.
    The problem is that the form adds some items to the Arzneispezialität / Zusatztext combobox which are there during signing but the form doesn’t remember that it did this on the next form open. 
    Since this field is included in the MDP+ signature and the field has changed in the re-opened version vs. the signed version, the MDP+ signature becomes invalid.
    XFA has a feature that remembers these kinds of things for you but it is turned it OFF. Please open the attached screen shot to see the control in question.
    So, you can either (1) turn this feature ON (Automatically), or (2) write some script to clear the combobox items prior to signing or (3) write some script to repopulate the combobox items on the subsequent open to match the items that were there during signing.
    Steve

Maybe you are looking for

  • Currency Translation for Key Figures with Value More Than One Currency

    Hi... I have query which display key figure GL Account Balance. The currency that used for this key figure is USD and IDR. How we want display value based on selection screen? So if we input currency USD, all value that use currency IDR translated to

  • IPad Air display refresh rate for full screen movies?

    What exactly happens if I play a movie on the iPad full screen with a rate of e.g. 24p, 25p or 50i? The stated maximal refresh rate is 60Hz. Will this rate be reduced when playing movies? Or will frames be dropped / interpolated if the frame rate and

  • How to install the Netbeans?

    Hello... The present is so that they help me with the installation of the Netbeans, my problem is the following one: I want to program in Java with all that offers me the J2EE platform, but when I go to will install the Netbeans it requests me the Vi

  • TS2934 my apple tv says my purchased movie will be "ready to play in 42 minutes"...why so long?

    Why does my apple TV take so long to play purchased movies??

  • Default Order unit

    Hi All, I have a situation where, i am creating a STO requsition and then converting to STO. When i am creating a Stock transfer Purchase requsition the base unit of measure defaults in from the material master as EA. We have left the order unit to b