<?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: Filtering a CSVLayer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185162#M4337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Works like a charm! If you're interested, we're upgrading the Flex Viewer at the following site:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://top100projects.ca/"&gt;http://top100projects.ca/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data will now be fed from a web CSVLayer. Clicking on the pie chart will show you the filtering behaviour we're after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2012 17:24:06 GMT</pubDate>
    <dc:creator>MapEnglish</dc:creator>
    <dc:date>2012-12-17T17:24:06Z</dc:date>
    <item>
      <title>Filtering a CSVLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185158#M4333</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;Is this possible? I've tried setting a definitionExpression with no luck - perhaps it just applies to a FeatureLayer from which it inherits. Also have tried setting a filter function on the graphicProvider property but the doc suggests this can't be done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt English&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri Canada&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 19:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185158#M4333</guid>
      <dc:creator>MapEnglish</dc:creator>
      <dc:date>2012-12-14T19:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a CSVLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185159#M4334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use a renderer that doesn't define a symbol for the features that you don't want to be drawn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option is to update the featureCollection's feature set after the layer has loaded and then reset the featureCollection property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 19:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185159#M4334</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-12-14T19:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a CSVLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185160#M4335</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;So I have a new FeatureSet according to some business logic, and I pass it in to a new FeatureCollection and reset my CSVLayer with that collection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myCSVLayer.featureCollection = new FeatureCollection(filteredFeatureSet, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the map still shows my original set of features. Do I need to do anything else here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 14:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185160#M4335</guid>
      <dc:creator>MapEnglish</dc:creator>
      <dc:date>2012-12-17T14:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a CSVLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185161#M4336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myCSVLayer.featureCollection = new FeatureCollection(filteredFeatureSet, new LayerDetails());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having at least a default LayerDetails is required.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 16:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185161#M4336</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-12-17T16:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a CSVLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185162#M4337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Works like a charm! If you're interested, we're upgrading the Flex Viewer at the following site:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://top100projects.ca/"&gt;http://top100projects.ca/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data will now be fed from a web CSVLayer. Clicking on the pie chart will show you the filtering behaviour we're after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 17:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/filtering-a-csvlayer/m-p/185162#M4337</guid>
      <dc:creator>MapEnglish</dc:creator>
      <dc:date>2012-12-17T17:24:06Z</dc:date>
    </item>
  </channel>
</rss>

