Hi Saurabh,
Let me make myself much clearer.
If I wanner get the value/key selected by a user in a sap.m.Select( or a dropdown box ), and the values listed inside it is from back-end, i.e. OData service, I think 3 steps are mandatory:
1. Prepare values/keys and get them shown in sap.m.Select(or a dropdown box);
E.g.
Key Value
1 Male
2 Female
( I've done successfully. )
2. Pass the value/key a user selected to a entity field, i.e. BPGroup here in the snapshot;
E.g.
The user select Male, and it is passed to BPGroup.
(That's what I am wondering.)
3. As what you've mentioned, do something with the value in BPGroup in back-end, i.e. getting this value in the OData service's create/update method and updating this to the relevant back end tables.
E.g.
Find the Male a pretty girlfriend if he isn't coming out of the closet.
( I can say for sure that I can do this because I've done this with other input fields. )
Hope this is clear.
Regards,
Xuebin