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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:07:33+00:00 2026-05-28T05:07:33+00:00

I have an MVC app in Extjs 4 which has a View (extending Ext.panel.Panel

  • 0

I have an MVC app in Extjs 4 which has a View (extending Ext.panel.Panel) that contains dockedItems:

            dockedItems: [{
            dock: 'top',
            xtype: 'toolbar',
            items: [{
                text: 'Check Related Site',
                action: 'viewinrelatedsite',
            }, //...

I’m picking up the action on this button over in the control function in my Controller:

    init: function() {
    this.control({
        'statusupdateform button[action=viewinrelatedsite]': {
            click: this.viewInrelatedSite
        }, //...

Then of course I have a function in the same Controller which handles the button. I’m using a template in the View, and I have a formatter (also in the View) which tests for whether the field I need is available (if (!myField)...), which I could use to enable the button. That part works fine.

What I’m stuck on is how to pass the info about the presence of the field var from the View to the Controller such that the button can be enabled/disabled, and how to pass the contents of this field variable as well.

Thanks very much for any advice!

  • 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-28T05:07:34+00:00Added an answer on May 28, 2026 at 5:07 am

    @Matt,

    You can have a public property inside your view or a public method inside the view which the controller can call on the view reference to inspect/pass the variable value.

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

Sidebar

Related Questions

I have an MVC 3 web app that has an Action which I need
I have an ASP.NET MVC app that opens a Request view in a new
I have an MVC app which has its routes defined with the final route
I have an MVC app that has Controller that takes a IDomainService . The
I have MVC 1.0 app on VS2008. I have webpage that has a search
I have a MVC app and using JQuery. I have anchor that I setup
I have an MVC app that does a lot of work with jQuery ajax
I have an asp.net mvc app running on a local iis website that is
I have an asp.net mvc app that is built to run as standard web
Assume I have an ASP.NET MVC app that's not doing anything too fancy (no

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.