<?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 Attribute filtering FeatureTable in JS 4.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-filtering-featuretable-in-js-4-x/m-p/1302803#M81520</link>
    <description>&lt;P&gt;Is there a way to filter FeatureTable by attribute? I found similiar question but for version 3.x and it requires to implement custom input field for each column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-filter-the-feature-table/td-p/645957" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-filter-the-feature-table/td-p/645957&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe version 4.x does support such functionality out of the box?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 00:18:09 GMT</pubDate>
    <dc:creator>patryks</dc:creator>
    <dc:date>2023-06-26T00:18:09Z</dc:date>
    <item>
      <title>Attribute filtering FeatureTable in JS 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-filtering-featuretable-in-js-4-x/m-p/1302803#M81520</link>
      <description>&lt;P&gt;Is there a way to filter FeatureTable by attribute? I found similiar question but for version 3.x and it requires to implement custom input field for each column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-filter-the-feature-table/td-p/645957" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-filter-the-feature-table/td-p/645957&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe version 4.x does support such functionality out of the box?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 00:18:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-filtering-featuretable-in-js-4-x/m-p/1302803#M81520</guid>
      <dc:creator>patryks</dc:creator>
      <dc:date>2023-06-26T00:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute filtering FeatureTable in JS 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-filtering-featuretable-in-js-4-x/m-p/1303062#M81530</link>
      <description>&lt;P&gt;I created a widget to duplicate the functionalities of the filtering of the AT in WAB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the main core of the widget. For the selected layer, I have a dropdown listing all fields and another&amp;nbsp; dropdown for all values of the selected field where the user can create their SQLwhere statement. I hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const getQuery = async (SQLwhere) =&amp;gt; {
  let thelayer = theselectedlayer;
  let query = thelayer.createQuery();
  query.where = SQLwhere;
  let thevalues = [];
  // query.orderByFields = selectedField;
  query.outFields = ["*"];
  query.returnDistinctValues = false;
  query.returnGeometry = true;
  thelayer
    .queryFeatures(query)

    .then((results) =&amp;gt; {
      console.log(results);
      if (results.features.length === 0) {
        document.getElementById("Message_html").innerHTML =
          "Query returned no features.";
        return;
      }
      if (featureTable) {
        featureTable.selectRows(results.features);
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-filtering-featuretable-in-js-4-x/m-p/1303062#M81530</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2023-06-26T16:26:14Z</dc:date>
    </item>
  </channel>
</rss>

