Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2895

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

$
0
0

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://{model>icon}" type="{model>type}" number="{model>count}" numberUnit="{model>numberUnit}" title="{model>title}" info="{model>info}" infoState="{model>state}" />

</TileContainer>

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

 

{

     data: [

          {

               "Count": "5",

               ...

          },

          {

               ..

          }

               ...

     ]

}


Viewing all articles
Browse latest Browse all 2895

Trending Articles



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