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

Re: Setting odata to Generic Tile

$
0
0

Hi Sarbjeet ,

 

Please find Component.js code below .

 

sap.ui.define([

   "sap/ui/core/UIComponent",

   "sap/ui/model/json/JSONModel"

], function (UIComponent, JSONModel) {

   "use strict";

   return UIComponent.extend("sap.ui.demo.wt.Component", {

      metadata : {

            manifest: "json"

      },

      init : function () {

         // call the init function of the parent

         UIComponent.prototype.init.apply(this, arguments);

         // set data model

         var oData = {

            recipient : {

               name : "World"

            }

         };

         var oModel = new JSONModel(oData);

         this.setModel(oModel);

      }

   });

});

 

Thanks,

Sandeep


Viewing all articles
Browse latest Browse all 3458

Trending Articles



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