My company is getting ready to deploy Windows 7 and Office 2010, including Infopath 2010. We have literally hundreds of Infopath client based forms that use a custom 'find' button to lookup and retrieve some user ID and Name from AD. To make a long story short, these find buttons will not work with IP 2010. We are beginning the process of converting these forms to use a contact selector.
I have one very complex form in which I absolutely can not modify the xml schema to use the contact selector. So I came up with the idea of creating a separate form that contains a contact selector, then call that form from the existing buttons. I think I can come up with code to invoke the form as an object variable (which should give me access to the contact form xml), then set the appropriate existing schema nodes from the contact selector xml values. My difficulty is in trying to make the process synchronous ... invoke the form from code using an object variable, suspend the code while the contact selector is being filled out, then resume the code after submitting the contact selector form.
Will something like this pseudocode work?
set objvar to new instance of cs form
do
wait 1 second
get cs form xml
if cs.done = true then exit loop
loop
set xml ID node = cs.id
set xml Name node = cs.name
Am I completely nuts or is this possible?