1. #1
    Sencha Premium Member
    Join Date
    Jan 2010
    Location
    Vancouver, Canada
    Posts
    133
    Vote Rating
    10
    bogc will become famous soon enough

      0  

    Default method to extract the store (nested) data as a json object

    method to extract the store (nested) data as a json object


    Is there an extjs api method that would allow me to extract the data from a store/model into a json object. It should take into account nested data.

    Probably it shouldn't be too hard to write, but I thought of asking first (and, yes, I did look in the docs but I didn't find anything that fits 100% what I want to do).

    Thanks

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi bgoc,

    Extjs have Ext.JSON.encode() for encode an object,array or other value in json.

    for more info read API doc - http://docs.sencha.com/ext-js/4-1/#!...-method-encode
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2010
    Location
    Vancouver, Canada
    Posts
    133
    Vote Rating
    10
    bogc will become famous soon enough

      0  

    Default


    hi, sword-it:

    I knew about the Ext.encode method. You can't call Ext.encode(<someStore>) because the store has so many data members and methods and so on. As a matter of fact I tried it on a simple store and I got this:

    Uncaught RangeError: Maximum call stack size exceeded

    What I am looking for is a method that extracts the data from the store and takes into account the associations (if any), then it converts it to a json object which I can pass to the Ext.encode method.

    Thanks

  4. #4
    Sencha Premium Member
    Join Date
    Nov 2012
    Location
    Bangalore
    Posts
    79
    Vote Rating
    1
    rupamkhaitan is on a distinguished road

      0  

    Default


    Any solution so far?

Thread Participants: 2

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