How to get user login - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » How to get user login 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: Oldest to newest Newest to oldest Previous Next 05-13-2007 05:40 AM liorlankril Joined on 05-13-2007 Posts 33 How to get user login Reply Contact 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 nukkumatti Joined on 12-08-2005 Germany Posts 349 Re: How to get user login Mark as Not AnswerMark as Answer... Reply Contact 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.
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??