Skip to Content
0
Jun 28, 2016 at 12:01 PM

Menifest model not working

22 Views

Hello Experts,

I have defined model in menifest like :

"tile" :{

"type" : "sap.ui.model.json.JSONModel",

"uri" : "model/tile.json"

}

OnInit i have written like below:

onInit : function(){

var mTileInfo = this.getOwnerComponent().getModel("tile");

this.getView().setModel(mTileInfo);

And my View is like below:

<TileContainer

id="container"

tiles="{tile>/TileCollection}">

<StandardTile

icon="{icon}"

title="{title}"

info="{info}"/>

</TileContainer>

But Tiles are getting displayed without any information( ie without icon, title, info ) as defined in the tile.json.

thanks,

Abhi