[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

ext 3 data grid renders without data

Asked by twalker916 in JavaScript Frameworks, JSON, ColdFusion Application Server

Tags: Ext js; ColdFusion; JavaScript

I 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.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
the cfm code (mwCounties.cfm)...
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>MembwerWeb Counties</title>
		<meta name="author" content="Stephen G. 'Cutter' Blades" />
		<script language="javascript" type="text/javascript" src="../ext/ext-base-debug.js"></script>
		<script language="javascript" type="text/javascript" src="../ext/ext-all-debug.js"></script>
		<script language="javascript" type="text/javascript" src="../ext/custom/CFQueryReader.js"></script>
		<script language="javascript" type="text/javascript" src="../ext/lrnext3/mwCounties.js"></script>
		<link rel="stylesheet" type="text/css" href="../ext/css/ext-all.css" />
	</head>
	<body><!-- Intentional comment. Leave in place -->
		<div id="mainContent">
			<div id="counties" style="margin:25px;"></div>
		</div>
	</body>
</html>
 
the JavaScript code (mwCounties.js)...
/*
 * Data Store from custom reader
 */
Ext.onReady(function(){
	var recordModel = [
		{name:'STATE',mapping:'STATE'},
		{name:'COUNTY',mapping:'COUNTY'},
		{name:'REGIONID',mapping:'REGIONID',type:'int'},
		{name:'REGION',mapping:'REGION'},
		{name:'REGIONNAME',mapping:'REGIONNAME'},
		{name:'FIPS',mapping:'FIPS'}
	];
    var countyReader = new Ext.data.CFQueryReader({id:'STATE',root:'DATA'},recordModel);
	var countyStore = new Ext.data.Store({
		url:'cfc/ext.cfc',
		baseParams:{method: 'getCounties',returnFormat: 'JSON',queryFormat: 'column'},
        reader: countyReader
	});	
	countyStore.load();
	var grid = new Ext.grid.GridPanel({
		renderTo:'counties',
        frame:true,
		title:'Memberweb Counties',
		width:500,
		height:500,
        store: countyStore,
		columns: [
            {header: "State", dataIndex: 'STATE'},
            {header: "County", dataIndex: 'COUNTY'},
            {header: "Region ID", dataIndex: 'REGIONID'},
            {header: "Region", dataIndex: 'REGION'},
            {header: "Region Name", dataIndex: 'REGIONNAME'},
            {header: "FIPS", dataIndex: 'FIPS'}
		]
	});
});
 
the CFC code (ext.cfc)...
<cfcomponent output="false">
	<!---
	 /	METHOD: counties
	 /
	 /	@param	regionid:numeric
	 /	@return	output:query
	 --->
	<cffunction name="getCounties" access="remote" output="false" returntype="query">
		<cfset var q = "" />
		<cftry>
			<cfquery name="q" datasource="memberWebdb">
				select 
            		state
            		,county
            		,tc.regionid
            		,region
            		,regionname
            		,fips 
            	from 
            		tcounty tc 
            		inner join tregion tr on tr.regionid=tc.regionid 
            	order by 
            		state
            		,county
               
			</cfquery> 
			<cfcatch type="database">
				<!--- Place Error Handling Here --->
			</cfcatch>
		</cftry>
		<cfreturn q />
	</cffunction>
</cfcomponent>
Attachments:
 
Picture of data grid and data
 
[+][-]11/05/09 12:58 PM, ID: 25753935Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: JavaScript Frameworks, JSON, ColdFusion Application Server
Tags: Ext js; ColdFusion; JavaScript
Sign Up Now!
Solution Provided By: azadisaryev
Participating Experts: 1
Solution Grade: A
 
[+][-]11/04/09 11:46 AM, ID: 25743119Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 12:39 PM, ID: 25743650Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 11:26 PM, ID: 25747371Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 09:13 AM, ID: 25751660Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 10:02 AM, ID: 25752114Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 10:24 AM, ID: 25752316Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 10:37 AM, ID: 25752448Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 10:48 AM, ID: 25752549Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 11:38 AM, ID: 25753079Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 11:56 AM, ID: 25753256Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 12:04 PM, ID: 25753344Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 12:05 PM, ID: 25753357Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 12:12 PM, ID: 25753428Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 12:14 PM, ID: 25753448Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 12:17 PM, ID: 25753476Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 12:19 PM, ID: 25753502Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 12:22 PM, ID: 25753534Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 12:27 PM, ID: 25753603Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 12:28 PM, ID: 25753612Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 12:30 PM, ID: 25753640Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 12:32 PM, ID: 25753663Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 12:32 PM, ID: 25753668Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 12:35 PM, ID: 25753708Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 12:45 PM, ID: 25753809Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 01:36 PM, ID: 25754306Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/06/09 08:09 AM, ID: 25760358Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625