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 8866239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:44:36+00:00 2026-06-14T16:44:36+00:00

I have an ExtJS4 application in which one controller (ControllerA) is loading another (ControllerB).

  • 0

I have an ExtJS4 application in which one controller (ControllerA) is loading another (ControllerB). Controller A has some user input that I need to set in ControllerB so that when ControllerB loads pulldowns it can by default jump those pulldowns to the correct value.

I can pass the values fine from ControllerA:

itemClick: function itemClick(distributor, product) {
  var ctrlr = this.getController('Internal.controller.Popup');
  var win = ctrlr.openWin(distributor, product);
  ctrl.init();
}

The openwin function gets the values, I am just not sure how in that function I can save these values so that other functions in ControllerB can check if they exist and if so set the comboboxes appropriately ex:

openWin: function openWin(distributor, product) {
  var win = Ext.create('Ext.window.Window', {
    ...
  });
  // Somehow set distributor and product
  return win;
}
loadDistributorBox: function loadDistributorBox(str) {
  //Listener for Ajax load of combobox values
  var combobox = Ext.ComponentQuery.query('combobox')[0];
  var items = str.getRange();
  if (isset(distributor)) {
    // Move the pulldown to the item that matches
  } else {
    // Show the default first value
  }
}
  • 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-06-14T16:44:38+00:00Added an answer on June 14, 2026 at 4:44 pm

    First

    Init the controller before you call any other function.

    itemClick: function itemClick(distributor, product) {
      var ctrlr = this.getController('Internal.controller.Popup');
      ctrl.init();
      var win = ctrlr.openWin(distributor, product);
    }
    

    Second

    Check if you have the arguments and set them. For that you can use the setValues methods of the baseform

    openWin: function openWin(distributor, product) {
      var win = Ext.create('Ext.window.Window', {
        ...
      });
      var form = win.down('form').getForm();
          setObj = {};
      if (distributor) {
         setObj['DistributorFieldName'] = distributor;
      }
    
      if (product) {
         setObj['ProductFieldName'] = product;
      }
      // set the values
      form.setValue(setObj );
    
      return win;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ExtJS application which is invoked with some query string parameters. I
I am using ExtJs4.I have a form in my web application in which there
I have an intranet web application which uses iframes. The outer web-page has a
I have an ExtJS application that needs to display an html document within a
I have a ExtJs application. When user needs to view PDF report generated on
I have an ExtJS Viewport with a container that has the border layout and
I have implemented a Web - Application which features a GridPanel which can be
I have a JavaScript application which opens an ExtJS Window, containing an ExtJS TabPanel,
I have developed a web application using ExtJs4.0.7. The application is working fine in
I'm facing a problem using ExtJS4. My application has a tree containing a string

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.