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 2008

Tip: Looking for answers? Try searching our database.

Programatically validate name listed in Contact Selector

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
poul0004 - 05 Mar 2008 17:50 GMT
Hello all-

I have been following the blog posting at
http://blogs.msdn.com/infopath/archive/2007/02/28/using-the-contact-selector-con
trol.aspx
.  Very useful information.

I'm using two contact selectors on form.

In CS1, a help desk user will select a client.
I have AD code behind the scenes that pulls the manager field from AD,
splits the string, and substrings out the CN=.  The results of this code is
added as the display name of CS2.  Now I would like to through code call the
logic to resolve this display name.

I have added a connection to the people.asmx web service, and I have set
this connection to call the ResolvePrincipals methods.  What I don't know is
how to call this appropriately from within an InfoPath 2007 form.

Any help is appreciated.
Clay Fox - 05 Mar 2008 22:36 GMT
I have done the same thing with an Active Directory web service.

One thing I did was actually put the manager's user ID in one of the extra
custom fields in AD if that is feasible.

I am not familiar with the people.asmx but you should set it up as a receive
data connection.

Then if it has a query values you could set these on the first drop down
rule and then query the data connection.  Otherwise if it returns everyone,
you would use a filter to get the data that matched the selection in the
dropdown.

Signature

Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum

> Hello all-
>
[quoted text clipped - 14 lines]
>
> Any help is appreciated.
 
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.