<?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 FeatureLayer using query in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-using-query/m-p/348957#M8281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello dear ArcGIS API for Flex team:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have a question about using query in FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here's my code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var timeExtent:TimeExtent = new TimeExtent();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var todayDate:Date = new Date();
&amp;nbsp;&amp;nbsp;&amp;nbsp; timeExtent.startTime = new Date("1993/01/01 00:00:01 UTC");
&amp;nbsp;&amp;nbsp;&amp;nbsp; timeExtent.endTime = new Date("1993/12/31 23:59:59 UTC");
&amp;nbsp;&amp;nbsp;&amp;nbsp; fLayer.timeDefinition = timeExtent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query:Query = new Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = "Name = 'park'";
&amp;nbsp;&amp;nbsp;&amp;nbsp; fLayer.queryFeatures(query);
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(fLayer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with this code, i can get a FeatureLayer with the timeDefinition&amp;nbsp; i set, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but i can't get the query data i set, is there any sugesstion?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please help me~tks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2011 12:05:31 GMT</pubDate>
    <dc:creator>yihuilai</dc:creator>
    <dc:date>2011-08-25T12:05:31Z</dc:date>
    <item>
      <title>FeatureLayer using query</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-using-query/m-p/348957#M8281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello dear ArcGIS API for Flex team:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have a question about using query in FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here's my code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var timeExtent:TimeExtent = new TimeExtent();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var todayDate:Date = new Date();
&amp;nbsp;&amp;nbsp;&amp;nbsp; timeExtent.startTime = new Date("1993/01/01 00:00:01 UTC");
&amp;nbsp;&amp;nbsp;&amp;nbsp; timeExtent.endTime = new Date("1993/12/31 23:59:59 UTC");
&amp;nbsp;&amp;nbsp;&amp;nbsp; fLayer.timeDefinition = timeExtent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query:Query = new Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = "Name = 'park'";
&amp;nbsp;&amp;nbsp;&amp;nbsp; fLayer.queryFeatures(query);
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(fLayer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with this code, i can get a FeatureLayer with the timeDefinition&amp;nbsp; i set, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but i can't get the query data i set, is there any sugesstion?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please help me~tks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 12:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-using-query/m-p/348957#M8281</guid>
      <dc:creator>yihuilai</dc:creator>
      <dc:date>2011-08-25T12:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer using query</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-using-query/m-p/348958#M8282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can assign both TimeExtent and definitionExpression to the featureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fLayer.definitionExpression = "STATE_NAME like 'park'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html#/Search_with_FeatureLayer/01nq00000025000000"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html#/Search_with_FeatureLayer/01nq00000025000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 22:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-using-query/m-p/348958#M8282</guid>
      <dc:creator>YungKaiChin</dc:creator>
      <dc:date>2011-09-13T22:09:45Z</dc:date>
    </item>
  </channel>
</rss>

