there is a context set on the view and I want to bind a property to a Label but that property needs to be bind to another model than the context. I tried:
createLabel: function (){
return new sap.m.Label({
text: {labelname}
}).bindProperty("visible","{/contextExisting}","detailModel");
also tried:
.bindProperty("visible","{detailModel>contextExisting}");
and:
.bindProperty("visible","{detailModel>/contextExisting}");
and the JSONModel:
this._detailJSONModel.setData({"contextExisting" : false});
the model is set globally with:
sap.ui.getCore().setModel(this._detailJSONModel,"detailModel");
The Model isn´t created in the same .View but I can reach the model in the relevant view with:
sap.ui.getCore().getModel("detailModel");
I don´t know what´s wrong with the binding here. The Context-Binding is correct and working .