Hi,
I'm trying to bypass InfoPaths standard user role option due to the fact that it's a first come, first serve basis when dealing with one user in multiple roles. I want to use an xml document to provide the list of names and roles they are in. See the following....
<roles>
<role = "Approver">
<user>Mary</user>
<user>Joe</user>
</role>
<role = "Submitter">
<user>Mary</user>
<user>Steve</user>
</role>
</roles>
I'm using the GetUserProfileByName webservice to get all the users info. My question is two fold.
- Is it possible to auto populate a text field with data from an xml document(using a receive datasource)? I know it is possible to grab data from an xml document using a combo box or list field, but it doesn't necessarily auto populate the field with the data.
- Is there anything special that needs to be set up in a rule to grab the data from a field with multiple values?
Here's my example: Let's say Mary is the current user....
Textfield1 = xml datasource above
Textfield2: If role = "Submitter" then disable Textfield2
If there are easier ways to get around this then by all means I am all ears, I just can't seem to connect a few of the dots. Thanks in advance for any help I get!! Another option I'm thinking of is setting up each role with their own field that pulls data from their own xml documents, but I'd rather not do that.