Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3458

How to enable Link between master and detail view of splitapp for PO details

$
0
0

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'");

 

  }

  

 

 

 

 

});

 

 

 

 

 

 

Po.JPG


Viewing all articles
Browse latest Browse all 3458

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>