6 Replies Latest reply on Sep 2, 2010 7:21 AM by Daa404

    NotAllowed error on doc.setAction

    Daa404 Level 1

      I'm  geting "notallowederror security settings prevent access to this property or method" error when trying to add some script for doc.WillPrint trigger.

       

      eg.

       

      var didPrint_Script = "app.alert('Did Print!')";

      this.setAction("DidPrint", didPrint_Script);

       

      The same exception is true for all event triggers of pdf document.

       

      Doc/DidPrint
      Doc/DidSave
      Doc/WillClose
      Doc/WillPrint
      Doc/WillSave

       

      P.S  The script is added on Document level