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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:21:45+00:00 2026-05-20T03:21:45+00:00

I have some problems getting the custom formated JSON data into a dijit.form.FilteringSelect. It

  • 0

I have some problems getting the custom formated JSON data into a dijit.form.FilteringSelect. It might be that this is the same for other types of dijit select boxes.


update:
One difference when using a FilteringSelect instead of a ComboBox is that validation errors
ar now shown on the element. All input is returning an “invalid value” tooltip.


Here is some sample JSON wich is returned from a database via PHP converted from
an result array:

{"animals":[
      {"gr_id":"1","gr_name":"Dog","gr_description":null},
      {"gr_id":"4","gr_name":"Cat","gr_description":null}]}

Here is the HTML code for displaying the combo box and defining the store:

<div dojoType="dojox.data.QueryReadStore" url="getAnimals.php" jsId="animalStore">
</div>
<select dojoType="dijit.form.FilteringSelect" store="animalStore" searchAttr="gr_name">
</select>

The search Attribute is processed correctly and the above response is sent back to the client, but the box remains empty.

I do not know how to map the custom JSON response to the label (value displayed as options and used for search : gr_name) and value (value returned on submit : gr_id) position of the dijit select box (FilteringSelect).

When I have been searching for examples, it always seems to work like magic, but I guess that is because they use a default structure for the json data. I can’t even confirm this, because the documentation is a bit scarse on those features.

  • 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-20T03:21:45+00:00Added an answer on May 20, 2026 at 3:21 am

    Just extend the QueryReadStore and change the implementation to match your backend. Have a look at the various stores under dojox/data (http://trac.dojotoolkit.org/browser/tags/release-1.5.0/dojox/data) for examples of how to do this.

    It’s hard to be more specific without knowing more about your backend. But if you look at the flickr store or any of the other stores which map to pre-existing non-dojo data sources you’ll get the idea.

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

Sidebar

Related Questions

I'm trying to build my first generic list and have run into some problems.
Looking for some direction here as I'm running into some migration problems. We have
I have some problems with Miktex installed on Windows Vista Business SP1/32 bit. I
I have some problems on a site with the concurrent access to a list.
I am very new to C and I have some problems learning about pointers.
I have been having some problems trying to get my PHP running. When I
I have only installed Ruby1.9 on my machine. Have some kind of problems with
I have just started learning Erlang and am trying out some Project Euler problems
Here's my problem - I have some code like this: <mx:Canvas width=300 height=300> <mx:Button
I discovered to have some problem to fully understand callbacks scoping when trying to

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.