I have 2 models in my application that I bind to sap.ui.core. The following code is from my main view. Which is a split-app.
var checks = {
items: [
{
checklist: "ContainerCheck",
title:"Scan RFID container",
}
// etc...
]}
;
var oModel = new sap.ui.model.json.JSONModel();
oModel.setData(checks);
sap.ui.getCore().setModel(oModel, "checks");
In another view I want to bind data to the masterpage
var oItemTemplate = new sap.m.ActionListItem({
title : "{title}",
icon : "sap-icon://activity-2",
activeIcon: "sap-icon://activity-2",
type : sap.m.ListType.Active,
});
this.oList = new sap.m.List({
itemPress: [oController.onListSelect, oController]
});
this.oList.bindItems("checks>/items",oItemTemplate);
However I'm not seeing any data in the list. I'm quite sure the sPath is correct checks>/items
. Is it not possible to use this sPath because the model is bind to sap.ui.core
. Or am I missing something else?