Hi Sridevi,
Refer the below link:
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} | sURL | A 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: true | By 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: GET | The 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: false | whether the data should be merged instead of replaced |
{string} | bCache?, Default: false | force no caching if false. Default is false |
{object} | mHeaders | An object of additional header key/value pairs to send along with the request |
Regards,
Ajain