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

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