Yes.. I am using v1.2. I did a cfdump and the column headers are all uppercase - how does the format of the returned data differ?
Main Topics
Browse All TopicsI am trying to create my first grid panel in Ext js - I have a ColdFusion 8 program mwCounties.cfm a ColdFusion 8 component - ext.cfc and a Javascript file - mwCounties.js.
I am using Firefox on a Windows Vista machine. Everything appears to run fine but the grid panel renders without the data. I have attached a picture of the firefox showing the grid and the data is shown below in the firbug console.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
hmm... i have exactly your code in a test app that works just fine - the grid populates and all...
what i do not like is that in the image you posted there are 2 or 3 blank lines before the returned data in firebug console... there sholdn't really be any whitespace prepended to the json object returned by cfc call - that would break json.
is something adding whitespace to the cfc response? whitespace in Application.cfm is a usual suspect...
Azadi
i used the same example as in cutter's cfqueryreader, just renamed the query columns to match yours and used your code to create data store and grid. well, the data returned is, of course, different.
the only thing i had to change in your code for it to work was remove the root:'DATA' bit.
can you post your mwCounties.js file as you have it now, just to make sure no errors crawled into it while you were trying different things?
add a .txt extension to the file and attach it here.
Azadi
nope, all good...
i have adjusted my test code even more to represent your code - it's pretty much identical now except for cfc name.
so... i am at a loss as to why yours does not work...
your data IS being returned from cfc, as seen in your image, so no problem with that.
your grid is rendered on screen - so that's working
the data is not going into the grid, though...
which cf version and update level are you running? that's probably the last thing i can think of for tonight...
of course, there may still be something - not immediately visible to the naked eye - wrong with the data returned from your cfc...
btw, are you using Application.cfm or .cfc? if .cfc: do you have onRequest() method in it? do you onRequestStart()/onRequest
if .cfm: do you also use onRequestStart.cfm and/or onRequestEnd.cfm?
Azadi
PS:
with the test code i posted you should see output in firebug something like this:
["STATE", "COUNTY", "REGIONID", "REGION", "REGIONNAME", "FIPS"]
["CA", "ALAMEDA",2, "HCNCC", "Hospital Council of North and Central California", 6001.0]
{ COLUMNS=[X] DATA=[Y] }
if you do not - we have a problem with data...
Azadi
>> Here are the test results
thanks. so your data is all-ok - proper json object.
>> why don't you post back your working mwcounties.js file and I will make sure I don't have a typo
well, my mwcounties.js is an exact copy of yours! the one and only difference is the url to the cfc.
>> What is the difference between CFJsonReader and CFQueryReader? Why would I want to use one over the other?
i am not sure - i do not recall ever using cfjsonreader... from the posts on extjs forums it looks like cfqueryreader is just an extended cfjsonreader and allows you to work with plain cf query returned from cfc instead of having to use queryconvertforgrid() on it first...
did you try returning a query converted for grid from your cfc with cfqueryreader, btw?
still extremely strange that it works in my tests by not in yours... wonder if it has anything to do with win2008 server...
Azadi
>> Do you think it could be SQL 2008?
no, i know it is not - i tested it.
but guess what?
i also found out that in my tests i was using ext js 3.0.0, while you, i am sure, were using the latest ver 3.0.3.
and - yes you guessed it - cfqueryreader does not yet work with ver 3.0.3. so no wonder you were having problems!
strange thing, though - i was sure i was using ver 3.0.3. in fact, the downloaded extjs package i used is named 3.0.3, but the files inside it are ver 3.0.0... go figure!
Azadi
Steve has updated cfqueryreader to work with ext js 3.0.3. you can download the latest version form http://cfqueryreader.riafo
Azadi
Business Accounts
Answer for Membership
by: azadisaryevPosted on 2009-11-04 at 11:46:25ID: 25743119
are you using cfqueryreader ver 1.2? 1.1 had issues with loading data store... g.com/inde x.cfm/2009 /7/29/ CFQu eryReader- v12--Updat e-Supporti ng-ExtJS-3 x
http://blog.cutterscrossin
hmm... and Cutter's demo does show data returned in a different format than yours...
Azadi