Results 1 to 4 of 4

Thread: [Partially solved] Treelist reference not set inside Architect ?

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    305
    Vote Rating
    2
      0  

    Default [Partially solved] Treelist reference not set inside Architect ?

    Hello,

    I put a treelist with its reference :

    Code:
    {
                                xtype: 'treelist',
                                reference: 'navigationTreeList',
                                name: 'NavigationTree',
                                expanderFirst: false,
                                expanderOnly: false,
                                highlightPath: true,
                                store: 'NavigationTreeStore',
                                listeners: {
                                    selectionchange: 'onTreelistSelectionChange'
                                }
                            }
    I want to refer to this list in some code :

    Code:
    var treelist = this.lookupReference('navigationTreeList')
    In Firefox, there's this error message :

    Code:
    TypeError: treelist is null
    After searching for some time, i see that the reference doesn't appear in the ViewModel. Other references are OK. See joigned screen capture (some errors appear when trying to manage attachment, i put the file on an other provider).



    It does not matter whether the element is isolated or in another view, the reference doesn't appear.

    How to fix this ?

  2. #2
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    305
    Vote Rating
    2
      0  

    Default

    You know what ? I'm a little confused.
    I launch my app in firefox.
    When clicking first time on button which executes this.lookupReference('navigationTreeList'), it's OK.

    Debug screen shot under FireFox :



    When clicking second and next time on button which executes this.lookupReference('navigationTreeList'), it's NOK !!!

    Debug screen shot under FireFox :


  3. #3
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    305
    Vote Rating
    2
      0  

    Default

    Quote Originally Posted by senacle View Post
    You know what ? I'm a little confused.
    I launch my app in firefox.
    When clicking first time on button which executes this.lookupReference('navigationTreeList'), it's OK.

    Debug screen shot under FireFox :



    When clicking second and next time on button which executes this.lookupReference('navigationTreeList'), it's NOK !!!

    Debug screen shot under FireFox :

    All is working well now.
    Just clear the browser cache and it's ok.
    May be need to restart browser also.

  4. #4
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    305
    Vote Rating
    2
      0  

    Default

    Quote Originally Posted by senacle View Post
    The reference doesn't appear in the ViewModel. Other references are OK. See joigned screen capture (some errors appear when trying to manage attachment, i put the file on an other provider).



    It does not matter whether the element is isolated or in another view, the reference doesn't appear.

    How to fix this ?

    May be in the next sencha cmd release ?

Similar Threads

  1. Sencha Architect 3.5 and treelist widget
    By tomasz.kobiela in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 11 Mar 2016, 12:40 AM
  2. TreeList navigation with custom components inside
    By frankbolviken in forum Ext 6: Q&A
    Replies: 2
    Last Post: 21 Nov 2015, 1:02 PM
  3. Linked Class losses reference in Architect
    By cccycling in forum Sencha Architect 3.x: Bugs
    Replies: 0
    Last Post: 27 Mar 2015, 5:33 AM
  4. File reference still there in Application - Sencha Architect 3.1
    By jineeshmg in forum Sencha Architect 3.x: Q&A
    Replies: 2
    Last Post: 11 Aug 2014, 5:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •