<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DataGrid Error - 304 Not Modified in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284265#M26212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the fact that results are being returned, but you are not able to draw associated graphics is a clue that things are going wrong in your showResults callback function.&amp;nbsp; have you tried setting a breakpoint and stepping through that code to interrogate the values stored in each variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i took a look at the &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.7/dojo/map.html"&gt;dojo documentation&lt;/A&gt;&lt;SPAN&gt; and it seems that you can no longer use the syntax included in the code you attached starting at Dojo version 1.7.&amp;nbsp; since we migrated to this underlying version of Dojo starting with &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/migration_30.htm"&gt;version 3.0&lt;/A&gt;&lt;SPAN&gt; of the Esri JavaScript API, is it possible that you are referencing a 3.x version in your production app, but not in your simplified sample?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2012 15:24:44 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2012-11-06T15:24:44Z</dc:date>
    <item>
      <title>DataGrid Error - 304 Not Modified</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284264#M26211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting a error with dojox.grid.DataGrid&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a test application that I used to get the code how I wanted it, it worked. I then switched the code to my full application and it no longer works. When I do the search in my full app it does the search and returns the results (that I can see in firebug) however, the grid is not populated and the graphic is not returned on the map. Below is what firebug is showing me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19055[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And below is the code I am using to perform the search:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function doFind() { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Set the search text to the value in the box &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.searchText = dojo.byId("parcel").value; &amp;nbsp;&amp;nbsp;&amp;nbsp; //grid.showMessage("Loading..."); //Shows the Loading Message until search results are returned. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findTask.execute(findParams,showResults); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function showResults(results) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This function works with an array of FindResult that the task returns &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([98,194,204]), 2), new dojo.Color([98,194,204,0.5]));&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //create array of attributes &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var items = dojo.map(results,function(result){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = result.feature; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(symbol); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result.feature.attributes; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create data object to be used in store &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var data = { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifier: "Parcel Identification Number",&amp;nbsp; //This field needs to have unique values. USES THE ALIAS!!! &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label: "PARCELID", //Name field for display. Not pertinent to a grid but may be used elsewhere. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; items: items &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create data store and bind to grid. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; store = new dojo.data.ItemFileReadStore({ data:data }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var grid = dijit.byId('grid'); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid.setStore(store);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Zoom back to the initial map extent &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(startExtent);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Zoom to the parcel when the user clicks a row &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function onRowClickHandler(evt){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var clickedTaxLotId = grid.getItem(evt.rowIndex).PARCELID; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedTaxLot;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(map.graphics.graphics,function(graphic){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((graphic.attributes) &amp;amp;&amp;amp; graphic.attributes.PARCELID === clickedTaxLotId){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectedTaxLot = graphic; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var taxLotExtent = selectedTaxLot.geometry.getExtent(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(taxLotExtent); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are other parts of the code obviously, not sure what will be relevant to find the answer/error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 11:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284264#M26211</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2012-11-06T11:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid Error - 304 Not Modified</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284265#M26212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the fact that results are being returned, but you are not able to draw associated graphics is a clue that things are going wrong in your showResults callback function.&amp;nbsp; have you tried setting a breakpoint and stepping through that code to interrogate the values stored in each variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i took a look at the &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.7/dojo/map.html"&gt;dojo documentation&lt;/A&gt;&lt;SPAN&gt; and it seems that you can no longer use the syntax included in the code you attached starting at Dojo version 1.7.&amp;nbsp; since we migrated to this underlying version of Dojo starting with &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/migration_30.htm"&gt;version 3.0&lt;/A&gt;&lt;SPAN&gt; of the Esri JavaScript API, is it possible that you are referencing a 3.x version in your production app, but not in your simplified sample?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284265#M26212</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-11-06T15:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid Error - 304 Not Modified</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284266#M26213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i think i spoke&amp;nbsp; too soon.&amp;nbsp; it appears the code you posted is still working in our 3.2 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/find_map_datagrid.html" rel="nofollow" target="_blank"&gt;sample&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; i'd still recommend stepping through the showResults function though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:31:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284266#M26213</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-11-06T15:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid Error - 304 Not Modified</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284267#M26214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;EDIT**&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Turns out I had two showResults functions. Deleted one, and now the results return. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm enrolled in the Building Web Applications Using ArcGIS API for JavaScript class this Thurs and Fri so hopefully I'll learn more about how to test and implement this stuff! Until then, I'm going to continue beating my head against the desk.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 17:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-error-304-not-modified/m-p/284267#M26214</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2012-11-06T17:02:21Z</dc:date>
    </item>
  </channel>
</rss>

