1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    76
    Vote Rating
    0
    jop_008 is on a distinguished road

      0  

    Default Adding data to a store

    Adding data to a store


    I have the following code in my store dir:

    Ext.define('Florence.store.Complex', {
    extend: 'Ext.data.Store',
    id:'complexstoredata',
    config: {
    //id:'complexstoredata',
    model: 'Florence.model.Complex',
    sorters: 'naam_complex',
    data:[]
    }
    });
    var complexstore = Ext.create ("Florence.store.Complex");
    // the idea is to add the records dynamic


    In my contoller I have this code:

    complexmapper.getcomplexrecords (complexstore.data); //

    and this code has the following:

    ostore.add ( {''key':ckey, 'complex_prefix':'', 'naam_complex': ccell} );

    the errormessage is
    • [COLOR=red !important]Uncaught TypeError: Object #<Object> has no method 'getId' sencha-touch-all-debug.js:47945[/COLOR]
      • [COLOR=red !important](anonymous function)[/COLOR]


    I googled a lot but no results.
    John

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Posts
    76
    Vote Rating
    0
    jop_008 is on a distinguished road

      0  

    Default Issue solved

    Issue solved


    To get to the store data you need
    Ext.getStore ('Complex')
    then the method .add is available.

    John

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..."