Quantcast
Viewing all articles
Browse latest Browse all 2161

Re: Upload csv, convert to json and display data in Tiles of sapui5

Hello Manali,

 

Please try this:

 

In controller:

 

this.getView().setModel(oModel,"model");

 

In View set TileContainer tiles (it's only example - change name of fileds):

 

<TileContainer tiles="{model>/data}">

  <StandardTile icon="sap-icon://{data>icon}" type="{data>type}" number="{data>count}" numberUnit="{apps>numberUnit}" title="{apps>title}" info="{apps>info}" infoState="{apps>state}" press="navigateToApp"/>

</TileContainer>

 

It's also depends on JSON structure. It should look like this:

{

     data: [

          {

               "Count": "5",

               ...

          },

          {

               ..

          }

               ...

     ]


Viewing all articles
Browse latest Browse all 2161

Trending Articles