L
Larry W. Virden
I've been reading on various web pages about the technique of using
the UserProfileService web service, with the GetUserProfileByName
method, to obtain information about the current user.
I have a slightly different scenario with which I need help.
Here's my situation.
When the form is created new, I want to populate fields with the
current user's account name, Preferred Name, Department, and email
address.
This I can do, placing the results into text fields.
What I want the user to be able to do, however, is to allow the user
to replace his/her own current account name with the name of someone
else's account, take some action (button press, etc.), and have
InfoPath retrieve that person's profile and place their information
into the fields.
Of course, once the form is saved, subsequent opening by someone
should NOT replace the form data with that user's information.
Is this doable? How do I pass along an account name as an argument to
the GetUserProfileByName methods?
Thank you for your help.
the UserProfileService web service, with the GetUserProfileByName
method, to obtain information about the current user.
I have a slightly different scenario with which I need help.
Here's my situation.
When the form is created new, I want to populate fields with the
current user's account name, Preferred Name, Department, and email
address.
This I can do, placing the results into text fields.
What I want the user to be able to do, however, is to allow the user
to replace his/her own current account name with the name of someone
else's account, take some action (button press, etc.), and have
InfoPath retrieve that person's profile and place their information
into the fields.
Of course, once the form is saved, subsequent opening by someone
should NOT replace the form data with that user's information.
Is this doable? How do I pass along an account name as an argument to
the GetUserProfileByName methods?
Thank you for your help.