<?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: Measurement Widget clear Result and Query trouble in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631850#M58964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/find_map_datagrid.html"&gt;This&lt;/A&gt;&lt;SPAN&gt; might help you with your query question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2014 16:22:02 GMT</pubDate>
    <dc:creator>TimWitt</dc:creator>
    <dc:date>2014-05-20T16:22:02Z</dc:date>
    <item>
      <title>Measurement Widget clear Result and Query trouble</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631848#M58962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I've been working on this web map for a couple of weeks now trying to get everything in. I Have basic knowledge of JavaScript but when I get stuck I do get stuck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to accomplish is to clear the results once I have used the measuring tool on the map. I found out another useful post on using the destroy method for the widget but I couldnt find a working clearResult(); method for it. You can see my frustration in my code. Function is built, button points to it, but then it says that the function is not defined:| (Firebug debugging)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code ( &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/n3LwT/1/"&gt;http://jsfiddle.net/n3LwT/1/&lt;/A&gt;&lt;SPAN&gt; ) and here is the destroy forum post ( &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/42208-toggle-measurement-dijit-(startup-amp-destroy)"&gt;http://forums.arcgis.com/threads/42208-toggle-measurement-dijit-(startup-amp-destroy)&lt;/A&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the query. Im trying to get the {capREAL} field to be queried and for the user to input the amount inside a search box but I am lost on how to make it work. (In JSFiddle you need to scroll down the left header content pane in order to see the search box).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 16:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631848#M58962</guid>
      <dc:creator>MirceaMaierean</dc:creator>
      <dc:date>2014-05-20T16:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget clear Result and Query trouble</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631849#M58963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mircea,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;add this code to your app:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on(dojo.byId("clearAll"), "click", clearmeas);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function clearmeas(){
&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; measurement.clearResult();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this will clear your measurement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631849#M58963</guid>
      <dc:creator>TimWitt</dc:creator>
      <dc:date>2021-12-12T02:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget clear Result and Query trouble</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631850#M58964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/find_map_datagrid.html"&gt;This&lt;/A&gt;&lt;SPAN&gt; might help you with your query question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 16:22:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631850#M58964</guid>
      <dc:creator>TimWitt</dc:creator>
      <dc:date>2014-05-20T16:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget clear Result and Query trouble</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631851#M58965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Mircea,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;add this code to your app:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on(dojo.byId("clearAll"), "click", clearmeas);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function clearmeas(){
&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; measurement.clearResult();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;this will clear your measurement.&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Awesome this worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will work on the query and let you know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631851#M58965</guid>
      <dc:creator>MirceaMaierean</dc:creator>
      <dc:date>2021-12-12T02:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget clear Result and Query trouble</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631852#M58966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've tried to make it work with the find and findTask but I just dont know how to get the results inside the left side content pane.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think both query/find would work as long as I would be able to point the results in the right location. I just dont know how to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the updated JSFiddle: &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/n3LwT/4/"&gt;http://jsfiddle.net/n3LwT/4/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 18:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-clear-result-and-query-trouble/m-p/631852#M58966</guid>
      <dc:creator>MirceaMaierean</dc:creator>
      <dc:date>2014-05-20T18:15:25Z</dc:date>
    </item>
  </channel>
</rss>

