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

  • Home
  • SEARCH
  • 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 6875735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:23:27+00:00 2026-05-27T04:23:27+00:00

In an MVC style Ext JS 4 application, assuming I have a single controller/view/store/model

  • 0

In an MVC style Ext JS 4 application, assuming I have a single controller/view/store/model and that loads up properly- for an example, let’s say this example is my code base.

My application loads up a view with a grid (list of Users), then when a row is clicked it opens and edit (User) view with a form.

Now, I want to add additional views to be displayed inside that form.

For example, I want to show a ‘last 10 logins’ (a list of activity records for the user) below the fields in the User form. I will have a separate view/controller/model/store for ‘ActivityLog’. So I need to create the ActivityLog List view/controller and place it inside my User view (it will also have it’s own code/logic to handle clicks on those records in it’s grid, etc.).

Is that the correct approach?

Would the User controller load the view/controller of ActivityLog and somehow place it in to the User edit view, or do I have config data directly inside the User edit view that loads it in ?

  • 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-27T04:23:28+00:00Added an answer on May 27, 2026 at 4:23 am

    Ok. Probably you can use something like this

    // Navigation controller

        Ext.define('App.controller.Navigation', {
            extend: 'Ext.app.Controller',
            models: [],
            stores: [],
            views: ['navigation.TabHost'],
            init: function() {
                 this.control({
                    'tabhost': {
                        'render': function(tabHost) {
                           // Grid panels are panels too. So It does not make any sense to use additional container.
                           tabHost.add(Ext.create('App.view.users.List'));
                           tabHost.add(Ext.create('App.view.activitylogs.List'));
                        }
                    }
            }
    });
    

    // Users controller

    Ext.define('App.controller.Users', {
        extend: 'Ext.app.Controller',
        models: [],
        stores: [],
        views: ['users.List'],
        init: function() {
             this.control({
                'userslist': {
                    'render': function(gridPanel) {
                       console.info('Im here');
                    }
                }
        }
    });
    

    // ActivityLog controller

    Ext.define('App.controller.ActivityLog', {
            extend: 'Ext.app.Controller',
            models: [],
            stores: [],
            views: ['activitylogs.List'],
            init: function() {
                 this.control({
                    'loglist': {
                        'render': function(gridPanel) {
                           console.info('Im here');
                        }
                    }
            }
        });
    

    // Also you should have tree view files

    // navigation.TabHost

    Ext.define('App.view.navigation.TabHost', {
        extend: 'Ext.tab.Panel',
        alias: 'widget.tabhost',
        initComponent: function() {
          // ......
        }
    });
    

    // users.List

     Ext.define('App.view.users.List', {
            extend: 'Ext.grid.Panel',
            alias: 'widget.userslist',
            initComponent: function() {
              // ......
            }
        });
    

    // activitylog.List

    Ext.define('App.view.activitylogs.List', {
        extend: 'Ext.grid.Panel',
        alias: 'widget.logslist',
        initComponent: function() {
          // ......
        }
    });
    

    Navigation controller will create widges and insert them to its tabhost.

    But ActivityLog and Users Controllers will manipulate their views.

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

Sidebar

Related Questions

In MVC/MVP style applications that have Controller/Presenter classes within the Client Application assembly and
I have an ASP.NET MVC web application that makes REST style web service calls
Are there any libraries that support JSTL style coding in an ASP MVC view?
All, I have a PHP5 application written with Zend Framework and MVC style. My
i have a simple sencha touch app in mvc style with one view in
I have a simple Ext JS 4 form inside a window (MVC style app).
In a Rob Conery-style ASP.NET MVC application, you typically have a repository: public class
I'm building a wizard-style application in ASP.NET MVC and is wondering if you have
Upon reviewing a bunch of MVC style web applications, I'm noticing that it's common
I'm migrating a Spring MVC controller to use the newer style annotations, and want

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.