Username - InfoPath Dev
in

InfoPath Dev

Username

Last post 09-28-2005 10:36 AM by Agni Jonnalagadda. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-28-2005 09:28 AM

    Username

    I have a big trouble. I need to get the username but i can't create an activexobject.
    the message error that infopath send me is "Automation server can't create the object"
    the code that i'm using is:
    function XDocument::OnLoad(eventObj)
    {
    var objNetwork = new ActiveXObject("WScript.network");
    }
    Any sugestion?
  • 09-28-2005 10:36 AM In reply to

    Hi eespana,
    Welcome to the Forum!
    Did you give fulltrust to your form?
    Getting username in script using ActiveX controls needs full trust to your InfoPath form.

    One option is to use ADService webservice. Which doesnot require full trust.
    http://www.infopathdev.com/webstore/detail.aspx?itemid=18

    Agni
    InfoPath Dev India
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.