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 / March 2007

Tip: Looking for answers? Try searching our database.

return user name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
poor_man - 28 Feb 2007 09:44 GMT
hi,

iam useing infopath 2003 sp2 ,can i return curunt user name to a text box in
infopath??

pleas help

Thanks
dsen.25@gmail.com - 28 Feb 2007 11:07 GMT
On Feb 28, 2:44 pm, poor_man <poor_...@discussions.microsoft.com>
wrote:
> hi,
>
[quoted text clipped - 4 lines]
>
> Thanks

Hello

Please try reading this link below
http://infopathdev.com/howto/tutorials/default.aspx?i=06d94826ac7a46a...

Hope it helps you

-Senthil Kumar D
poor_man - 01 Mar 2007 06:53 GMT
Dear Senthil Kumar D,

Thanks you it was help full link

function XDocument::OnLoad(eventObj)
{
//Create a WScript.Network object, which provides access to the user data
var objNetwork = new ActiveXObject("WScript.network");
//Retrieve the UserName and write it into the my:UserName field
XDocument.DOM.selectSingleNode("/my:myFields/my:UserName").text
= objNetwork.UserName;
//Retrieve the UserDomain and write it into the my:UserDomain field
XDocument.DOM.selectSingleNode("/my:myFields/my:UserDomain").text
= objNetwork.UserDomain;
//Retrieve the ComputerName and write it into the my:ComputerName field
XDocument.DOM.selectSingleNode("/my:myFields/my:ComputerName").text
= objNetwork.ComputerName;
}

it also can retrive computer name

Regards
sameh

> On Feb 28, 2:44 pm, poor_man <poor_...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 15 lines]
>
> -Senthil Kumar D
 
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.