1. #1
    Sencha User
    Join Date
    Oct 2012
    Location
    Dublin, California
    Posts
    12
    Vote Rating
    0
    drgaryholland is on a distinguished road

      0  

    Default Model.Load Question

    Model.Load Question


    I have a question in regards to model.Load(). In all the examples I have seen there is always a callback function or success function that passes a parameter my question is this parameter is never defined in the examples I have seen. Can someone clarify this? In this callback function for example the parameter book is neverdefined. Is it the root of the returned data? I have been trying to model my app according to these examples in architect2 but everytime the data is loaded the parameter is undefined as shown in firebug.

    “Book.load(1, {
    callback: function(book, operation){
    console.log(book);
    }


    Last edited by drgaryholland; 13 Jan 2013 at 11:09 AM. Reason: typo correction

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,198
    Vote Rating
    120
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    book should be an instance of a model...

    http://docs.sencha.com/ext-js/4-1/#!...ic-method-load

    Perhaps try the success callback? Do you see the request going across the wire? What is the response?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Location
    Dublin, California
    Posts
    12
    Vote Rating
    0
    drgaryholland is on a distinguished road

      0  

    Default My problem was the json reader and the record config. Json is the default

    My problem was the json reader and the record config. Json is the default


    After I removed the reader, the callback function executed and book was defined....Thanks.

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