Hi Experts,
I need to display Purchase Order Header details in Master view and its corresponding Purchase Order Item details in detail view using splitapp in sap ui5.But I am not able to link header and its corresponding item details .Kindly let me know what is going wrong.
My itempressed function coding and output screenshot are as follows:
itemSelected: function()
{
//var sUrl = new sap.ui.model.odata.ODataModel("proxy/http/xxx.xxx.x.xx:8000/sap/opu/odata/sap/Z_PORDER_SRV/PurchaseOrderCollection(" + PONumber + ")/$expand=PurchaseOrderItem",true);
var app= sap.ui.getCore().byId("appid");
var list= sap.ui.getCore().byId("listid");
var sItem=list.getSelectedItem();
var spath = sItem.oBindingContexts.undefined.sPath;
var item = sap.ui.getCore().getModel().getProperty(spath);
var oModel1 = new sap.ui.model.json.JSONModel(item);
sap.ui.getCore().setModel(oModel1,'Item');
//sap.ui.getCore().byId("Item").setModel(oModel1);
app.to('idview2',"flip","duration:'slow'");
}
});