after generating a Workspace using Sencha Cmd and create Two different app, i just want to Run the first app and then after clicking a button,it calls the second app :) Like A main app calling another sub-app is there a way to do it ? thx for your help
An Extjs App Calling another Extjs APP
4.8k Views Asked by Hachicha Moktar At
2
There are 2 best solutions below
0
dbrin
On
This topic has been brought up before. Check out suggestions here: Using more than one controller with ExtJS 4 MVC
Related Questions in MODEL-VIEW-CONTROLLER
- Getting POST 500 Internal server error while sending request via ajax call
- ASP.NET Core - Change Url of Product Details when select Color
- How to execute functions from different classes in a Model-View-Controller (MVC) architecture pattern?
- How to reroute role based user after login
- Error Connecting to a remote Windows MYSQL Windows server using Windows ASP.NET
- InvalidOperationException: Unable to resolve service for type 'Microsoft.Identity.Abstractions.IDownstreamApi'
- Create REST API Endpoints from an Existing PHP CodeIgniter Project
- Issue with Accessing Endpoints after Separating Controller Classes in Spring Boot
- C# MVC net.7 Application goes in time out
- In my .net core 8 mvc c# project, when I click on the category, the data comes as null listing the products in the relevant category
- Why do I get 500 error on Azure after using ViewBag?
- The jquery script function is not triggering in _layout.cshtml page while child page is loaded in ajax
- How to structure frontend on a Vanilla JS app on Symfony
- About Flutter MVVM Architecture with GetX
- How to join tables from multiple dbcontexts in one ViewModel?
Related Questions in EXTJS
- how to define Ext.elevateFunction
- `ariaAttributes` config is not working in ExtJS modern toolkit
- Ext JS Issue With Window.id when more than 1 instance of Ext sandbox version is bundled
- sencha extjs remove approach and use .sync() is not calling API
- Extjs - get SVG image element by ID inside qtip
- Use custom icon in Pimcore menu item
- Extjs 7.0 Classic Mymask Message is loading and will disappear but only one user is not closing when screen renders
- ExtJs - what install on server
- Problem with building my app with ExtJS CE
- Ext.js Cannot read properties of undefined (reading 'controller')
- Get class name by xtype
- ExtJs: find a record, edit and post changes
- Is it possible to use custom variables in an extjs store?
- How to add an authentication header in sencha architect, using the store option?
- Ext JS: vulnerabilities with CSP headers
Related Questions in EXTJS4.1
- how to define Ext.elevateFunction
- Extjs - get SVG image element by ID inside qtip
- ExtJs - delay in rendering column list in table when adding dropdown from column list
- How to reset pagination in datastore-Extjs
- ExtJS - Text Treeview Align
- Extjs Preserve scrollbar position on reload
- EXTJS Piecharts are not showing legend for dynamic data
- How to control tab button cursor pointing in horizontal direction
- EXTJS 4.2.1 Legend not fitting completely in panel
- Extjs: Remove child tags from tagfield when parent tag is removed
- Extjs Iframe - displays "cannot connect error message"
- Extjs iframe - Embedding content from another page into an extjs application
- Setting the pageSize of Extjs bufferedstore based on a config file
- Searching the value does not load the view with searched data [Shopware 5]
- How to initialize the individual tabs data on click on the Tab menu in TabPanel in ExtJs?
Related Questions in SENCHA-COMMAND
- Multiple Sencha CMD on Mac
- Shouldn't skip.slice=1 still generate a css file in Sencha CMD 6.1.176
- Sencha CMD, upgrading from 6.0 to 6.1 IndexOutOfBoundsException
- Sencha Touch , Phonegap - App Icon not working
- Visual Studio .NET publish - How to run a command before "Publish" that generates code
- sencha touch build native to create apk file
- UnsupportedClassVersionError in sencha-app-refresh & sencha-app-build
- Ext 4.2, Sencha Cmd 3 + deftjs - Can't build a working applicaton
- Sencha-Touch to Android - TouchWiz issue
- Sencha Cmd 3.1.2 ignoring isIconPrecomposed property
- How to build only css files from sass using sencha command?
- Cannot build Sencha Touch 2.1 app with Sencha Cmd 3.1.1.274
- Sencha Touch Packaging to Android Error
- An Extjs App Calling another Extjs APP
- Installing Sencha Command problems with osx and zsh
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can develop separated modules that can work together with no problems. Both concepts are no in conflict at all.
Let me share my experience here. When we started in our current project (from the scratch) there were other two teams developing another two applications which after some time we should 'integrate' them in just one big app. You don´t have to be a genius to predict the ending result, right? Things got worse when we heard customer wanted more parallel work (more teams developing modules).
The first idea was using iframes but the PoC demonstrated it was a bad idea so, we stopped the machine and started designing a pluggable architecture. We did it well because currently we are able to load modules (we called it plugins) developed in an isolated way easily. For example, take a look at how our folder structure looks like:
And this is the metadata where we set the modules we want to load:
This has a lot of advantages:
Of course, this is not something extjs provides out of the box but you can do it because it worth.
So, short answer: your problem is not the application´s size but its struture instead. Follow the recommended MVC pattern with a custom folder structure as we do.
Update:
About the plugins metadata. The application main controller has only one responsability: load the plugins. This is done with this code:
And every plugin controller acts as a dispatcher, this is, there is a history component listening the url (in the address bar) and when it changes, iterates plugin by plugin asking for handle the url. The process ends when a plugin is able to handle the requested url.
This is the dispatcher configuration for the 'operations' plugins:
And This is the navigate method of the history class code:
One important point is plugins only have a reference to one shared component: the center area where they are rendered:
This reference is inherited by all the plugin controllers which are subclasses of a 'AbstractPluginController'. This is important because is the only thing modules know about their hoster. And this is why we can develop in parallel.
About the AbstractPluginController, this same class has some core functionalities useful for all the plugin controllers, for example, in order to load all theirs controllers/views/models when are required and not before that, this class implements the dynamic controllers loading as follow:
This allows us to specify the list of subcontrollers (because the main controllers is just an initializer and dispatch) the module has, and allows us to create them on demand.
Summarizing: I think the main points are these:
I hope this gives you an idea. There are lots of details an some tricks to integrate them but basically, what i want to show here is a modular application can be (or should be) developed with extjs with just a little of extra effort.