cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get of details Selected row

Former Member
0 Kudos

Hi,

I have created a table in UI5 in which data is displayed using gateway service. Rows of this table are binded using line oTable.bindRows("/zui_group1_getlistCollection()").

Now I want to get the username of selected row. I tried using

var selectedContext = oTable.getContextByIndex(oTable.getSelectedIndex());

  alert(selectedContext);

But it gives output as : "/zui_group1_getlistCollection('ABHISROY')".

And i want only ABHISROY.

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Use Model.getProperty("name of property bound to column", selectedContext ).

https://sapui5.netweaver.ondemand.com/sdk/#docs/api/symbols/sap.ui.model.Model.html#getProperty

SAPUI5 SDK - Demo Kit

Answers (1)

Answers (1)

Former Member
0 Kudos

thanx.

got it.