Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

oContainer refers to what in the example?

$
0
0

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


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>