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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:05:58+00:00 2026-06-13T19:05:58+00:00

I had some concepts problems here. I had to write a search window for

  • 0

I had some concepts problems here.

I had to write a search window for each of my tables. This windows will only vary in a combobox contents(name of fields to search for) and grid columns (result).

What´s the best approach in extjs:

  1. Write a base window and define the combo and grid columns in the children classes.
  2. Write a different class for each window?

Particularly I prefer the first option, but I´m stucking configure this properties from the child class.

  • 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-13T19:05:59+00:00Added an answer on June 13, 2026 at 7:05 pm

    The answer here will probably depend on the amount of reusable code vs. how much of it you need to customize.

    You could structure a base class that all others will extend if you can place 70-80% of the common reusable code there. Then each specific class will extend this base class and customize the rest. You can improve the easy of customization by writing a bunch of functions that are called from initComponent to build out your window. Then each subclass will overwrite just the functions that are necessary to distinguish it from the the base.

    If the amount of reusable code is much higher like 90%+ you might be better of writing a single class and then pass in individual config overrides during instantiation, like this:

    Ext.create('MySearchView', { title:'My Custom title', fieldSelector:myComboConfig});
    

    Also, browse through example code, you might find interesting cases of reuse.

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

Sidebar

Related Questions

we had some demands here in my job that include working with asp. We
I had some experience of android but know almost nothing of GCC Makefile. Here
I had some problems with my subversion server and i had to restore it
I had some code that constructed an object: function gridObjConst(id, itemName, itemPrice, itemListPrice, width,
I had some issues with XPTemplate vim plugin. Sometimes it yields with errors, and
I had some code that ran commands through Runtime.getRuntime.exec(String) , and it worked on
I had some questions regarding the structure and behavior of a model, using UML,
I had some decryption code (using wincrypt.h ) that lived within my FileReader.cpp class.
I had some troubles implementing Lawler's algorithm but thanks to SO and a bounty
I had some issues with Lucene as it always had a constant score and

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.