<?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: About &amp;quot;esri/tasks/query&amp;quot;  's question in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448668#M2998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, not sure what's going on there but can it be because of a typo where you are creating the new QueryTask?&lt;/P&gt;&lt;P&gt;`this.config.qeuryTaskUrl` vs. `this.config.queryTaskUrl`, swap the 'eu'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Feb 2015 12:43:56 GMT</pubDate>
    <dc:creator>FilipKrál</dc:creator>
    <dc:date>2015-02-22T12:43:56Z</dc:date>
    <item>
      <title>About "esri/tasks/query"  's question</title>
      <link>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448666#M2996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my codes:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/64457_3.png"&gt;&lt;IMG alt="3.png" class="image-3 jive-image" height="540" src="https://community.esri.com/legacyfs/online/64457_3.png" style="height: auto;" width="395" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/64365_1.png"&gt;&lt;IMG alt="1.png" class="image-1 jive-image" height="525" src="https://community.esri.com/legacyfs/online/64365_1.png" style="width: 620px; height: 481px;" width="677" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in chorom:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/64366_2.png"&gt;&lt;IMG alt="2.png" class="image-2 jive-image" height="313" src="https://community.esri.com/legacyfs/online/64366_2.png" style="width: 620px; height: 144px;" width="1351" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Now&amp;nbsp; I confused,&amp;nbsp; my god&amp;nbsp; ,what happend??&lt;/P&gt;&lt;P&gt;they are the same in&amp;nbsp; local/web api ! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 11:57:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448666#M2996</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2015-02-22T11:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: About "esri/tasks/query"  's question</title>
      <link>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448667#M2997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 12:05:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448667#M2997</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2015-02-22T12:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: About "esri/tasks/query"  's question</title>
      <link>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448668#M2998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, not sure what's going on there but can it be because of a typo where you are creating the new QueryTask?&lt;/P&gt;&lt;P&gt;`this.config.qeuryTaskUrl` vs. `this.config.queryTaskUrl`, swap the 'eu'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 12:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448668#M2998</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2015-02-22T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: About "esri/tasks/query"  's question</title>
      <link>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448669#M2999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not&amp;nbsp; this&amp;nbsp; reason, i check every words , but&amp;nbsp;&amp;nbsp; thank you very much&amp;nbsp; !&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 13:47:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448669#M2999</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2015-02-22T13:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: About "esri/tasks/query"  's question</title>
      <link>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448670#M3000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zhongren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is there a reason that you are not using a local variable for query and queryTask in your initData function? Why would you want it to be scoped to the whole widget source by using 'this.' ? Your overall issue is a scope problem. Inside the execute block the scope of 'this' is not the same as it was before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;initData: function () {
&amp;nbsp; var query = new Query();
&amp;nbsp; query.outFields = [this.config.queryFields];
&amp;nbsp; query.outSpatialReference = this.map.spatialReference;
&amp;nbsp; query.where = this.config.queryWhere;

&amp;nbsp; var queryTask = new QueryTask(this.config.queryTaskUrl);
&amp;nbsp; queryTask.execute(query,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lang.hitch(this, function (featureSet) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(featureSet);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lang.hitch(this, function (error) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(error);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })
&amp;nbsp; );
&amp;nbsp; .....
},&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448670#M3000</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T20:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: About "esri/tasks/query"  's question</title>
      <link>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448671#M3001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/love.png" /&gt;&amp;nbsp; good&amp;nbsp; night!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 15:10:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/about-quot-esri-tasks-query-quot-160-s-question/m-p/448671#M3001</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2015-02-22T15:10:00Z</dc:date>
    </item>
  </channel>
</rss>

