Skip to Content
0
Aug 20, 2015 at 04:15 AM

Uncaught ReferenceError: oData is not defined

250 Views

Hi,

I am making a oData.request() call in the controller . While executing I am getting the error "Uncaught ReferenceError: oData is not defined" in the console.

Am I missing anything ? Has anyone faced a similar issue before ?

oData.request(
                                    {
                                        requestUri : "URL",
                                method : "GET",
                                    headers :
{
                                    "X-Requested-With" : "XMLHttpRequest",
                        "Content-Type" : "application/atom+xml",
                    "DataServiceVersion" : "2.0",
                            "X-CSRF-Token" : "Fetch"
                            }
                                        },

                                        function(data, response) {
.....

Regards,

Adren