1. #1
    Sencha User
    Join Date
    Oct 2012
    Location
    Kolkata
    Posts
    9
    Vote Rating
    0
    Saurav.Mittal is on a distinguished road

      0  

    Default Unanswered: How to retrieve the storeID from the itemTap event on a list?

    Unanswered: How to retrieve the storeID from the itemTap event on a list?


    Hi Guys,

    I have a list which dynamically loads store based on the previous input. I have an itemTap event defined on the list, i can get the record tapped and other info related to that record via

    Code:
    list.getStore().getAt(index).data.q
    but i cannot get the storeID somehow. All my stores have storeID in its config. Any help would be appreciated. I need the StoreId of the record tapped, as the list loads the store dynamically.

    Code:
    list.getStore().storeId // undefined
    list.getStore().getStoreId() // undefined func getStoreId
    Regards.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    827
    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


    This works for me

    Code:
    var store = new Ext.data.Store({
        fields  : ['test'],
        storeId : 'test'
    });
    
    console.log(store.getStoreId());
    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.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Location
    Kolkata
    Posts
    9
    Vote Rating
    0
    Saurav.Mittal is on a distinguished road

      0  

    Default


    Thanks for the reply. But that works for me too.

    But in my scenario, I want to retrieve the StoreId from the itemTap event on a list which loads a store dynamically. Please refer to the small code in the 1st post. I'll be really obliged, if somebody could help/guide me do it.

    Regards.

  4. #4
    Sencha User bluehipy's Avatar
    Join Date
    Mar 2010
    Location
    Romania
    Posts
    606
    Answers
    66
    Vote Rating
    26
    bluehipy will become famous soon enough bluehipy will become famous soon enough

      0  

    Default


    What do you see in console if you print out the list.getStore() on your itemTap handler?

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."