Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #11
    Sencha User
    Join Date
    Mar 2009
    Posts
    227
    Vote Rating
    0
    SchattenMann is an unknown quantity at this point

      0  

    Default


    ok i believe i've found the issue.

    i have to define the itemId only when calling the component not when i'm creating it.

    meaning:

    Code:
    Ext.define('PrimaveraWebUI.view.EditorCabecDoc', {     extend: 'Ext.form.Panel',     alias: 'widget.editorcabecdoc',      config: {         items: [],         listeners: [             {                 fn: 'onCabecDocActivate',                 event: 'activate'             }         ]     },      onCabecDocActivate: function(container, newActiveItem, oldActiveItem, options) {         console.debug('nice');     }  });
    and then

    Code:
    ...
                {
                    xtype: 'editorcabecdoc',
                    itemId: 'CabecDoc',
                    title: 'CabeƧalho'
                },
                {
                    xtype: 'editorlinhasdoc',
                    itemId: 'LinhasDoc',
                    title: 'Linhas'
                }
    ...
    does that make sense?

  2. #12
    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


    Your code will look for any child items with the itemId of 'test' but you have no child items with an itemId of 'test'. Your tab panel does but not any child items.
    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. #13
    Sencha User
    Join Date
    Mar 2009
    Posts
    227
    Vote Rating
    0
    SchattenMann is an unknown quantity at this point

      0  

    Default


    ic...noob problem

    thank you for your time mate