Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2010
    Posts
    74
    Vote Rating
    0
    interconcept is on a distinguished road

      0  

    Default Selecting components with Ext.ComponentQuery.query(), with dots in alias

    Selecting components with Ext.ComponentQuery.query(), with dots in alias


    Affected Version: ExtJS 4.0.2
    Browser: Firefox 5.

    Ext.ComponentQuery.query() does not work as expected (returns always zero items) when calling:

    Code:
    Ext.ComponentQuery.query('ns.Grid')
    the grid having the alias defined as widget.nt.Grid.

    In the API it is not written that the . is an invalid character in the alias, so this is a problem of the query() method.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,634
    Vote Rating
    435
    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


    This has already been reported. Suggested workaround for now is use something else.. I have been using '_'
    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.

  3. #3
    Sencha - Support Team mike.estes's Avatar
    Join Date
    Mar 2011
    Location
    Redwood Shores, CA
    Posts
    213
    Vote Rating
    2
    mike.estes is on a distinguished road

      0  

    Default


    we've got this issue fixed in ext-4.0.5 (EXTJSIV-2577), I've tagged this thread as fixed accordingly.

  4. #4
    Ext JS Premium Member
    Join Date
    Feb 2010
    Posts
    74
    Vote Rating
    0
    interconcept is on a distinguished road

      0  

    Default


    Quote Originally Posted by mike.estes View Post
    we've got this issue fixed in ext-4.0.5 (EXTJSIV-2577), I've tagged this thread as fixed accordingly.
    I use version 4.0.5 and it does NOT work.

    My Code:

    Ext.define('MyApp.ns.subns.Section', {
    extend: 'Ext.form.FieldSet',
    alias: 'widget.ns.subns.Section',

    initComponent: function() {
    var me = this;
    me.items = [{xtype: 'panel', title: 'Title'}]
    me.callParent(arguments);
    }
    });

    var f = Ext.create('MyApp.ns.subns.Section', {renderTo: Ext.getBody()});
    f.show();

    console.log( Ext.ComponentQuery.query('ns.subns.Section') );//logs an 0-length array
    console.log( Ext.versions.extjs.shortVersion );//logs 405

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    1
    Vote Rating
    0
    J_WulF_J is on a distinguished road

      0  

    Default


    I use 4.0.7. Still doesn't work

  6. #6
    Ext JS Premium Member
    Join Date
    Nov 2007
    Location
    New Hampshire/New England - USA
    Posts
    42
    Vote Rating
    0
    ThierryC is on a distinguished road

      0  

    Default Issue still exists with 4.1.1

    Issue still exists with 4.1.1