Hi,
in order to connet to our MVC Web Api Controller Services using the OData Protocol, I implemented the User Extension : http://ift.tt/1jCDERL which for a GET Request seemed to work (returning valid json Data). I am using SA and have added the OData.js into the Resources folder.
My Rest proxy is thus defined as:
proxy: {
type: 'odata',
withCredentials: false,
username: 'mike',
password: 'pass',
url: 'https://.....',
reader: {
type: 'json'
}
}
The index.html which is auto-generated places the following reference:
<script src="resources/OData.js"></script>
When the OData.js is executed there is an override statement:
Ext.override(Ext.data.proxy.Server,{...,
where Ext.data is in this place undefined. It seems this code is executed before the Ext.Loader starts its work.
So my questions are:
Is this the way to use a custom extension (e.g. embed it in the resouce folder and use it )?
What must I do to avoid this error. How can I assure the required Ext classes are loaded for an external resource ?
"TypeError: Ext.data is undefined,
in order to connet to our MVC Web Api Controller Services using the OData Protocol, I implemented the User Extension : http://ift.tt/1jCDERL which for a GET Request seemed to work (returning valid json Data). I am using SA and have added the OData.js into the Resources folder.
My Rest proxy is thus defined as:
proxy: {
type: 'odata',
withCredentials: false,
username: 'mike',
password: 'pass',
url: 'https://.....',
reader: {
type: 'json'
}
}
The index.html which is auto-generated places the following reference:
<script src="resources/OData.js"></script>
When the OData.js is executed there is an override statement:
Ext.override(Ext.data.proxy.Server,{...,
where Ext.data is in this place undefined. It seems this code is executed before the Ext.Loader starts its work.
So my questions are:
Is this the way to use a custom extension (e.g. embed it in the resouce folder and use it )?
What must I do to avoid this error. How can I assure the required Ext classes are loaded for an external resource ?
"TypeError: Ext.data is undefined,
Ext.override(Ext.data.proxy.Server,{ |
Aucun commentaire:
Enregistrer un commentaire