I am an ABAPer and learning SAPUI5
. I am practising master-detail application through splitApp
control. I have been searching for this kind of example but did not find any. so, i am writing here. Please guide me if possible.
I am using local JSON model(entries in a file named as Products.json). I have two views first.xml and seconds.xml which are master and detail respectively.
In first view I have a list and below is the code written in onItemSelect
event of this list
var oSelectedItem = oEvent.getSource();
var oContext = oSelectedItem.getBindingContext("products");
var sPath = oContext.getPath();
var oPrdDetails = sap.ui.xmlview("view.second").byId("prdDetails");
oPrdDetails.bindElement({ path: sPath, model: "products" });
var oListDetails = sap.ui.xmlview("view.second").byId("listDetails");
oListDetails.bindElement({ path: sPath, model: "product2" });
Id="prdDetails"
is panel in second view and Id="listDetails"
is a list in second view. My problem is these controls doesn't get updated using the above code.