<?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: Need help on how to code  an &amp;quot;Identify listener&amp;quot; in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338193#M31267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dorothea,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the user now wants to click and zoom to another datagrid record the Show Find Task is no longer active. How can I track the function mode so it will work all the time? Right now the user has to clear the grid and start over with the Find Task.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why the click listener is no longer active at this point. If you put a breakpoint inside the doIdentify function, is it definitely running when you click on the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 01:02:28 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2012-07-11T01:02:28Z</dc:date>
    <item>
      <title>Need help on how to code  an &amp;amp;quot;Identify listener&amp;amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338192#M31266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added an Identify function (&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_drilldown.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_drilldown.html&lt;/A&gt;&lt;SPAN&gt;) to the "Show Find Task results in Datagrid" sample. (&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_map_datagrid.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_map_datagrid.html&lt;/A&gt;&lt;SPAN&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to do is have the user input an address or parcel number which then adds the search results to the datagrid; the user now clicks on a datagrid record and zooms to the parcel.&amp;nbsp; Once at the desired location the user clicks on the parcel to find out what the general plan designation is for that parcel. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the user now wants to click and zoom to another datagrid record the Show Find Task is no longer active. How can I track the function mode so it will work all the time?&amp;nbsp; Right now the user has to clear the grid and start over with the Find Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 22:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338192#M31266</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-07-09T22:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on how to code  an "Identify listener"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338193#M31267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dorothea,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the user now wants to click and zoom to another datagrid record the Show Find Task is no longer active. How can I track the function mode so it will work all the time? Right now the user has to clear the grid and start over with the Find Task.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why the click listener is no longer active at this point. If you put a breakpoint inside the doIdentify function, is it definitely running when you click on the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 01:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338193#M31267</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-07-11T01:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on how to code  an "Identify listener"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338194#M31268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stephen, thank you for responding. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I seem to be getting an error at the :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var taxLotExtent=selecedTaxLot.geometry.getExtent();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at which point it informs me that the selected TaxLot is undefined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached more code if you would like to take a look.&amp;nbsp; I had to take out some legend items because the .txt file was more than 12.5 kb; I ended up zipping the file anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 14:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338194#M31268</guid>
      <dc:creator>DorotheaKnigge</dc:creator>
      <dc:date>2012-07-12T14:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on how to code  an "Identify listener"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338195#M31269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I seem to be getting an error at the :&lt;BR /&gt;var taxLotExtent=selecedTaxLot.geometry.getExtent();&lt;BR /&gt;at which point it informs me that the selected TaxLot is undefined.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Dorothea,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without actually running your code it's hard (for me at least) to say what's wrong. But in this case you're probably seeing an error because there is no value for selectedTaxLot. You could try something like this to debug it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
function onRowClickHandler(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var clickedTaxLotId = grid.getItem(evt.rowIndex).OBJECTID;
&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; for (var i=0, il=map.graphics.graphics.length; i&amp;lt;il; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var currentGraphic = map.graphics.graphics&lt;I&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((currentGraphic.attributes) &amp;amp;&amp;amp; currentGraphic.attributes.OBJECTID == clickedTaxLotId){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectedTaxLot = currentGraphic;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&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; if(selectedTaxLot.length &amp;gt; 0) {
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(taxLotExtent, true);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("can't find a corresponding tax lot to select");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:00:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-on-how-to-code-nbsp-an-amp-amp-quot/m-p/338195#M31269</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-11T16:00:51Z</dc:date>
    </item>
  </channel>
</rss>

