Jonathan,I am not refreshing the grid after. It did not appear that I was having any refresh issues before migrating it over to my application. I am also not receiving any error messages. I just know that an empty array is being returned:{"objectIdFieldName":"OBJECTID","globalIdFieldName":"","features":[]} is being returned in Firebug. I have not tried a "Try/Catch" block. I'm new to Javascript, so I will try this out tonight.Thanks.Require Block: require([
"dojo/data/ObjectStore",
"esri/symbols/SimpleFillSymbol",
"esri/tasks/QueryTask",
"esri/tasks/query",
"dojo/_base/declare",
"dojo/number",
"dijit/registry",
"dojo/store/Memory",
"dgrid/OnDemandGrid",
"dgrid/Selection",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleMarkerSymbol",
"dojo/dom-construct",
"esri/map",
"esri/layers/FeatureLayer",
"esri/geometry/Extent",
"esri/InfoTemplate",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dijit/layout/TabContainer",
"esri/dijit/Legend",
"dojo/_base/array",
"dojo/parser",
"dijit/form/ToggleButton",
"dojo/dom-style",
"dojo/dom",
"esri/dijit/Scalebar",
"dojo/ready",
"dojo/on",
"dijit/form/DropDownButton",
"dojo/domReady!"
], function (
ObjectStore,
SimpleFillSymbol,
QueryTask,
Query,
declare,
dojoNum,
registry,
Memory,
Grid,
Selection,
SimpleLineSymbol,
SimpleMarkerSymbol,
domConstruct,
Map,
FeatureLayer,
Extent,
InfoTemplate,
BorderContainer,
ContentPane,
TabContainer,
Legend,
arrayUtils,
parser,
ToggleButton,
domStyle,
dom,
Scalebar,
ready,
on,
DropDownButton
)