Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: SAP HANA : Creating and consuming a XSJS service

$
0
0

// here will be the URL which is of type XSJS

var url = “http://xxxxxxxx/xx/xxx/WebContent/services/qqqq.xsjs /xxxx?$format=json";

                jsonModel.loadData(url,{},false,"

                GET ");

                sap.ui.getCore().setModel(jsonModel);

var result =  jsonModel.oData.Dates; //-> Dates is json name can get after run service on browser 

               alert(JSON.stringify(result));

 

Now Results will have list of JSON data. We now can use this and Bind with where we defined the JSON model


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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