Hybrid View

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    27
    Answers
    1
    Vote Rating
    7
    rhytha268 is on a distinguished road

      1  

    Default Unanswered: TypeError: record.unjoin is not a function

    Unanswered: TypeError: record.unjoin is not a function


    Getting error when loading store data After ajax request returning data.
    Error - TypeError: record.unjoin is not a function
    Here is my code -

    var invStore = Ext.data.StoreManager.lookup('invoice');
    var rec = Ext.decode(response.responseText);
    invStore.loadData(rec);

  2. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,114
    Answers
    83
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    Check the rec after decode. Is it an array?
    And you could try to use loadRawData if the data is not an array of models.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    27
    Answers
    1
    Vote Rating
    7
    rhytha268 is on a distinguished road

      0  

    Default


    Here is my data - and loadRawData also not working.

    Load.png

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Posts
    27
    Answers
    1
    Vote Rating
    7
    rhytha268 is on a distinguished road

      1  

    Default


    My Bad.
    I should use -

    var rec = Ext.decode(response.responseText).records;
    invStore.loadData(rec);

    That works.

    Thank you

  5. #5
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,114
    Answers
    83
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    you should put in the record array part not the rec object..

Thread Participants: 1

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..." hd porno faketaxi