1. #1
    Sencha User
    Join Date
    Aug 2008
    Location
    Guatemala
    Posts
    8
    Vote Rating
    0
    orcardona is on a distinguished road

      0  

    Exclamation 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?

  2. If you specify the directFn as a string then the function should be resolved when it is first used.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,405
    Answers
    3549
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Aug 2008
    Location
    Guatemala
    Posts
    8
    Vote Rating
    0
    orcardona is on a distinguished road

      0  

    Default


    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'
    }
    }
    });

  5. #4
    Sencha User
    Join Date
    Aug 2008
    Location
    Guatemala
    Posts
    8
    Vote Rating
    0
    orcardona is on a distinguished road

      0  

    Default


    I am using the Sencha Designer 2 beta to create the app

  6. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,405
    Answers
    3549
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You are trying to do directFn: T00007.AC00001 but that function may not always be present.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  7. #6
    Sencha User
    Join Date
    Aug 2008
    Location
    Guatemala
    Posts
    8
    Vote Rating
    0
    orcardona is on a distinguished road

      0  

    Default


    I am aware of that, but the Designer is generating in that way

  8. #7
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,405
    Answers
    3549
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  9. #8
    Sencha User
    Join Date
    Aug 2008
    Location
    Guatemala
    Posts
    8
    Vote Rating
    0
    orcardona is on a distinguished road

      0  

    Default


    Thank you for your help