1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    chennai,tamilnadu
    Posts
    19
    Vote Rating
    -3
    vijayasarathi can only hope to improve

      0  

    Default how a Ext.data.Model object access Ext.data.Store properties

    how a Ext.data.Model object access Ext.data.Store properties


    Hi buddys I am new to ExtJS and now am learning.My doubt is as follows


    var selModel = grid.getSelectionModel();
    var selectedRecords = selModel.getSelection();
    var selectionCount = selModel.getCount();
    recData = 'From : ' + selectedRecords[0].data.mailid + '<br/> Subject is : ' + selectedRecords[0].data.subject;


    In the above selectionRecords is an array of objects of Ext.data.Model.....but still can access "data" property...which is not at all a property of Ext.data.Model


    Please help me....I am unable to understand this scenario


    Thank You............
    regards
    Vijay

  2. #2
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,731
    Vote Rating
    104
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      1  

    Default


    To get data from a model use the 'get' method, don't touch the data property

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    chennai,tamilnadu
    Posts
    19
    Vote Rating
    -3
    vijayasarathi can only hope to improve

      0  

    Default


    Thank you mankz for the reply........

    but please explain me how model object can access the data property,which is not at all property of that class....

  4. #4
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,731
    Vote Rating
    104
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      1  

    Default


    1. Docs are not always in 100% sync
    2. JavaScript has no private properties.

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Location
    chennai,tamilnadu
    Posts
    19
    Vote Rating
    -3
    vijayasarathi can only hope to improve

      0  

    Default


    thanks.....now i got it,
    but
    in such case we can access any class properties using any objects????????????????

  6. #6
    Sencha User
    Join Date
    Jul 2012
    Location
    chennai,tamilnadu
    Posts
    19
    Vote Rating
    -3
    vijayasarathi can only hope to improve

      0  

    Default


    this not still clarified can any one explain .........................

  7. #7
    Sencha User Baron89's Avatar
    Join Date
    Aug 2012
    Posts
    58
    Vote Rating
    0
    Baron89 is on a distinguished road

      0  

    Default


    umm,how do u define 'private properties'?

  8. #8
    Sencha User
    Join Date
    Mar 2009
    Location
    Fort Worth, TX
    Posts
    65
    Vote Rating
    -36
    jemptymethod is infamous around these parts jemptymethod is infamous around these parts jemptymethod is infamous around these parts jemptymethod is infamous around these parts jemptymethod is infamous around these parts

      0  

    Default


    Quote Originally Posted by Baron89 View Post
    umm,how do u define 'private properties'?
    I don't think belaboring this issue adds anything to the discussion at this point.

  9. #9
    Sencha User
    Join Date
    Mar 2009
    Location
    Fort Worth, TX
    Posts
    65
    Vote Rating
    -36
    jemptymethod is infamous around these parts jemptymethod is infamous around these parts jemptymethod is infamous around these parts jemptymethod is infamous around these parts jemptymethod is infamous around these parts

      0  

    Default


    Quote Originally Posted by vijayasarathi View Post
    this not still clarified can any one explain .........................
    In Javascript properties are typically going to be public unless one follows instructions that are very well explained in the following:

    http://www.crockford.com/javascript/private.html
    Last edited by jemptymethod; 5 Sep 2012 at 10:21 AM. Reason: grammar

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