cancel
Showing results for 
Search instead for 
Did you mean: 

toDetail() method of sap.m.SplitContainer

Former Member
0 Kudos

Hello UI5 experts,

I am trying to read the data in list data of master view and passing it to detail page. In the document of toDetail() method of SplitApp control, it is mentioned that we can pass oData and it will be available in beforeShow event on target page. How to capture the data that I am passing in target page?

capture7.jpg

Thanks..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I couldn't find a way to use beforeShow() method, but managed to transfer the data from one view to other by following approach:

var oContext = oEvent.getParameters().listItem.getBindingContext();
var oObject = oContext.getObject();

var oEvalPage = sap.ui.getCore().byId("idEvalView1");
oEvalPage.setBindingContext(oContext, 'Navigation');

And in detail view:

var oEvalPage = sap.ui.getCore().byId("idEvalView1");
var oContext = oEvalPage.getBindingContext('Navigation');
var oObject = oContext.getObject();

Answers (0)