In infopath,I can show the current user name and Domain name in textbox
through review ,but it can not see the result in .xml.
code:
function XDocument::OnLoad(eventObj)
{
var objNetwork = new ActiveXObject("WScript.network");
//Retrieve the UserName and write it into the my:UserName field
XDocument.DOM.selectSingleNode("//my:UserName").text
=objNetwork.UserName;
//Retrieve the UserDomain and write it into the my:UserDomain field
XDocument.DOM.selectSingleNode
("/my:myFields/my:UserDomain").text
= objNetwork.UserDomain;
}
requst help!!!
Sandeep - 17 Apr 2006 11:50 GMT
Hi..Lina
Check out this link.
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=173
I Hope this will help you

Signature
Sandeep
www.autonomysystems.com