Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    574
    Vote Rating
    6
    lorezyra will become famous soon enough

      0  

    Exclamation Unexpected error - TypeError: 'null' is not an object

    Unexpected error - TypeError: 'null' is not an object


    Designer version tested:

    Designer 1.2.2 rev 28

    Operating System:

    WinXP Pro

    Framework:

    Ext JS 4.x

    Description:

    I'm migrating my app from EXTjs3 to EXTjs4 by rebuilding the entire app in Designer.
    Made changes to a container's properties while in code-view mode
    Switched to Design view and XDS crashes!
    (Am I missing something in TPL configs?)

    Steps to reproduce the problem:

    create a simple ArrayStore
    add 1 integer field with the name "id"
    add 1 string field with the name "username"
    add 1 string field with the name "fullName"
    add 1 string field with the name "email"
    add 1 string field with the name "name"
    add 1 Boolean field with the name "enabled"
    add 1 Boolean field with the name "banned"
    add 1 integer field with the name "offenseCnt"
    add 1 date field with the name "joinDate"
    Create a window with a basic container
    add a combobox
    change to code-view mode
    Config the renderTpl property (eg: '<tpl for="."><div ext:qtip="{fullName}<BR>email:{email}<BR><BR>enabled:{enabled}<BR>banned:{banned}<BR>Offenses:{offenseCnt}<BR>JoinDate:{joinDate}<BR>Group:{name}" class="x-combo-list-item">[{id}] {username}</div></tpl>')

    The result that was expected:

    should render the window with combo-box without issue.

    The result that occurs instead:

    Crash with TypeError

    Screenshot(s) or Video:

    attachedXDS 1.2.2-27 TypeError.jpg

    Debugging already done:

    Found that the renderTpl config caused a strange null error.
    Deleted the renderTPL property, and everything started working.

    Possible fix:

    not provided
    Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...

    When in doubt, check the d4mn source code!

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,064
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    lorezyra -

    The renderTpl is a really low level component configuration to be used in conjunction with renderData and renderSelectors. We'll look at improving this experience for the end developers.

    I think you are probably looking for the tpl configuration.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    574
    Vote Rating
    6
    lorezyra will become famous soon enough

      0  

    Default


    @aconran:
    You are correct... Except that property is not available! "tpl" is needed for my comboboxes. When I type "tpl" in the filter box for the property grid, it only displayed "activeErrorsTpl" and "renderTpl!" I suspect this is another bug in Designer (1.2.2.r48)
    Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...

    When in doubt, check the d4mn source code!

  4. #4
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    574
    Vote Rating
    6
    lorezyra will become famous soon enough

      0  

    Question no tpl on ComboBox

    no tpl on ComboBox


    Here's the screenshot of what I see and why I tried to use the renderTpl property... "tpl" is actually what I wanted...


    (this is a ExtJS 4.x project)


    XDS 1.2.2-27 BUG - no tpl on ComboBox.jpg


    Okay, I'll file a different bug report for this one...
    Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...

    When in doubt, check the d4mn source code!

  5. #5
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    574
    Vote Rating
    6
    lorezyra will become famous soon enough

      0  

    Default


    I've created a new bug report for the TPL issue: http://www.sencha.com/forum/showthre...y-for-ComboBox
    Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...

    When in doubt, check the d4mn source code!

Thread Participants: 1