Retrieve user name not working

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
 
A

Anuma(GGK Tech)

Hello,

We are unable to get "objNetwork" in our code. What is "objNetwork"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top