Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3163 in Sprint 24 (2.1.0-b3).
  1. #1
    Touch Premium Member
    Join Date
    Aug 2010
    Location
    New York, NY
    Posts
    66
    Vote Rating
    0
    sandeep45 is on a distinguished road

      0  

    Default Panel with template renders null objects as null string

    Panel with template renders null objects as null string


    I have a panel with a template like this:

    Code:
    {
      xtype:'panel',
      tpl: 'first name is {fname}'
    }
    Now i update the panel and with null it actually shows the string null. This is not how it worked in sencha touch 1 and it should not say the string null.

    I am updating like this:
    Code:
    panelObj.setData({fname:null});
    Result is that I see this:

    first name is null
    What am i doing wrong

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    I'm actually going to open this as a bug.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread