-
26 Mar 2012 10:06 AM #1
Answered: Sencha app build command with Direct
Answered: Sencha app build command with Direct
Hi, I'm trying to build the production version of the app, but get the error:
"[ERROR] Error thown from your application with message: ReferenceError: Can't find variable: T00007"
T00007 is a direct method from the server side. How can i do to solve this error?
-
Best Answer Posted by mitchellsimoens
If you specify the directFn as a string then the function should be resolved when it is first used.
-
26 Mar 2012 10:22 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
- Answers
- 3102
For direct, I always create my proxy when directFn in the constructor so that the provider should be returned.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Mar 2012 10:45 AM #3
The problem, if I am correct is in the "directstore" because another application did not show that error, but that application does not use"directstore"while the other application uses several "directstore". Both applications are calls to methods on the server side, using "Direct",within the functions of each controller.
Ext.define('teTouchBank.store.ProductosOrigen', {
extend: 'Ext.data.Store',
requires: [
'teTouchBank.model.CatalogoProducto'
],
config: {
model: 'teTouchBank.model.CatalogoProducto',
storeId: 'ProductosOrigen',
proxy: {
type: 'direct',
directFn: T00007.AC00001,
reader: {
type: 'json',
idProperty: 'Codigo',
rootProperty: 'rows'
}
},
sorters: {
property: 'Orden'
}
}
});
-
26 Mar 2012 10:51 AM #4
I am using the Sencha Designer 2 beta to create the app
-
26 Mar 2012 10:53 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
- Answers
- 3102
You are trying to do directFn: T00007.AC00001 but that function may not always be present.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Mar 2012 10:55 AM #6
I am aware of that, but the Designer is generating in that way
-
26 Mar 2012 10:59 AM #7Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
- Answers
- 3102
If you specify the directFn as a string then the function should be resolved when it is first used.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Mar 2012 11:21 AM #8


Reply With Quote