Page 1 of 1

select component mapping

Posted: Mon Jul 11, 2016 5:04 pm
by Terry Gilliver

I have a select component with three possible values: 'cash', 'card' or 'cheque'. When I am returning a value from a database, how to I map it so that the correct selected value is shown on the select component at run-time, it always seems to show the first value in the list. Here is my current mapping:

Image

paymenttype is the response mapped to the select component.


select component mapping

Posted: Tue Jul 12, 2016 11:32 am
by Terry Gilliver

I think I have sorted this one. i should have mapped to the Selected item rather than the Value item.

Can you confirm this, it seems to work now.


select component mapping

Posted: Tue Jul 12, 2016 1:48 pm
by Evgene Karachevtsev

Hello Terry,

Thank you for the update, yes, everything seems to be correct.