Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Infopath
|
Infopath Programming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 29th, 2006, 01:09 AM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to retrieve the UserID from Active Directory t

Good Day!

Im new to infopath and sharepoint. i was wondering if anyone knows how to retieve the userID of the person who accessed the infopath form from the library and display the ID in the Form upon opening it.

Thank you in advance.
 
Old February 15th, 2007, 01:17 AM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You want the user id from the active directory. Rite ?
Suppose u have a textbox in which u want the current user name to be displayed from the active directory. Upon seeing the properties of this textbox, u can see a value field there. Insert a function called userName() at that place n preview the form.

Hope this helps.

 
Old May 22nd, 2007, 09:03 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Wosiu
Default

That works fine in preview, but after publishing the form to Forms Server, the userName() function returns "system". How can I solve this issue?

 
Old May 29th, 2007, 02:50 PM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found a very helpful material at the link below:
http://blogs.microsoft.co.il/blogs/i...ting-code.aspx

Check this out and it will resolve ur problem.

NC
:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve Active File Path francois.timms Excel VBA 3 March 24th, 2008 05:14 PM
Active Directory TCSE305 Windows Server 1 November 22nd, 2006 01:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.