permission denied for setting DOM property - InfoPath Dev
in

InfoPath Dev

permission denied for setting DOM property

Last post 05-30-2006 12:45 PM by Greg Collins. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-30-2006 01:25 AM

    permission denied for setting DOM property

    Hi!

    I have an infopath form that has some fields and a button. When the button is clicked i would like to open up a new different form (based on xml) that has some of its fields already filled in with values from fields in the first form. But i get a permission denied error and cant figure out why. The code that generates the error is:

    var oApp = new ActiveXObject("InfoPath.Application");
    var oXDocumentCollection = oApp.XDocuments;
    Application.ActiveWindow.Close(true);
    var oXDocument = oXDocumentCollection.NewFromSolution("http://site/Uppdrag/Fakturor/Forms/template.xsn");
    oXDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-05-05T11:16:38"'); <---- This row causes the permission denied error

    var fProjNr = oXDocument.DOM.selectSingleNode("//my:projektNummer");
    var fProjName = oXDocument.DOM.selectSingleNode("//my:projektNamn");

    fProjNr.text = uProjNrString;
    fProjName.text = uProjNameString;
  • 05-30-2006 01:45 AM In reply to

    Re: permission denied for setting DOM property

    Hi again!

    Guess i was a bit to quick with posting my question.
    Just realized that the permission denied error was just quite a newbie error because of me being new and careless... so its solved now.

  • 05-30-2006 12:45 PM In reply to

    Re: permission denied for setting DOM property

    Glad you were able to get it figured out!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.