1

I have a Controller with a handler onLogin() that gets called after a successful log in request:

Ext.define('AddressBook.controller.Application', {
extend: 'Ext.app.Controller',
...
onLogin: function(form, record) {
    var editButton = this.getEditButton();

    if (!this.showContact) {
        this.showContact = Ext.create('AddressBook.view.contact.Show');
    }

    //how to get this store?
    var store = getContactsStore();
    //how to get the data in the store or should I get the model?
    this.showContacts.updateDataProvider(store.array);

    // Push the show contact view into the navigation view
    this.getMain().push(this.showContact);
},
...
}
Olivier de Jonge
  • 1,454
  • 2
  • 15
  • 31

1 Answers1

3

try this code

Ext.getStore('storeId')

it will give you store's object

Naresh Tank
  • 1,569
  • 10
  • 23