cancel
Showing results for 
Search instead for 
Did you mean: 

Uncaught ReferenceError: oData is not defined

adren_dsouza
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

its a typo. it should be OData

adren_dsouza
Participant
0 Kudos

Oops.. Sorry. Thanks Indrajith. .

Answers (0)