on 12-04-2013 10:58 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanx.
got it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.