I am try to bind data in Panel sapui5, but it not binding in the Panel.
code which I am trying here:-
jQuery.ajax({
type : "GET",
url : URL,
dataType : "json",
async : false,
success : function(data) {
console.log(data);
oModel1 = new sap.ui.model.json.JSONModel();
oModel1.setData({"dataDetails" : data});
sap.ui.getCore().byId("panel1").setModel(oModel1);//binding data in panel
}
})
how are you validating that model is not set on the panel?
Do you have UI controls in the panel which should display the data, if so provide the code of view.