Hi Jun,
On following some block I had edited the code from var selected = oTable.getSelectedIndex();
to var selected = oTable.getBindingContextPath();
Still facing the same issue.
I am not sure if this is the correct method. I have attached the original code from a reference scn blog.
Regards,
Srinivasan