How to get user login - InfoPath Dev
in

InfoPath Dev

How to get user login

Last post 05-14-2007 03:49 AM by nukkumatti. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-13-2007 05:40 AM

    How to get user login

    I have an InfoPath form with javascript code

     

    function XDocument::OnLoad(eventObj)

    {

    XDocument.UI.Alert( Application.User.LoginName); // Write your code here //if(XDocument.IsNew)

    }

     

    When I run it I get empty Alert. What's wrong??

  • 05-14-2007 03:49 AM In reply to

    function XDocument::OnLoad(eventObj) { var obj = new ActiveXObject("WScript.NetWork"); var login = obj.UserName; XDocument.UI.Alert(login); }
    Listen to Motörhead cos they play Rock'n Roll :)
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.