<?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: Graphic Err in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169404#M15705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I have changed my code and moved it, but still get the&amp;nbsp;&lt;EM&gt;Graphic is not defined&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff;"&gt; Err! actually I want to view my popup template after clicking search&amp;nbsp;results in the search table. but my function didn't work and the Err was&amp;nbsp;&lt;EM&gt;Graphic is not defined.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;EM&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/350394_Capture.JPG" style="width: 620px; height: 309px;" /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 01:08:26 GMT</pubDate>
    <dc:creator>NedaPeiravian</dc:creator>
    <dc:date>2017-05-10T01:08:26Z</dc:date>
    <item>
      <title>Graphic Err</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169402#M15703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I got this Err:&amp;nbsp;Graphic is not defined. how should I fix it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 05:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169402#M15703</guid>
      <dc:creator>NedaPeiravian</dc:creator>
      <dc:date>2017-05-09T05:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Err</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169403#M15704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;move the following code at line 115&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;var graphic = new Graphic({&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; getAttribute: "objectid",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; popupTemplate:template&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; });&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and add the &lt;STRONG&gt;var&lt;/STRONG&gt; at the beginning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/350179_pastedImage_1.png" style="width: 620px; height: 393px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 06:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169403#M15704</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2017-05-09T06:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Err</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169404#M15705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I have changed my code and moved it, but still get the&amp;nbsp;&lt;EM&gt;Graphic is not defined&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff;"&gt; Err! actually I want to view my popup template after clicking search&amp;nbsp;results in the search table. but my function didn't work and the Err was&amp;nbsp;&lt;EM&gt;Graphic is not defined.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;EM&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/350394_Capture.JPG" style="width: 620px; height: 309px;" /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 01:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169404#M15705</guid>
      <dc:creator>NedaPeiravian</dc:creator>
      <dc:date>2017-05-10T01:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic Err</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169405#M15706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the function test try to pass on method goTo the geometry from the selected graphic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; function test(x){&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; //alert(searchResults&lt;X&gt;.feature.geometry);&lt;/X&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; //query features in tree layer based on objid, this will return a graphic&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; view.goTo(searchResults&lt;X&gt;.feature.geometry)&lt;/X&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also when you construct the results table add on click the array number in order later &amp;nbsp;(on test function) access the item from the&amp;nbsp;searchResults array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/350399_pastedImage_3.png" style="width: 620px; height: 257px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 06:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphic-err/m-p/169405#M15706</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2017-05-10T06:31:43Z</dc:date>
    </item>
  </channel>
</rss>

