Security Settings prevent the usage of this method :-(

hi,
since i began using adobe LiveCycle products (well one month by now), mainly the LC Designer, i'm getting the same error by using certain methods (here i have to free translate out of the german):
"NotAllowedError: security settings prevent the usage of this property or method. App.trustedFunction:14:XFA:all[0].sf_tab[0]:initialize
is there someone, who can explain, what's do be done to get rid of it?
thanks,
valerio

It looks like your trying to run a function defined at the document level (ie: from within an event on a field) but a trusted function must be defined at the folder level (ie: in a .js file in the Acrobat /JavaScripts/ folder). That how trusted functions get their priveledges, when Acrobat is started, it evaluates the JavaScript in the .js files, sees that the function is marked as trusted and gives it the special priveledges it needs for when it is called. Here's an example of script you could put in a .js file:
saveFunc = app.trustedFunction(function (path) {
app.beginPriv();
try {
event.target.saveAs(path);
} catch (err) {
console.println("Error: " + err);
app.endPriv();
Then in your form you would simply call saveFunc().
Another thing I just noticed, I don't believe you will be able to use the Document.newPage() method from an XFA form (form from Designer) whether you run it from a trusted function or not. Acrobat is blocked from being able to make changes like this to an XFA form, because the underlying structure of an XFA form and an AcroForm is so different that even if you could make it work you wouldn't get the results you'd expect.
Chris
Adobe Enterprise Developer Support

Similar Messages

  • SaveAs - Security settings prevent access to this property or method.

    Hi,
    This question seems to have been dealt with in this forum on a few occasions but I am still have trouble with it:
    I have written a script to add a footer containing the file name to a PDF and then save the PDF:
    app.addMenuItem( { cName: "newdoc", cUser: "Add Footer", cParent:
    "File", cExec: "AddFooter()", nPos: 0 } );
    function AddFooter()
    for (var p = 0; p < this.numPages; p++)
    var fd = this.addField("Date", "text", p, [10,5, 300,28]);
    fd.textSize=10;
    fd.value = this.path  ;
    var SaveFile = app.trustedFunction(function()
      app.beginPriv();
      this.saveAs(this.path);
      app.endPriv();
    When I try to execute this script I receive an error:
    Security settings prevent access to this property or method.
    Any assistance would be much appreciated.
    eddiec :-)

    At which line do you get the error message? Do you use Adobe Acrobat?

  • Error: security settings prevent acces to this property or method

    Hello everybody,
    I'm facing an error when i open up a portfolio which i've performed some javascript. This script has the function to position over a specific document
    contained in portfolio and  when i open up it through Adobe Reader, it shows me the following error:
    NotAllowedError: Security settings prevent access to this property or method. Collecition.initialDoc:6:Document-level:onOpen
    I checked reader properties in preferences and javascript is allowed.
    How can i resolve this issue?
    Thanks.

    Did you read the documentation of the  property or method?

  • Page rotate script not working(not allowed error security settings prevent access to this property)

    HI,
    I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
    nStart = 0;
    nEnd = this.numPages - 1;
    nRotate = 90;
    try
    if (this.numPages > 0)
               this.setPageRotations(nStart , nEnd , nRotate)
    catch(e)
    app.alert("Processing error: "+e)
    But I'm getting this  error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.

    OK, so here's what you do:
    - Create a new file in a plain-text editor (I recommend Notepad++), and paste this code into it:
    safeExecMenuItem = app.trustPropagatorFunction(function(code){
        app.beginPriv();
        app.execMenuItem(code);
        app.endPriv();
    mySafeExecMenuItem = app.trustedFunction(function(code){
        app.beginPriv();
        safeExecMenuItem(code);
        app.endPriv();
    Close Reader if it was open and then save this file as "MyScripts.js" and place it in the following directory (this is for Windows):
    C:\Program Files (x86)\Adobe\Reader 11.0\Reader\Javascripts
    If you want it to work in Acrobat as well place the file also under:
    C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts
    Now to rotate the pages clockwise attach this code to your button (in Acrobat, of course):
    mySafeExecMenuItem("RotateCW");
    And to rotate them counter-clockwise, use this code:
    mySafeExecMenuItem("RotateCCW");
    Open your file in Reader and the buttons should rotate the pages when clicked...

  • NotAllowedError:  Security settings prevent...

    Hello I'm just starting to work with acrobat and javascript. Testing somethings out I created a script : this.importTextData and I get the error below. Any ideas? Thank you!
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.importTextData:2:Batch undefined:Exec

    Where did you place the code and what is the exact code that you used? To invoke a method you need to include parentheses:
    this.importTextData();
    Without any parameters there should not be any security warning if used with Acrobat. If you're trying to use it with Reader it can't work unless the form has been Reader-enabled with LiveCycle Reader Extensions and the corresponding usage right included.

  • Unable to rotate pdf with script(not allowed error security settings prevent  error)

    I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script
    nStart = 0;
    nEnd = this.numPages - 1;
    nRotate = 90;
    try
    if (this.numPages > 0)
               this.setPageRotations(nStart , nEnd , nRotate)
    catch(e)
    app.alert("Processing error: "+e)
    But I'm getting this  error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.

    I have got it working usig by installing a script on the local machine. Thanks

  • Web Service posting via SOAP.request - Security settings prevent access...

    I'm trying to call a web service via the SOAP.request object in javascript embedded into my Interactive Form.  I've successfully done this with SAP NetWeaver 7.0 trial version however now I'm having this issue on a production setup.  The PDF generates fine and I can fill out the form and everything.  I checked the properties of both PDF documents (one that works from the trial and one that doesn't from the prod box) and they are the same, expect the one that works is PDF Version 1.6, and the one that doesn't is PDF Version 1.7.
    Here's the client-side error:
    Acrobat EScript Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0
    Acrobat Multimedia Version 8.0
    Acrobat SOAP 8.0
    NotAllowedError: Security settings prevent access to this property or method.
    SOAP.request:31:XFA:data[0]:mainform[0]:btnRelease[0]:click
    Here's the snippet of JavaScript code:
    var response = SOAP.request();
    Here are the security properties of the malfunctioning PDF:
    Security Method: No Security
    Can be Opened By: All versions of Acrobat
    Printing: Allowed
    Document Assembly: Not Allowed
    Content Copying: Allowed
    Content Copying for Accessibility: Allowed
    Page Extraction: Not Allowed
    Commenting: Allowed
    Filling of form fields: Allowed
    Signing: Allowed
    Creation of Template Pages: Allowed
    How do I determine what the culprit is?

    Michael,
    PDF Version 1.6 means Adobe Reader 7.0.x family and PDF version 1.7 means Adobe Reader 8.0.x or 9.0.x if I am not wrong.
    Also if you check LiveCycle Designer Help (Using LiveCycle Designer ES > Working with Data Sources > About data sources > Working with data connections) it clearly says that with LiveCycle Designer 8.0 secured web services are not supported and there are additional security settings for Reader 8.0 onwards, that may be causing the issue.
    Chintan

  • Cannot change date and time settings, popup "These files can't be opened: Your internet security settings prevented..."

    When I try to change my date and time settings I get a Windows Security popup that reads: "These files can't be opened.  Your Internet security settings prevented one or more files from being opened. C:\Windows\system32\rundll32.exe"
    I have Windows 7 64 bit.  I also have McAfee SecurityCenter installed.  I have tried turning off my firewall temporarily, but the problem persists.  I am not sure if it is some type of virus.  If anyone could give me some information
    as to what could be causing this I would appreciate it.  Thanks in advance.

    Hi,
    Perhaps, this issue is caused by a sign of corruption.
    Please try to use sfc/scannow to check the System Files.
    Also, You may refer to the following link.
    http://www.sevenforums.com/general-discussion/71526-cant-change-date-time-2.html 
    Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • When I try to combine two pdf's, it asks for a permission password and says the documents are protected; however, I didn't put any protection/security in the documents.  I assume it is a default security under the enhanced security settings of the Acrobat

    When I try to combine two pdf's, it asks for a permission password and says the documents are protected; however, I didn't put any protection/security in the documents.  I assume it is a default security under the enhanced security settings of the Acrobat Pro XI which I recently purchased.

    Acrobat (Pro or Standard) does not apply a "default" protection. It appears that someone or some other process has applied protection.
    Be well...

  • How to provide security settings for the adobe form using livecycleDesigner

    Hello,
    I am very new to form designing,
    can any one please tell me how to provide security settings for the adobe forms at client side?
    Regards,
    Menaka

    Hi,
    that is a good topic for the ADFS forum.
    ADFS forum - http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    But you could pass the user-agent as incoming claim type Client User agent. User-agents can be manipulated, so if that is an issue you can look into Device Registration and the Device OS type from there. That is also a incoming claim but requires DRS and
    DRS is not available for all plattforms.
    Hth,
    Lutz

  • Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties.

    We have a web role where we have hosted a WCF service.
    We are facing the below exception intermittently on consuming the service.
    Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties.   This
    can occur if the service is configured for security and the client is not using security.
    This is intermittent. Few calls fail , and the subsequent calls succeed without making any changes.
    Please help in overcoming this abnormal behavior.
    Thanks in advance !!
    Best Regards ,
    Eswar

    Hi Eswar,
    As the error message mentioned, it may be a mismatch between the configuration on the client and the server.Try putting all your configuration in a binding configuration and then use the same binding configuration on the server and client. Since this issue
    is more related with WCF, I suggest you move to WCF forum, it is appropriate and more experts will assist you.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Security settings: prevent "save as..." !?

    Hello there, I am using Acrobat 9 standard and would like to know how I can manage to set up security settings of a document in such a way that the "save as..." menue-entry will be disabled.
    I can manage to prevent printing and saving the same document again - no problem. But I need to make sure that the reader of a document does not save it under a different name.
    How can this be done?
    Thanks for any advice.
    Wolfgang Armbruster

    We _are_ using Acrobat Reader to display these files within an Intranet. If you open such a file as an embedded PDF in Firefox you will see a buttonbar at the top with icons to print and to save and so on.
    I do not have problems to make the print icon greyed out and unusable. But I need to do the same thing with the "save as" icon.
    And are you really saying this can not be done? Acrobat support told me before buying the software "this can be done"... though they will not tell me how... I need to clarify this in some forums...
    So I'm still hoping to get better advice...!?

  • Flash on mac os 10.3.9 flash player being prohibited by browser security settings how do i fix this

    this is the message i get
    "This content requires the Adobe Flash Player. It either has not been installed yet or is prohibited by your browser security settings. Either click here to get Flash or loosen your browser security restrictions."
    how do i loosen the browser security restrictions?

    this is the message i get
    "This content requires the Adobe Flash Player. It either has not been installed yet or is prohibited by your browser security settings. Either click here to get Flash or loosen your browser security restrictions."
    how do i loosen the browser security restrictions?

  • Having trouble with the loop in this method

         public int getWorstGradeIndex()
              int worst = -1;
    //           IF THE ARRAY courses IS NOT EMPTY
    //           FIND AN INDEX OF THE COURSE WITH
    //           THE LOWEST GRADE
              for (int i = 1; i < courses.length; i++)
                        if(getCourseGrade(i) < getCourseGrade(worst) || worst == -1)
                             worst = getCourseGrade(i);
                   System.out.println("Worst grade index is: " + worst);
              return worst;
         }worst is a pointer to an array courses that reads in a textfile of a students grades. This method should test which grade is the worst and then return the index pointer to that course in the array.
    Right now whatever I set the worst to intitially is what I get returned: ie if I set
    int worst = 5;I will have 5 returned...

              for (int i = 1; i < courses.length; i++)Should be
    for (int i = 0; i < courses.length; i++)
    Indices start at 0.
              worst = getCourseGrade(i);Should be
    worst = i;
    Kajok both of those make sense :)
    I made those two changes:
    for (int i = 0; i < courses.length; i++)
                        if(getCourseGrade(i) < getCourseGrade(worst) || worst == -1)
                             worst = i;
                   }but I'm still getting -1 returned...?
    Thank you all for the help!

  • Can a procedure have different security settings from the person running it

    I've seen on many occasions that people advocate updates to the database are performed through database procedures, and I'd like to do this. However, my understanding is that the procedure 'inherits' the security permissions of the user running it? If so, then how is it possible to 'expose' a procedure call to a user which allows them to perform inserts/updates/deletes etc, and yet at the same time, only allow the user to perform selects on the base table?
    I simply want to ensure that the database is protected from changes that do not go through 'proper channels'...
    Many thanks in advance.
    Carl.

    my understanding is that the procedure 'inherits' the security permissions of the user running it?This is not true, as it depends on the way the procedure has been defined. Which can be in two ways as Justin just explained.
    It's true when the procedure has been defined with 'invoker rights'.
    Default would however be that the procedure inherits the security permissions of the user that created the stored procedure (definer rights).

Maybe you are looking for

  • How to Launch a PDF on Webgui

    Dear Experts: What I am trying to do is to convert PO smartform to PDF file and then launch the PDF file in a new window on Webgui. I am using function BBP_OUTUT_PO_PREVIEW_SMART, in which the function BBP_ALEWEB_DOWNLOAD is invoked. This program has

  • How do I move my ipod library from one computer to another?

    Help! How do I move my ipod library from one computer to another?

  • Need Solutions for these Errors

    <b>Hello Group !     How are you people there.Iam very much thank full to you people for your constant support. I need solution to these errors:</b>      1.SID missing.      2.Idocs Missing or No Idocs arrived from source         System.      3.Error

  • HR - How to get External person first name

    Hi , Can anyone tell me how to get the first name for external person (otype = H) ? I can get the full name from HRP1000-STEXT but I need to get the first name. Any FM/Piece of code is there for this ? Thanks in advance. Regards, Sandip. Ph:+44 121 6

  • Activate Update Rules from Business Content

    Hello, I am trying to install 0QM_C10 from business content. Every thing works fine except there are no update rules (there are 3 info sources for this cube). I am new to this and it doesn't make sense for me to manually create (ofcourse the system d