<?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: FeatureTable - FeatureLayer.setDefinitionExpression in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308980#M28361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has this been addressed in subsequent releases?&amp;nbsp; Some of the threads and the documentation for FeatureTable suggest we need to use a query on the underlying grid to filter the data.&amp;nbsp; It makes more sense to me to set a definitionExpression on the underlying FeatureLayer.&amp;nbsp; The variable filterValue is chosen from a filteringSelect. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateTable: function (filterValue) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.testTable.setDefinitionExpression(("Dist_Code = '" + filterValue + "'");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;In this example, app.testTable is defined as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.testTable = new FeatureLayer (pathName+"/arcgis/rest/services/DHSS/EPHT_radonSchool/MapServer/2", {&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: "testTable",&lt;/P&gt;&lt;P&gt;&amp;nbsp; outFields: ["*"]&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;I'm not sure if I need to also set the table to filterSelectedRecords(true).&amp;nbsp; I'm not getting any errors displayed, but I'm not seeing the results I expected either.&amp;nbsp; In my example, this featureLayer is just a table; it doesn't contain any graphic component to tie back to my map display.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2016 18:12:17 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2016-06-27T18:12:17Z</dc:date>
    <item>
      <title>FeatureTable - FeatureLayer.setDefinitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308979#M28360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey! When using FeatureTable, it does not updates its content after applying setDefinitionExtension to FeatureLayer referenced FeatureTable. Are you going to fix this bug in the next release?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 14:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308979#M28360</guid>
      <dc:creator>ИванМехедов</dc:creator>
      <dc:date>2016-03-02T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable - FeatureLayer.setDefinitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308980#M28361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has this been addressed in subsequent releases?&amp;nbsp; Some of the threads and the documentation for FeatureTable suggest we need to use a query on the underlying grid to filter the data.&amp;nbsp; It makes more sense to me to set a definitionExpression on the underlying FeatureLayer.&amp;nbsp; The variable filterValue is chosen from a filteringSelect. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateTable: function (filterValue) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.testTable.setDefinitionExpression(("Dist_Code = '" + filterValue + "'");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;In this example, app.testTable is defined as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.testTable = new FeatureLayer (pathName+"/arcgis/rest/services/DHSS/EPHT_radonSchool/MapServer/2", {&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: "testTable",&lt;/P&gt;&lt;P&gt;&amp;nbsp; outFields: ["*"]&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;I'm not sure if I need to also set the table to filterSelectedRecords(true).&amp;nbsp; I'm not getting any errors displayed, but I'm not seeing the results I expected either.&amp;nbsp; In my example, this featureLayer is just a table; it doesn't contain any graphic component to tie back to my map display.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 18:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308980#M28361</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2016-06-27T18:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable - FeatureLayer.setDefinitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308981#M28362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually requested this enhancement a while ago. It's status is currently &lt;EM&gt;In Product Plan&lt;/EM&gt;, but I don't know when they actually plan to implement this. For now you will have to work around the issue by destroying and recreating your feature table. (There are other threads on GeoNet that have example code demonstrating how to do this.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;#ENH-000094524&amp;nbsp;&amp;nbsp; [Enhancement] Update Featuretable when the underlying Featurelayer's definition query changes&lt;/P&gt;&lt;P&gt;Open&lt;/P&gt;&lt;P&gt;Status: In Product Plan&lt;/P&gt;&lt;P&gt;Severity: Medium&lt;/P&gt;&lt;P&gt;Submitted: 2/28/2016&lt;/P&gt;&lt;P&gt;Product: ArcGIS API for JavaScript&lt;/P&gt;&lt;P&gt;Version: 3.16&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 17:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308981#M28362</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2016-06-28T17:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable - FeatureLayer.setDefinitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308982#M28363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the update.&amp;nbsp; I keep trying to use FeatureTable and end up going back to using a plain dGrid.&amp;nbsp; I thought I might be able to manipulate the grid that the FeatureTable is based on, but it doesn't take long to be more trouble than it's worth.&amp;nbsp; Maybe in some future release.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 18:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-featurelayer-setdefinitionexpression/m-p/308982#M28363</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2016-06-28T18:03:31Z</dc:date>
    </item>
  </channel>
</rss>

