Hybrid View

  1. #1
    Ext User
    Join Date
    Dec 2010
    Posts
    2
    Vote Rating
    0
    ashish01 is on a distinguished road

      0  

    Default Ext.ComponentQuery.query() not working

    Ext.ComponentQuery.query() not working


    Hi all,

    Followed the documentation for the class and I tried to use this method to lookup a bunch of checkboxes ... Ext.ComponentQuery.query('#container .checkboxfield') .. fails on line 5935 within debug-w-comments file. -

    // no root, use all Components in the document
    if (!root) {
    workingItems = Ext.ComponentMgr.all.items.slice();
    }
    Error - Uncaught TypeError: Cannot call method 'slice' of undefined

    I reverted to a different way of calling (specifying the root) to avoid executing the above codepath.

    Seems like this is a bug? What am I doing wrong?

    Thanks!

  2. #2
    Sencha User gcallaghan's Avatar
    Join Date
    Apr 2010
    Location
    Cupertino, Ca
    Posts
    247
    Vote Rating
    0
    gcallaghan is on a distinguished road

      0  

    Default


    I got the same behavior. It does appear to be a bug. Ext.ComponentMgr is storing the reference to managed components inside map, not inside a MixedCollection. Therefore, the property items of all does not exist.

  3. #3
    Sencha - Ext JS Dev Team
    Join Date
    Jun 2011
    Location
    Boston
    Posts
    81
    Vote Rating
    4
    germanicus is on a distinguished road

      0  

    Default


    I submitted a bug against this. Thanks for reporting it.

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    9
    Vote Rating
    0
    sorin7486 is on a distinguished road

      0  

    Default


    Was this solved? I get the exact same error a year later in some ST1 code. Also is there a public bug tracker?

Similar Threads

  1. JSonStore: dynamic query not working
    By randomuser01 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 15 Dec 2008, 10:46 PM
  2. .query on Store not working
    By jareddd in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 20 Oct 2008, 12:26 PM
  3. Query Store Like an SQL Query
    By rakesh in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 4 Aug 2007, 6:31 AM

Thread Participants: 3

Tags for this Thread

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