J
Jerusik
when I create an InfoPath 2003form going through Visual Studio, I can put the
following code in the OnLoad event handler and access the username without
any problems. (Formatting changed to conserve space)
IXMLDOMNode nodeEmployee =
thisXDocument.DOM.selectSingleNode("my:myFields/my:employee");
if(nodeEmployee != null)
{ if(nodeEmployee.text == "")
{ nodeEmployee.text = System.Environment.UserName;
} }
Repeating the process in a from created by opening InfoPath 2003 directcly,
I get the following error when I preview the form:
Expected ';'
File:script.js
Line:27
IXMLDOMNode nodeEmployee =
Does anyone have any ideas? I have tried everything but the right one. Thanks.
following code in the OnLoad event handler and access the username without
any problems. (Formatting changed to conserve space)
IXMLDOMNode nodeEmployee =
thisXDocument.DOM.selectSingleNode("my:myFields/my:employee");
if(nodeEmployee != null)
{ if(nodeEmployee.text == "")
{ nodeEmployee.text = System.Environment.UserName;
} }
Repeating the process in a from created by opening InfoPath 2003 directcly,
I get the following error when I preview the form:
Expected ';'
File:script.js
Line:27
IXMLDOMNode nodeEmployee =
Does anyone have any ideas? I have tried everything but the right one. Thanks.