X
x6v87qe
Hi, Guys
old topic. I'm still truglling on how to retrieve the Computer user name and
put it into a text box. This's what i did: firstly, creat a text box named
"UserName" udner myfields group. then I put this code in onload event,
"//Retrieve the UserDomain and write it into the my:UserName field
XDocument.DOM.selectSingleNode("/my:myFields/my:UserName").text
= objNetwork.UserDomain; "
It doesn't work!
I have a feeling theris something not right with my namesapce dfinitioon
:XDocument.DOM.setProperty("SelectionNamespaces",
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-10-24T05:01:13" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"');
can anybody help? thanks in advance
cheers
old topic. I'm still truglling on how to retrieve the Computer user name and
put it into a text box. This's what i did: firstly, creat a text box named
"UserName" udner myfields group. then I put this code in onload event,
"//Retrieve the UserDomain and write it into the my:UserName field
XDocument.DOM.selectSingleNode("/my:myFields/my:UserName").text
= objNetwork.UserDomain; "
It doesn't work!
I have a feeling theris something not right with my namesapce dfinitioon
:XDocument.DOM.setProperty("SelectionNamespaces",
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-10-24T05:01:13" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"');
can anybody help? thanks in advance
cheers