cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

Sometime back, I was working on Tables and I used sap.ui.commons library. In the table, I have created a toolbar. When a row is selected and "display button" from the toolbar is clicked, a dialog box opens up , and details of that item are shown in that dialog box.

Screenshot of the code -

Now I am using SAP.M. library. But I am facing an issue while getting the "rowcontext". I tried various options, but I am not able to get the rowContext. Can anyone please help me with the syntax.

In debug mode, I can see that my oContext is undefined.

I want to access the values that are marked in RED in the screenshot -

example - AProject, ATitle, AUnid....... Please help me in this

Regards

Meenakshi

0 Likes
View Entire Topic
rohit_darwade
Explorer
0 Likes

Hi,

You can get the binding context on click on table line Items:

var object=oEvent.getSource().getParent().getModel().getProperty(oEvent.getSource().getBindingContext().sPath);

Thanks,

Rohit.

Former Member
0 Likes

Hi Rohit,

Thanks for your reply. What should be passed in spath ? I am getting an error - Cannot read property 'sPath' of undefined

Thanks and Regards

Meenakshi

Former Member
0 Likes

I want to access the values that are marked in RED in the screenshot -

example - AProject, ATitle, AUnid....... Please help me in this

Ask a Question