How to control lookup output value

How can I save refSomethingId from lookup instead of Id of a row?
I tried many combinations of filters, datastructure edits and ValueValueMember feature, but with no success.

You need to set the ListValueMember attribute. This controls which Value will be passed when you pick an item from a List. Therefore List-Value-Member. It is typically the primary key (or Id) of the row but you can change it to any other value.

Just be aware that you will have to update the Value part of the lookup so it correctly picks up the right text by the value you are setting from your list. So the ValueMethod property will have to filter by the value set by the ListValueMember.

1 Like

Thank you. Finally helped me to read carefully the documentation topic to realize what part of lookup do what.