Hi,
I can't seem to find this anywhere, so I'm hoping someone here can help me. I have a custom infopath form for a sharepoint list, and I have a field that is a dropdown box to retrieve some data from a database. I use sql to concat some fields from the database to make the drop down easier to digest for the end user when making their selection, but store the client name in the actual value of the drop down field. My question is though: is there a way to retrieve the display name/display value of a field somehow? My google-fu skills are not finding anything, but I have to believe there is a way, how else does the form store it and redisplay.
For reference, I need it because I want to alleviate some typing for the person maintaining the list, and have some rules to autoset a few fields based on the users selection in that field, but the database allows for duplicate names (primary key is just a number). So in those corner cases when someone selects a client that exists in the list twice, if I use just the name (i.e. the value of the drop down field), the query will find just the first instance, so those dependent fields will be populated with incorrect data. I know I could change the drop down field to store the primary key, and then I would be guaranteed the correct info, but the list already has some 800 entries, and I don't want to mess with it if I can instead reference that display value. I am using infopath 2010 if that makes any difference in the answer.
Help me infopathdev forum community, you're my only hope. Thank you in advance for your time.