InfoPath 2010 - SharePoint 2010
I'll be honest, I don't know how best to title this request.
What I have is a list of specific Directors in a SP list. In the list is the following:
1. ID
2. Title (UserID)
3. Area (of expertise)
4. Categories (or responsibilities)
5. Comments
I need to build a dropdown based on the area where the form user can select the Director's name. I know how to filter the data in the dropdown to only include the "Area" so that's no biggie.
But, the problem I have is that I need to put a nonexistent "Director Name" in the display section of the dropdown, with their user ID as the value. Again, I know how to separate those two.
When I created the dropdown, to my dismay, it appears to only accept the "stuff" in the list to populate it with, without any way to branch off to complete the process (run a webservice (WS) to get the name)
What I can't figure out how to do is to get the name into the dropdown.
IDEA!: (light bulb icon goes here)
What I figured I could do, since the DropDown doesn't want to play fair, was to create a hidden temp repeating table bound to the Directors list with all the fields I need.
To do this, I figured I would bind the temp table to the list and then snag the userID from the "Title" as it was building, and run it through the AD WS to get the directors name and put it somewhere in the temp table.
Then bind the DropDown to the hidden repeating table to get the new directors name field as the display field and their userID as the value field.
IDEA Implementation: FAIL
So...
- I created a hidden repeating temp table
- I then created a rule on the userID that when it changed (got created) it would take the UserID contents, and fill the username queryfield in the "GetUserInfo" method.
- The next line in the rule was to query on the GetUserInfo data source.
- But the problem is that I don't have a place to stick the value from the WS.
- I added a column in the repeating table.
- I tried to create a textbox in the new column, but without success.
So I don't and can't seem to figure out how to build a place in the temp table to store the name value from the WS, and I'm not sure how to fire it to boot.
I then tried to populate the displayName in the GetUserInfo WS in the comments field since I really don't need that field as part of the program.
But with every attempt it appears that it only wants to get populated with the list data it's bound to and my efforts to change it are in vain.