1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    391
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default Question about getting refs to stores

    Question about getting refs to stores


    I am updating my application to work with PR4, and when I was using PR3 I was able to get a reference to a store from the Application instance like so:

    Code:
    MyAppName.app.get<StoreName>()
    This probably was not the right way in the first place, but was just something I picked up I could do as I first started using the API.

    This is no longer supported under PR4, so what's the best way for me to reference a store from one of controller files? Would I need to define a ref to one of the stores I wish to use? Or should I just use the StoreManager object and retrieve via the storeId?

    Thanks

  2. #2
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Your best bet for Stores is always Ext.getStore('StoreId'). Stores are a little different to Models and Views in that there's usually only one instance of each so we can address them by ID.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar