|
|
||||||
|
#1
|
|
|
|
|
I have some nice Inopath forms working, but I would love to be able to have
an easy lookup of on my forms for people such as requestors (in a purchase requisition requestor). When doing Sharepoint administration I can easily look up some who is in active directory and give them permissions by putting in a partial name or email userid and it automatically populates the rest. THere must be some way to invoke that same type of functionality into an InfoPath form. Thanks for anyone's help or pointers for where I can go. It would also be great to be able to prepopulate the requestor field with the person who opened the form. Jim |
|
|
|
#2
|
|
|
|
|
Hi Jim.
I do this quite frequently and identifying the form user is very nice as well as being able to access email or group membership. Check out the Database Accelerator package of webservices at [url down] it includes an Active Directory Webservice as well as you can get it by itself. |
|
#3
|
|
|
|
|
Have you already seen this article?
[url down] |
|
#4
|
|
|
|
|
S.Y.M. Wong-A-Ton
I will look at that article, thanks. I am on InfoPath 2003. I wonder if the article will staill apply to InfoPath 2003. Jim "S.Y.M. Wong-A-Ton" wrote: [..] |
|
#5
|
|
|
|
|
Jim,
The code in the article will be different for InfoPath 2003. The System.DirectoryServices namespace has been around for a while, so if you're using managed code (VB.NET or C#), you will be able to use it in older versions of .NET. Retrieving the user's name is also possible using .NET code. If you're using script (VBScript or JScript) there is a scripting language called ADSI that you could use to get data from Active Directory. All in all, retrieving info from AD is not easy, so if you go down that road, things might get bumpy... Tip: Do a search in the newsgroup on Active Directory; many people have tried to do what you are trying to do now. |
|
#6
|
|
|
|
|
Hi, I used the code directly from the article that you referenced. I can get
the first part to work just fine but the ListAllProperties code keeps erroring out. I have started from scratch three times to make sure that I was copying the code correctly. I also had someone else try it and the same thing happened. It errors out in the for each userProperty loop at: xnPropertyName = xnPropertiesTable.SelectSingleNode( _ "my:PropertyName", ns) The error message is: Object reference not set to an instance of an object. Any help would be greatly appreciated. Thanks, Connie |
|
|
| Similar Threads | |
| Infopath and Active Directory?? All, Currently our HR department fills out paperwork for a new user then e-mails it to the HelpDesk which then in return comes to us System Admins. A real pain in the... |
|
| Populating a DDL with users from Active Directory My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to... |
|
| Populating Active Directory User information Hi, I have had someone in my company wanting to populate the AD filelds in AD users and computers with phone extensions, user info, job title etc. I think that this would... |
|
| Populating Active Directory Fields through Sharepoint Hi everyone, I'm new to Sharepoint and I am wondering if there is a way to populate the Active Directory fields through Sharepoint, a security setting or a 3rd party program.... |
|
| Populating fields from Active Directory in asp.net -- Urgent! I have an asp.net application that needs to fill a series of checkboxes with usernames from a particular group in Active Directory. Could someone please point me in the... |
|
|
All times are GMT. The time now is 08:51 PM. | Privacy Policy
|