Binding table data with a form
I am working on a requirement where I need to get the customer data (first name, last name) displayed in a table. Once the data is present in the table on select of each row I need to display the customer details below in a form. This form displays existing customer data and also allows to add/update new customer data.
For existing data to show up I have binded the values in the table and form so that when I click on the table row the form data changes accordingly. This works perfect for text fields. But in the form I had a radiobuttonby key UI element which has male / Female options. I binded the attribute value that I am getting from R/3 as the selected key. But still I am not able to show the corresponding Gender value as per the selection.
Can any one please let me know what I am doing wrong or if any tutorial available please forward.
Thanks for your time and Consideration!