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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:58:34+00:00 2026-05-11T02:58:34+00:00

I wish to declare a new dojo class inheriting from an existing dojo class,

  • 0

I wish to declare a new dojo class inheriting from an existing dojo class, but with my own choice of default values for the class’s properties. (The user can still override those values.)

I am declaring my own version of the dijit.form.FilteringSelect such that:

  • the hasDownArrow property defaults to false (rather than the standard true) and
  • there’s an extra possible property storeUrl which allows me to connect the FilteringSelect to the corresponding QueryReadStore.

Here’s what I did, without success:

dojo.provide('my.FilteringSelect'); dojo.require('dijit.form.FilteringSelect'); dojo.require('dojox.data.QueryReadStore'); dojo.declare(    'my.FilteringSelect',    [       dijit.form.FilteringSelect,  /* base superclass */       { hasDownArrow:false, storeUrl:'/' }  /* mixin */    ],    {       constructor: function(params, srcNodeRef){          console.debug('Constructing my.FilteringSelect with storeUrl '                         + this.storeUrl);          this.store = new dojox.data.QueryReadStore({url:this.storeUrl});       }    } ); 

Say, I try to generate declaratively in the HTML such a version of my.FilteringSelect:

<input type='text' id='birthplace' name='birthplace'        promptMessage='Start typing, and choose among the suggestions'        storeUrl='/query/regions'        dojoType='my.FilteringSelect' /> 

This will indeed create a FilteringSelect with the desired promptMessage (which means that the superclass is properly getting the params), but hasDownArrow is true (contrary to my default mixin) and the store is null (and the Firebug console reports that storeUrl is ‘undefined‘).

What am I doing wrong?

  • 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. 2026-05-11T02:58:34+00:00Added an answer on May 11, 2026 at 2:58 am

    Oops! I really had things on their head. I found the right way around. The following works:

    dojo.provide('my.FilteringSelect'); dojo.require('dijit.form.FilteringSelect'); dojo.require('dojox.data.QueryReadStore'); dojo.declare(    'my.FilteringSelect',    dijit.form.FilteringSelect,    {       hasDownArrow : false,       storeUrl : '/',       constructor: function(params, srcNodeRef){          dojo.mixin(this, params);          console.debug('Constructing my.FilteringSelect with storeUrl '                         + this.storeUrl);          this.store = new dojox.data.QueryReadStore({url:this.storeUrl});       }    } ); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish HTML could do something semantically equivalent to this; <dl class=main-list> <definitionitem> <dt>Some
I wish to iterate over a set but the contents of the set will
I wish to capture data from http://www.kitco.com/texten/texten.html : <html> <head> <title>Text Only Market Page</title>
I wish to do something like this: DECLARE @IgnoreNulls = 1; SELECT Col1, Col2
I wish to be able to declare a Data Snap method with the following
For object instances we can have their class declare some protocol conformance as in:
I have a vector containing integer values, which I wish to sum. However, it's
I wish to declare and initialize a 1D managed array of items. If it
I have an array named Floors in class A, it contains values something like
It seems to me there are other functional dependencies you may wish to declare

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.