11 Replies Latest reply on Mar 7, 2011 1:51 PM by George_Johnson

    Export Data Object to save attachment - No Authorisation

    Jo_2005 Level 1

      Hello,

       

      I have a pdf form with a file attachment.

       

      The file attachment (folder level javascript) needs to be saved by the user before the form can be fully functional.

       

      When the user opens the form a application alert (message) is shown.

       

      If the user clicks yes then the export data object script is executed to allow the user to save the file to their hard drive.

       

      var nButton = app.alert ({

      cMsg: "Save the script to your c drive\ program files\Adobe\Javascript folder for this form to be fully functional",

      nIcon:  2,

      nType:2,

      cTitle: "Message for First Time Users of This Form"

      });

      if (nButton ==4)  this.exportDataObject({ cName: "Save.js" });

       

      Console error as follows:

       

      GeneralError: Operation failed.
      Doc.exportDataObject:7:Console undefined:Exec
      Not authorized

       

      Can anyone please advise how to allow authorisation for this file to be passed in the export data object?

       

      Thank you.