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 User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,345
    Vote Rating
    250
    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,653
    Vote Rating
    402
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar