B
BroRick
The following code works perfectly when I use it with a C# Infopath
template. I am not familiar with C # and therefore I am limited as to
what else I can do with the form. Can anyone tell me how to convert
the following code to VB script. Thank you in advance.
IXMLDOMNode nodeEmployee =
thisXDocument.DOM.selectSingleNode("my:myFields/my:employee");
if(nodeEmployee != null)
{
if(nodeEmployee.text == "")
{
// if the employee name is blank when we load the form,
// populate the employee node with the current user name
nodeEmployee.text = System.Environment.UserName;
}
}
template. I am not familiar with C # and therefore I am limited as to
what else I can do with the form. Can anyone tell me how to convert
the following code to VB script. Thank you in advance.
IXMLDOMNode nodeEmployee =
thisXDocument.DOM.selectSingleNode("my:myFields/my:employee");
if(nodeEmployee != null)
{
if(nodeEmployee.text == "")
{
// if the employee name is blank when we load the form,
// populate the employee node with the current user name
nodeEmployee.text = System.Environment.UserName;
}
}