Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2007

Tip: Looking for answers? Try searching our database.

Retrieve user name not working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
x6v87qe - 26 Oct 2007 00:27 GMT
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
Anuma(GGK Tech) - 05 Nov 2007 11:23 GMT
Hello,

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

Signature

Anuma Reddy
http://www.GGKtech.com

> Hi, Guys
>
[quoted text clipped - 14 lines]
>
> cheers
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.