1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    13
    Vote Rating
    0
    nagesh2020 is on a distinguished road

      0  

    Default Problem with model in 4.1

    Problem with model in 4.1


    Code:
    Ext.define('MyModel', 
    {
       extends: 'Ext.data.Model',
    ...
    ...
       constructor: function()
       {
          this.set('field3', this.get('field1') + this.get('field2'));
       }
    });
    This is a code snippet of the model, which used to work for me in 4.0.x. But this no longer works in 4.1.x. That is now the "this.get.<>" returns undefined. I need to access the fields from the raw response. i.e "this.raw.<>". Here the requirement is like i need to display a complex field, by building it from simple fields returned from server side. Am i missing something or it is meant this way in 4.1.x.

    Moreover if anyone can provides link(s) to migrate code from 4.0.x to 4.1.x.

    Regards,
    Nagesh

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,581
    Vote Rating
    317
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Couldn't you just use a convert function to build field3 from the other fields?

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    13
    Vote Rating
    0
    nagesh2020 is on a distinguished road

      0  

    Default


    Quote Originally Posted by skirtle View Post
    Couldn't you just use a convert function to build field3 from the other fields?
    Thanks for the reply... Sure i will try it out...

    But where to find out such changes in the new extjs version...

    Regards,
    Nagesh

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    There is this post created by another member, but I am not sure how often it is updated:
    http://www.sencha.com/forum/showthread.php?181991

    Scott.

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