value list problem

Hello,

I just noted that when you have the typical ID/name value list that shows names but delivers IDs and you have duplicate names, Servoy always delivers the same ID, no matter which duplicate I choose.

Is this expected bahaviour?

Thanks.

yes this is default behaviour.
when you select a entry (then name) then that name is stored in the combo. And then the selectedIndex search that name in the display values so it always will return the first one it found.

But why would you have 2 exact names with different id’s? The user can’t see the id so in the end the 2 id’s are just the same for you.. (you can’t see them as different things because from a user perspective they are the same)

OK. Of course that situation should never occur. I just thought that you would pick the index of the chosen item instead of doing a name search.

Thanks for the answer.