Programatically validate name listed in Contact Selector

P

poul0004

Hello all-

I have been following the blog posting at
http://blogs.msdn.com/infopath/archive/2007/02/28/using-the-contact-selector-control.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.
 
C

Clay Fox

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.
 

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