Skip to Content
0
Jun 13, 2016 at 02:24 PM

How to call a function from one function in sapui5

3222 Views

Hi experts ,

I developed here one oData Get call that is working fine. But form the success function i just need to call one more function there .

So how to call the other function from the success function.

Plz correct me if i may did wrong anywhere. And send me your guidelines.

I attached my coding here .

press :function () {

var surl = "service url here ";

OData.request

({

requestUri:surl,

method: "GET",

headers:

{

"X-Requested-With": "XMLHttpRequest",

"Content-Type": "application/atom+xml",

"DataServiceVersion": "2.0",

"X-CSRF-Token":"Fetch"

}

},

function(data, response) { // onSuccess function called when everything is ok

this.applySearch(); // if i call the function like this i am getting error like this is not a function like that

}

},

applySearh : function () {

}

Thanks and Regards ,

Damian .A