473,796 Members | 2,570 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dojo + WCF) - Unable to retrieve selected value after overriding QueryReadStore’ s _fi

1 New Member
Hi,

I am using a Dijit.form.filt eringSelect to display values using the dojox.data.Quer yReadStore. But, after overriding _filterResponse () to format the data in a Dojo-parsable format, whatever value I select gets bypassed and the only value that gets selected is the the first one on the list. I am using the following code…please let me know if what I am missing here.

Thanks much in advance!
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.     <head>
  3.         <title>Autocomplete Test</title>
  4.         <style type="text/css">
  5.             @import "src/dijit/themes/tundra/tundra.css";
  6.             @import "src/dojo/resources/dojo.css";
  7.         </style>
  8.         <link rel="stylesheet" href="js/dojo/dijit/themes/tundra/tundra.css" />
  9.         <link rel="stylesheet" href="js/dojo/dojo/resources/dojo.css" />
  10.         <script type="text/javascript" src="js/dojo/dojo/dojo.js" djConfig="parseOnLoad:true, isDebug:true">
  11.         </script>
  12.         <script type="text/javascript" src="js/scripts.js">
  13.         </script>
  14.         <script type="text/javascript">
  15.             dojo.require("dojox.data.QueryReadStore");
  16.             dojo.require("dijit.form.FilteringSelect");
  17.         </script>
  18.         <script type="text/javascript">
  19.  
  20.             dojo.addOnLoad(function(){
  21.                 var countryStore = new dojox.data.QueryReadStore({
  22.                     url: "http://localhost/url/",
  23.                     jsId: "countryStore"
  24.                 });
  25.  
  26.                // for (var i in countryStore) 
  27.                    // alert(i.toString());
  28.  
  29.                 countryStore._filterResponse = function(data){
  30.                     return {
  31.                         identifier: "Country",
  32.                         items: data
  33.                     }
  34.                 };
  35.  
  36.                 var co = new dijit.form.FilteringSelect({
  37.                     name: "Countries",
  38.                     autocomplete: false,
  39.                     searchAttr: "Country",
  40.                     store: countryStore
  41.                 }, "fsPlaceHolder");
  42.             });
  43.  
  44.         </script>
  45.     </head>
  46.     <body class="tundra">
  47.         Choose Country: 
  48.         <div id="fsPlaceHolder">
  49.         </div>
  50.     </body>
  51. </html>
Sep 2 '09 #1
1 3320
acoder
16,027 Recognized Expert Moderator MVP
Since I don't think anyone here uses Dojo, all I can offer you is this link.
Sep 5 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3166
by: Joey | last post by:
Hi There, I am trying to get the selected value of a listbox when I click a button, everything works ok and I can bind the list and when I have a basic page and click a button to invoke a sub it works fine, but when I try to place it in the sub I want to use it give me an eror saying that the "Object reference not set to an instance of an object." I can't understand why it works in a small sub in the same class but then when I try to use...
2
5431
by: Rob | last post by:
Hi all, I've got multiple sets of radio button that are dynamically created in code and populated by a database query. The query returns about 20 recordsets with 3 radio buttons per recordset and I want to be able to retrieve the selected value from each of the sets of radio buttons.The names of each group of radio buttons is set by the database and I don't know how to retrieve the values because I don't know the names of these radio...
6
5398
by: Jenna Alten | last post by:
I have a datagrid with a template column that contains a dropdown list. I currently fill and display the dropdown list on the page load. This is working correctly. I am NOT using an Edit Column. I am receiving errors when trying to set the selected value of the dropdown within the ItemDataBound() subroutine. Below is the code I am using. I hope someone can tell me if this is possible. '''HTML''' <asp:datagrid id="dgAssignments"...
1
2400
by: prashu | last post by:
how to retrieve a value selected in a drop down list box using jsp
3
1540
by: eshwaramoorthy | last post by:
Hi to all, I have one gridview with checkboxes which contains values of type integer(empid) and string(name) and if i checked it, those respective values must be displayed in other gridview.pls hlp me to do so.
21
2906
by: giandeo | last post by:
Hello Experts. Is it possible to retrieve the value from a populated pull down menu from a database and then use that value to access the same database to get the related fields. Example: Database name: sp Table: importer Field names: imp_code, imp_name, imp_address, imp_tel
1
2028
by: VanZandt | last post by:
how do I get a cell value for selected qty? Please help!!! below is the code. Thanks, <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml">
1
2428
by: Neerav shah | last post by:
How to retrieve selected value of dropdownlist filled from datasource in asp.net? Dim str1 As String = "SELECT UserName FROM Login WHERE Category = 'Property'" Dim cmd1 As New SqlCommand(str1, conn) Dim myreader1 As SqlDataReader conn.Open() myreader1 = cmd1.ExecuteReader()
0
1305
by: Gurpreet Singhh | last post by:
How to focus dojo slider to a particular value (say 2.5 )on the slider and then disabling dojo slider so that value not changes on clicking on the dojo slider?ie i want to focus dojo slider to a particular value and then make it disable. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html dir="ltr"> <head> <style type="text/css"> body,...
0
9684
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10182
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9055
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7552
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6793
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5445
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.