I try to fix this for several hours but cann't see my mistake. I try to do just a simple binding:
in my index.html
data-sap-ui-xx-bindingSyntax="complex"
...
var oModel = new sap.ui.model.json.JSONModel();
oModel.loadData("model/data.json");
sap.ui.getCore().setModel(oModel);
in my App.view.xml
...
<Page title="{/greeting}">
...
data.json
{
"greeting": "hey"
}
I cannot see what's wrong here. Even a sap.ui.getCore().getModel() during debugging gives me a Object with {"greeting":"hey"} in it's oData variable.
I hope you guys can help.
I also posted here the original question. But since I simplified it, I should post this in a seperate question. Binding in List with XML
--------- update --------
this.getView().setModel(oModel); -> works
sap.ui.getCore().setModel(oModel); -> doesn't work