Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6009399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:57:54+00:00 2026-05-23T01:57:54+00:00

In one file, I am creating a tab panel with two tabs. I am

  • 0

In one file, I am creating a tab panel with two tabs. I am trying to register the component for use in a separate file. Consider the following:

Ext.ns('DVI');

var backtestTab = {
    xtype: 'groupingstore'
}

var intradayTab = {
    xtype: 'groupingstore'
}

DVI.DviDashboard = new Ext.TabPanel({
    activeTab: 0,
    items: [backtestTab, intradayTab]
});

Ext.reg('dviDashboard', DVI.DviDashboard);

Assume that this page properly populates the tabs with the grouping stores. In the page that calls this script, the code is as follows:

var dashboard = {
    xtype: 'tabpanel',
    id: 'port_dash-panel',
    activeTab: 0,
    items:[{
        title: 'Dashboard',
        xtype: 'dviDashboard'
    }]
 };

Which returns the following error:

b[d.xtype || e] is not a constructor

Upon researching, the above error indicates the component cannot be found or is not defined.

Note however, the below code does work and render the tabpanel:

var dashboard = {
    xtype: 'tabpanel',
    id: 'port_dash-panel',
    activeTab: 0,
    items:[DVI.DviDashboard]
 };

I’m only showing snipits. The dashboard tabpanel is rendered in a viewport.

I guess the first question is can I even register a component this way? And of course the second question is, why doesn’t this work? 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:57:54+00:00Added an answer on May 23, 2026 at 1:57 am

    You are trying to register an instantiated object which won’t work. Ext.reg normally takes components that were created by the Ext.extend method.

    DVI.DviDashboard = Ext.extend(Ext.TabPanel,{
        initComponent: function(){
    
        Ext.apply(this, {
            activeTab: 0,
            items: [backtestTab, intradayTab]
        });
    
        DVI.DviDashboard.superclass.initComponent.call(this)   
    }
    });
    
    Ext.reg('dviDashboard', DVI.DviDashboard);
    

    Here is an old but helpful link about writing classes in Ext 3.* :
    http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In one file, I have the following code: module( command ) local Commands =
I tried creating a pdf file out of another one(in my local drive) using
This is my problem; I'm creating tables from asset all are in one file
In a C# program, I am creating files. I want to delete one file
After adding records in the relative file , I am trying to update one
Just one file, not the entire directory. Thanks.
I have one file example1.cpp with the main function. This file must have #include
I have one file one.php <?php //just a php function doen't have to do
I have one file in my project, (the readme file,) which I would like
How do I turn one file with lots of classes to many files with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.