Skip to Content
Apr 22, 2008 at 01:22 PM

Drop down list....binding item value and item text?


I am on ECC6 and currently developing several interactive forms. One of our most common components is going to be an employee search of sorts. The idea is that the user will enter a search string on last name in a edit/input textbox control. When executing this event, a backend service will populate a "results" list into a drop-down control. The value of each item will be the employee user name (or ID number) but the text should be the employee's name. So for example in HTML terms we would have something like....

<option value="00010234" text="Mark Smith">

So in the form interface, I have fields EMP_UNAME (for value) and EMP_FNAME (for the text). How would I bind these to the item value and item text? I ask because I must FIRST bind a field to the drop-down itself before being able to bind the value and text. It seems that if I bind a field directly to the drop-down control, it just makes the field be both the item value and the item text. So for example of using username (EMP_UNAME) if binded to the drop-down, it would end up creating...

<option value="00010234" text="00010234">

That's not what we need or can use.

Any help?