I understand how to filter on a key, to get a specific value when the return set contains everything you need, Ex.GetUserInfo
[PreferredName] = John Smith, [Manager]=Mary Jones..... In these cases you get back basically a hashTable that you can filter off the key to obtain the value of the field you need... I am good here.
My problem lies with the GetEmployeesForManager call. I supply the required userID to the service and get back the same hashTable type object in which each record represents a direct report to the supplied userID. In my case, I am pushing this return set directly into a dropDownList. Right now, all I get is a list of userIDs. The hashTable looks more like this:
[smithJohn] = smithJohn, [jonesMary] = jonesMary.......
The key and value are exactly the same in the return set from GetEmployeesForManager. There is no extra keys to filter on that I see or have found.
What I would like to do is be able to set my dropDownList accordingly:
value = smithJohn, display= John R Smith
Is there a way that the AD fields that are mapped to the Key/Value on the server side to the service can be modified to return a set that mimics:
[smithJohn] = John R Smith, [jonesMary] = Mary H Jones
There may be a way to do this on the client side where I loop through each record returned in GetEmployeesForManager, do a call to GetUserInfo, and pull it back that way, but the overhead on that method is unacceptable.
Thanks for any help you can provide