J
Jermaine Cross
the code below is what i researched and found on the net that should work,
but its not. i am not getting any errors but the current user logon name
still does not appear in the text box. can someone help me. thanks!
public void OnLoad(DocReturnEvent e)
{
// Populates UserName in field.
IXMLDOMNode UserNameNode =
thisXDocument.DOM.selectSingleNode("dfs:myFields/dfs:mydataFields/d:UserName");
if (UserNameNode!=null)
{
if (UserNameNode.text=="")
{
UserNameNode.text = System.Environment.UserName;
}
}
}
but its not. i am not getting any errors but the current user logon name
still does not appear in the text box. can someone help me. thanks!
public void OnLoad(DocReturnEvent e)
{
// Populates UserName in field.
IXMLDOMNode UserNameNode =
thisXDocument.DOM.selectSingleNode("dfs:myFields/dfs:mydataFields/d:UserName");
if (UserNameNode!=null)
{
if (UserNameNode.text=="")
{
UserNameNode.text = System.Environment.UserName;
}
}
}