Search Type: Posts; User: luciano.lima

Search: Search took 0.02 seconds.

  1. I'm trying to show an error information in my app.
    I tried 3 different cases and in all is the same situation.
    404 error, JSON Reader error and nonexistent URL.
    In my Store added a load listener...
  2. Thank you mhmda
  3. Hello guys.
    I was thinking about ajax requests with json data.
    In an application with 5 different views.
    What would be better for the app, load everything in just one request or loads a json file...
  4. Some answer about this topic?
    I still can not get the data of the stores returned by the model through the load method.
    Maybe it's because I need to create the stores through the settings for each...
  5. Thank you Mitchel.


    I'm not using the sencha-touch-all.js version.
    And the data.proxy.LocalStorage and device.Connection cases?
    In development mode, I only can use if I add in the requires...
  6. Hello guys.
    I was facing a problem with my application whit the production version on browser. An error occurred because I was adding in my app.js file an 'Ext.data.proxy.Ajax' in the requires...
  7. Ahhh true. Sorry for my lack of attention.
    I always thought that model should be used with Store.


    Very well. I do:


    var mainModel = Ext.create('MainModel');
    mainModel.list1(); //Woks nice....
  8. Store:

    Ext.define('MyStore', { extend: 'Ext.data.Store',


    config: {
    model: 'MainModel',
    storeId: 'mystore'
    }
    });
  9. Thank Mitchell.
    One last question. How to pass data to each list in TabPanel?
    I was using a new Ext.Store for each list. This case will be a single store, but lists do not have a setModel() method....
  10. Hello Mitchell. Thanks for the reply.
    So I'll have 3 models. One primary model that will have 2 hasMany relationships (list1 and list2). And in the other models I will add one belongsTo relationship...
  11. Hello guys.
    I have a TabPanel with 3 items loaded on initialize.

    Ext.define('Main', {
    extend: 'Ext.tab.Panel',
    xtype: 'main',
    requires: [
    'MyList',
    'UserCard'
    ...
  12. Is this a good practice?
    Work's fine!

    Thank's!
  13. Exactly this:


    {
    "success": false,
    "status": -20 (int), //0 mean success
    "errorMsg": "" (string)
    }
  14. Sorry, it was my fault.
    I define listener both in father and child.
  15. Hi guys.
    Well, I have some stores in my application.
    These stores have a jsonp proxy and the backend is configured to return error codes.
    In the load event, if something goes wrong I return...
  16. Hi guys.
    I have a Container (navigation.View) and some lists.
    One list extends another.
    In the container, I have push and pop listeners.


    My problem is that when I make a push for the child...
  17. Replies
    6
    Views
    1,637
    Bluehipy, the firstFunction is called through an event listener in the control option in the config (I remove it when paste code here).

    Thank's! The Ext.bind() solution works for me! :D
  18. Replies
    6
    Views
    1,637
    Thank's bluehipp.

    Here is my code in controller (see the comments):


    Ext.define('MyApp.controller.Login', {
    extend: 'Ext.app.Controller',
    config: {
    },
    firstFunction:...
  19. Replies
    6
    Views
    1,637
    This return window to var. I try this too.
  20. Replies
    6
    Views
    1,637
    Hi guys.


    In my controller, I have 3 functions connected by a custom proxy.
    In the first function I call the proxy and pass the second function as callback,
    then in the second function I call...
  21. Exactly, it's a string, not an array neither a json
  22. Hello guys.
    I defined a view that extends from Ext.List. I created a store and a Model for this.

    My Store:

    Ext.define('ConnectMobile.store.Groups', {
    extend: 'Ext.data.Store',
    ...
Results 1 to 22 of 22