xfa.host.exportData)

Hi, in Designer script reference, the export method of data,

It is said that the parameter 1 (filename) is valid only if it is a "document certified where user has sufficient permissions".

what he means by "certified document"?

How can I do a certified document?

Thank you

Thus, the "certified document" means the PDF form that I try to export the form data?

Yes.

It is not on the file XML (or XDP) resulting from the action of export?

N °

and if I don't have Acrobat Pro, I can't use the parameter #1 the export method then?

Fix. You need Acrobat or LiveCycle ES.

still do not understand the reason why it doesn't allow me to specify the output file name when the document is not certified

Security. Imagine a scenario where anyone could send you a PDF file which writes a file .bat on your hard drive and takes the file system or re-written the registry.

Steve

Tags: Adobe LiveCycle

Similar Questions

  • xfa.host.exportData("",0); may not work in adobe reader, why?

    Form1. Config.Button1 [0]: click - (JavaScript, client)

    xfa.host.exportData("",0);

    export .xml file, it works in format adobe acrobat, XI.

    In adobe reader, click on the button, may not work.

    Why?

    Thank you ~.

    Player cannot export data from form unless the document has been activated with the use of import/export of straight form with LiveCycle Reader Extensions. Acrobat cannot activate the document with this right of use.

  • function xfa.host.exportData

    Hi all

    I have a problem with the xfa.host.exportDatafunction:


    My script is as follows:

    -J' made a form with several fields.

    -A user determined open this form and fill in the fields.

    -That the user is able to send the form via PDF or save in XML format.

    In Acrobat 8 Professional, there is no problem to make these features but in Acrobat Reader 9, the user cannot save data in XML format.

    I placed the xfa.host.exportData("",0) function in the click event of a checkbox.

    I would like to know if it is possible to get the same functionality in Adobe Reader as Adobe Professional.

    Thanks in advance.

    Best regards.

    Hello

    You can apply rights Reader Acrobat 9 Standard or above, but these are limited.

    LiveCycle Reader Extensions is a server product, which is part of the suite LiveCycle. See here:

    http://www.Adobe.com/UK/products/LiveCycle/readerextensions/

    It does not require Acrobat in particular, because it is not 'on' for installed Acrobat. You must contact Adobe sales at your location to know the costs and components required.

    If you want to export the XML data, then you are looking at all the users with the full version of Acrobat (option 1) or you want to apply rights to drive using LC Reader Extensions (option 4).

    Hope that helps,

    Niall

    Ensure the dynamics

  • xfa.host.messageBox

    I would like to use the function


    xfa.host.messageBox ('BLACK' ","MY COLOR", 3, 1);


    to display an alert message if the Text1 field is equal to the 'BLACK '.

    or

    to display a warning if the Text1 field is equal to "YELLOW"

    or

    to display an alert message if the Text1 field is equal to "GREEN".


    TKS

    Okay, well you can just have if statements to the output value wanted:

    If (text1.rawValue == 'BLACK') {}

    xfa.host.messageBox ("BLACK", "MY COLOR", 3, 1);

    } Else if (text1.rawValue == 'YELLOW') {}

    xfa.host.messageBox ("", "MY COLOR", 3, 1);

    } Else if (text1.rawValue == "GREEN") {}

    xfa.host.messageBox ("", "MY COLOR", 3, 1);

    }

    I hope this helps!

  • Use xfa.host.beep to trigger two consecutive beeps?

    Looks like it should be simple enough, but apparently not.

    I tried different combinations, place xfa.host.beep (1) in:

    -consecutively in the click event of the button.

    -separately in the mouseUp event and click;

    -place xfa.host.beep in a function and two calls to the function

    -call to the function then xfa.host.beep (1);

    Even tried xfa.host.beep (1) in the click event of Button1, and then click hidden event execution button 2, which contains xfa.host.beep (1).

    All work around suggestions? Thank you!

    Brian

    Hi Brian,.

    Try this;

    XFA. Host.Beep (1)

    app.setTimeOut ("xfa.host.beep (1)", 500);

    Who calls the beep, then half a second (or 500 m/s) later he calls again.

    Concerning

    Bruce

  • xfa.host.setFocus (); beep problem

    xfa.host.setFocus (Expand); is placed below the text field. When cursore enters the field 'expand', a tone is created.

    How can I stop it?

    Hello

    All the sounds you hear using created LiveCycle Forms is sounds generated by your operating system - not PDFcreated and therefore not controlled by the authoring software. Sounds can be changed in the control panel - system sounds. There are no other ways to overcome what I know.

    I know that the fact that this has - I did not like it. However, I changed my sound Setup using a theme provided by Win7 and have a much more enjoyable experience. But all users can hear what they hear, according to the settings on their operating system. I have no control over this part of the user experience.

    Good luck!

    Stephen

  • xfa.host.gotoURL () in Adobe Reader / dynamic Tables to AcroForms?

    Hi all

    I have a dynamic array in my form of life cycle. Each row in the table contains a button that connects to an external PDF file (using xfa.host.gotoURL). The links work fine in Acrobat Pro 8, so far, so good... But when you click on the buttons in Reader 8, nothing happens. No error message or a security warning, nothing...

    I searched on the web and some forums for this problem and read between the lines of some posts, I came to guess that my lifecycle of the form will not work in Adobe Reader unless I have purchase the license of life cycle of the respective Extensions... :-/

    What exactly are my options now? I cannot get the buttons to work in Adobe Reader somehow (using JS) without having to buy the Reader Extensions? Or can I somehow to recreate the dynamic table of the form of the lifecycle using AcroForms in Acrobat 8 Pro to avoid the problem I have? If so, how can I add such a table using Acrobat form... Tools?

    Thanks for your help,
    Marcus

    You can use:

    app.openDoc (FilePath.rawValue);

    to open another form of Adobe.

  • How to perform an action when the user clicks on the "OK" button on a script by xfa.host.response

    Hello

    I have a script that when you exit a field without the user data that a script response is mentioned.

    When the user has entered the required data in the dialog box and click the OK button I wish that the data user in the field as a value.

    Please can someone tell how this is possible?

    The script is listed as follows:

    If this field is stopped without the user to enter data, the following message is displayed

    If

    (Employee_ID.rawValue == null)

    {

    XFA. Host.Response ("is a required field, enter your employee id');

    }

    Hello

    I think that this script will do the job:

    If (this.rawValue is nothing)

    {

    var id = xfa.host.response ("is a required field, enter your employee id');
    this.rawValue = id;
    }

    Yan.

  • Submitting a form on client local disk?

    HI -.

    I created a dynamic form that I used to do a small number of recipients to me by e-mail as an XDP file, but due to the difficulties of the end user get it still works, I need to add a method to submit which will save the data on disk local to the end user so they can slide on a shared folder in Google.  Y at - it a submit button option that will open a save window that allows the user to access a location of their choice then save the XDP file under a name of their choice (as the similar step by sending an e-mail with a web mail client not recognized do not email script)?  It should work with Mac and PC and cannot have a fixed "save" location because the users machines are all different.  I guess that once it's done I have to activate extended for Acrobat rights.

    I tried to find a way to do this with a click event of the button "submit format ="xml"textEncoding =" UTF - 8 "target =" but cannot find a way to specify 'target' that will work, so I don't know if this script only works with the mailto: Protocol.»»

    Thanks in advance,

    Bernie

    Hi Bernie,

    I don't think that there is a shipping option, but you can try setting up you own button with a click with this JavaScript event.

    xfa.host.exportData ("", false);

    This will give you the XML of the form.  If you want to change the false to true XDP.

    Concerning

    Bruce

  • JavaScript for XML Export & Import XML button button

    Hello:

    I'm a Newb Javascript and I think that I little bit bigger than I can chew... I am trying to create a series of forms (15) and I would like a Data Export and Import button so that the schematic form information could easily be exported and imported into eachother. I was wondering what would be the code required to program a shape data export button and button import data in a form.

    Once an employee submits the form, the submit button will turn into a button "Export form data" where management can click it and it will export the data from the form in XML format to a local folder (download folder?). "The Manager can then choose the appropriate form, open the blank form, click the"Import form data"button of this form where it will be important the ' form_data. XML"file from the folder download and continues to fill the rest of the information. Now, the loop is complete between the forms.

    It is one of the last things I'm finishing on this gigantic project, any help is greately appreciated!

    Thank you

    Hello

    I think that exportXFAData is not supported in the designer. I think you need to use:

    xfa.host.exportData

    http://help.Adobe.com/en_US/LiveCycle/9.0/designerHelp/001341.html

    Stephen

  • Importing data from XML form in hidden form fields & making it visible if the book value

    Hello:

    I export the data in the form submitted, and important in the 2nd-> 3-> etc... Forms, however, a lot of these areas, I want to be kept hidden, unless they have a value. When I import data from field of forms 1, it will be smooth, however if the fields are hidden, you must go through the selection of checkboxes to make it visible again or just do all visible all the time. I was wondering if there is a feature or coding that would go in the direction of: Once imported XML favorite on click on the button "Update fields", go through fields and if hidden fields now have a value do what subform/Sub-sous-form Visible.

    The reason is that if you do have an incident report form which can take 10 names of employees, but only 2 were involved in an incident, it would look very cluttering on the survey form, if there are 10 fields name employee, 10 fields, 10 fields of plane location, etc... But only 2 employees have been involved in a minor incident on the incident report form which does not imply anything else.

    Any suggestion or help would be greatly appreciated and thanks for gratefull to any answer.

    Nicely,

    Al

    Thank you for pointing me in the right direction... A little elbow grease, of coffee, patience, and did I mention the patience and the following works without fault

    Created at the mouse from the export button:

    xfa.host.exportData("",0)

    The button import of other form value:

    xfa.host.importData)

    See the sections "Check boxes" to see if this article is supposed to be visible and makes visible the value of import form form: Ready:

    if(Button_DelDep.RawValue == 1)

    {

    Del_Dep.presence = "visible";

    }

    if(Button_DelArr.RawValue == 1)

    {

    Del_Arr.presence = "visible";

    }

    if(Button_Div.RawValue == 1)

    {

    Div.Presence = "visible";

    }

    if(Button_MADiv.RawValue == 1)

    {

    MADiv.presence = "visible";

    }

    if(Button_DelDepXD.RawValue == 1)

    {

    Del_DepXD.presence = "visible";

    }

    if(Button_Other.RawValue == 1)

    {

    Other.Presence = "visible";

    }

  • How to get the path of PDF file?

    Hello

    Adobe Livecycle ES2 V9

    Here is the code that I currently use (postSave):

    var fileName = event.target.documentFileName;

    at this point, fileName is (myForm.pdf), there is no path to the file

    fileName = fileName.substring (0, fileName.indexOf("."));

    xfa.host.exportData (".") ("/" + name + ".xml", 0);

    In fact, when the user saves the document PDF an XML file is automatically saved in the same directory with the same name as the PDF file.

    The problem is event.target.documentFileName only gets the pdf and the extension (ex: site_checklist.pdf)

    If the client opens two or more PDF files, it tries to export the XML file in the directory of the first open PDF file (or the last, it have not narrowed down).

    How can I get the path of the current PDF (not PDF more recently opened)?

    I can find no documentation for .documentFileName, I tried documentFilePath too.

    The property you are looking for is the 'path' property: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.411.html

    Here is the documentation for documentFileName: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.389.html

  • Xml extraction from a PDF file

    Hello

    I have a requirement as after that the user fills out the form, the user must be able to save the XML of the PDF form in access to his local computer.

    We provide a button that prompts the user to save it save the XML file dialog box.

    Is this possible to Designer? If so, how

    Pls help.

    Thank you

    Ludovic

    Hello

    You selected "import/export"?

    Try matching return the script to xfa.host.exportData ();

    Check the console JavaScript (control + J) when opened in Acrobat and see if errors happen when the button is clicked.

    Niall

  • Backup to an XML file

    I looked, but have never seen a direct response. Where can I get a tutorial step by step how Setup my form to save its data in an xml file when they click on a button?

    There are choices of menu in Acrobat and Reader to save form data, and you can place a button on the form to run on the click event of the xfa.host.exportData of the order ("", false)

    This will bring up a menu and allow the user to choose a file name for the data file. You cannot save the file without the user to choose a file name (which is against the security model).

    Hope that helps

    Paul

  • Export XML to the local path. Compliance check

    Some questions that we are wrapping up development on our form.

    First of all, I'm trying to create a button that will save the XML file that is exported to a local path, IE, c:\\windows\desktop

    I found this: xfa.data.saveXML (); which I put in the click event, but how can I say to save in a way?  (and while we're at it, specify a file name)

    Alternatively I tried to use the built in buttons-email, HTTP, but I was unable to find documentation on how to build the code.  I know pretty much anything can be added to the XML source, but I need is a pointer to this that the best way to handle this and how to build the instructions to save the path.  It is for our directors extract XML file and import it in their database.

    Second question: what is the best way to let a user perform a completeness check?  I like how the default email send button checks all fields set to "the user has entered required" and I would like to configure a button that similarly does a completeness check and then warns the user that there are fields to the left or confirms that the form is complete, perhaps with instructions on what to do next.  What is the best way to handle this?  The presentation plan is the user save the pdf locally and then manually upload it to a server that requires a connection, then administrators will export the XML file and import it into a database.

    Thanks for your understanding...

    1. you cannot include a path or file name in this statement (unless you certify the document which has problems of its own). The user must select the path and name (for security reasons). By default, it will save the data in an XDP format. You can switch to another parameter that saves the file with the extension xml instead.

    xfa.host.exportData ("", false)

    2. just add a normal button and add code to the click event that will run all the validations for the form. Assuming that the root node of your form form1:

    Form1.execValidation)

    This will return a true or false value depending on whether there are validation errors or not. So you could combine this with an if statement:

    If (form1.execValidate () == true) {}

    code to cause the shipment arrives

    submitButtonName.execEvent ("click")

    } else {}

    App.Alert ("there are validation errors in your form!")

    }

    Hide you the real send in this case button if the user could not bypass your code.

    Hope this helps

    Paul

Maybe you are looking for

  • If there is a browser that will allow Java TM?

    It's a little thing, really... I just want to be able to play the game Alchemy each time than in quite awhile. I switched to Firefox to Google Chrome because Google Chrome stopped supporting Java. Now, Firefox followed suit. Does anyone know a browse

  • Mathematical operation on tables

    Hello Hope someone can help me with this. How can I (add, subtract... each piece between 2 bays or several etc.) Of lets say I have a table with element (5,10,15,20) array1 and array2 with (2,4,6,8). I need to multiply 5 by 2, then 4, then 6, then 8

  • Is there a place here where I can find a PDF or a manual that shows my HP G4?

    It has Windows 7. and I want to upgrade the memory to 8 GB 4. The gut seems a little differnet than desktop computers I've done

  • Wireless optical desktop 1000 will not work.

    Original title: my Office Wireless Optical 1000 does not work When I plug in the Chamber and my computer turn on all the lights are lit. I installed intellipoint and intellitype for him and when I open microsoft mouse click hadware. the mouse to help

  • How to change the Japanese writing entered the entrance of writing Chinese.

    Original title: How can I change the written Chinese hand entry-Japan to enter written Chinese hand - Tzu Chinese-ing? I just install the entry to Taiwan of Chinese Tradition, but when I used the IME Pad method 'hand written entry', he showed 'hand w