Results 1 to 2 of 2

Thread: azure extension requires init and making autoLoad store fail

  1. #1
    Touch Premium Member pkellner's Avatar
    Join Date
    Sep 2008
    Location
    San Jose, California
    Posts
    834
    Answers
    5

    Default azure extension requires init and making autoLoad store fail

    Is there a way to h ave Ext.Azure.init(this.config.azure); run such that if a store with an azure proxy has autoLoad set to true, it does not error (because Azure init has not been called)?

    It's not obvious to me where that place should be, but as is, I think that autoLoad will always cause the store to fail with a bad url. This is the kind of thing that really mixes people up when they are first trying to get it working.

  2. #2
    Touch Premium Member pkellner's Avatar
    Join Date
    Sep 2008
    Location
    San Jose, California
    Posts
    834
    Answers
    5

    Default

    I end up writing code like this: (I'm sure there is a better way)

    Code:
    Ext.Azure.init(this.config.azure);
    var store = Ext.data.StoreManager.lookup("TodoItems");
        store.load({
        callback: function(records, operation, success) {
            Ext.create('MyOrg.view.MyPanel2', {fullscreen: true});
        },
        scope: this
    });

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •