<?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: Dojo Grid Selection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520398#M48496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're using the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;grid.on(".field-OBJECTID:click", selectSite);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, I'm using the following code to highlight a graphic when the user clicks on a row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;diveGrid.on(".dgrid-row:click", function (evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedGrid = registry.byId("diveGrid");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var row = selectedGrid.row(evt);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = returnGraphicFromLayer(row.data.OBJECTID, myGraphicsLayer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (graphic !== null) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flashFeature(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});

function returnGraphicFromLayer(featureID, layerGraphic) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layerGraphic.graphics.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layerGraphic.graphics&lt;I&gt;.attributes.OBJECTID === featureID) { return layerGraphic.graphics&lt;I&gt;; }&lt;/I&gt;&lt;/I&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 22:41:31 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2021-12-11T22:41:31Z</dc:date>
    <item>
      <title>Dojo Grid Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520397#M48495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Dojo grid that zooms to a selected point on the map when an ObjectId cell in the grid is clicked on.&amp;nbsp; I would like to change this to allow the zoom when the entire row or another attribute such as "Name" is clicked on.&amp;nbsp; The problem is that the ObjectId is my only unique identifier and I am getting no results when modifying and clicking on another field.&amp;nbsp; I have attached a text file that shows the code that I used to generate the grid and also the function that does the querying.&amp;nbsp; Could someone please provide some guidance on what I am missing?&amp;nbsp; Any help is greatly appreciated.&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 18:04:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520397#M48495</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2014-11-24T18:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Grid Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520398#M48496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're using the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;grid.on(".field-OBJECTID:click", selectSite);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, I'm using the following code to highlight a graphic when the user clicks on a row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;diveGrid.on(".dgrid-row:click", function (evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedGrid = registry.byId("diveGrid");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var row = selectedGrid.row(evt);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = returnGraphicFromLayer(row.data.OBJECTID, myGraphicsLayer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (graphic !== null) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flashFeature(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});

function returnGraphicFromLayer(featureID, layerGraphic) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; layerGraphic.graphics.length; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layerGraphic.graphics&lt;I&gt;.attributes.OBJECTID === featureID) { return layerGraphic.graphics&lt;I&gt;; }&lt;/I&gt;&lt;/I&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520398#M48496</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T22:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Grid Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520399#M48497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, works great.&amp;nbsp; Out of curiosity, what does your myGraphicsLayer variable refer to?&amp;nbsp; Is it a subset of your layerGraphic feature layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 16:45:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520399#M48497</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2014-11-25T16:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Grid Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520400#M48498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the graphics layer itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myGraphicsLayer= new GraphicsLayer({
&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "featureGraphics",
&amp;nbsp;&amp;nbsp;&amp;nbsp; opacity: 0.5
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:41:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-grid-selection/m-p/520400#M48498</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T22:41:34Z</dc:date>
    </item>
  </channel>
</rss>

