Auto Populate a field with a AD user from a drop down selection

S

Shelley

Hello I'm using Infopath 2007. Since I'm new to Infopath hoping someone can
provide a step by step procedure.
I created a form(Change Request Form) with the following fields:

Requestor - text box(automatically populated)
Request - text box
Server Name - text box
Ip Address - text box
Approved - Drop down selection - Yes/No
Approved by - text box to be automatically populated with Active directory
user
Date Completed - date field

Everything in the form work fine except the Approved and Approved by fields.
I would like a user(my supervisor or manager) to select the option in the
Approved box and then have the Approved by field automatically populate with
the user.....
Also, this selection is not a repeating table.

I have tried what was suggested in the link:
http://www.infopathdev.com/blogs/ma...e-Fields-from-a-Drop_2D00_Down-Selection.aspx

but that pulls from an xml file. that's all good, but how do i get it to
pull the AD user.

Also, those 2 fields Approved and Approved By are to only be filled out by
my supervisor and manager....how can i set permissions so that only these 2
users will be able to complete these fields.

Your help would be greatly appreciated.....Thanks,
Shelley
 
B

Ben Walters

Hey Shelley,

Not sure how technical your skills are but when I need to get user details
from AD I use the ldap web service code from codeplex, you can get the
webservice from here http://www.codeplex.com/ldapwebservice

basically the web service has a search method simply pass in the property
you want to search on and the value to search for and the user's details are
returned.

As far as a step by step procedure goes, I've put a video up on Vimeo that
explains how to use this web service to use this web service with InfoPath,
you can view this video here


I hope this helps you

Cheers,
Ben Walters
 
G

Girish J Bhatia

How do I install this webservice which I have downloaded from Codeplex. I
have tried to put it in a Virtual Directory in IIS and browse but it aint
working.

Any step by step guidance would be obliged!

Thank you,
 

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