Hello community,
like my question says i tried this:
controller:
var tileCitas = this.byId("tileCitas");
var sURI = "/sap/opu/odata/SAP/ZERD_DASH_ASESORES_SRV";
var oDataModel = new ODataModel(sURI, true);
var oModel = new sap.ui.model.json.JSONModel();
oDataModel.read("/tileAsesorInfoSet(Asesor='" + this.varGlob.asesor + "')", {
success: function(oData, response) {
var oResults = oData.results;
oModel.setData(oData.results);
tileCitas.setModel(oModel);
},
Error: function(oError){
}
and this is my view
<GenericTile id="tileCitas" class="myStyle" header="{i18n>HeaderTabCitas}" subheader="{/Asesor}" press="press1">
<TileContent unit="EUR" footer="Current Quarter">
<content>
<NumericContent scale="M" value="{/Citas}" valueColor="Error" />
</content>
</TileContent>
</GenericTile>
what if i have a litle list or table inside my table? i should send the model to my tile o directly to the table? or both?