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

Re: How to do deep insert in SAPUI5?

$
0
0

Hi Sridevi,

 

Refer the below link:

https://sapui5.netweaver.ondemand.com/sdk/#docs/api/symbols/sap.ui.model.json.JSONModel.html#loadData

 

Copied Reference :

 

loadData(sURL, oParameters?, async?, sType?, bMerge?, bCache?, mHeaders)

 

Load JSON-encoded data from the server using a GET HTTP request and store the resulting JSON data in the model. Note: Due to browser security restrictions, most "Ajax" requests are subject to the same origin policy, the request can not successfully retrieve data from a different domain, subdomain, or protocol.

Parameters:

{string}sURLA string containing the URL to which the request is sent.
{object|string}oParameters?, Default:A map or string that is sent to the server with the request. Data that is sent to the server is appended to the URL as a query string. If the value of the data parameter is an object (map), it is converted to a string and url-encoded before it is appended to the URL.
{boolean}async?, Default: trueBy default, all requests are sent asynchronous (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active.
{string}sType?, Default: GETThe type of request to make ("POST" or "GET"), default is "GET". Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.
{boolean}bMerge?, Default: falsewhether the data should be merged instead of replaced
{string}bCache?, Default: falseforce no caching if false. Default is false
{object}mHeadersAn object of additional header key/value pairs to send along with the request


 


 


Regards,

Ajain


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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