I was trying to run this example available in the Developer Guide;
oContainer.bindAggregation("content","/company/properties", function(sId, oContext){
var value = oContext.getProperty("value");
switch(typeof value){
case"string":
returnnew sap.ui.commons.TextField(sId,{
value:{
path:"value",
type:new sap.ui.model.type.String();
}
});
case"number":
returnnew sap.ui.commons.TextField(sId,{
value:{
path:"value",
type:new sap.ui.model.type.Float();
}
});
case"boolean":
returnnew sap.ui.commons.CheckBox(sId,{
checked:{
path:"value"
}
});
}
});
What does oContainer refer to here?
I tried to instantiate FormContainer but that didnt work..
Please lhelp and let me know oContainer should be an instance of what?
Thanks alot
Amjad