<?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: How to filter by attributes in IdentifyTask() in ArcGIS JS 4.6 api? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577085#M53898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The 4.x api does not have a layerDefinitions property like the 3.x api had:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/identifyparameters-amd.html#layerdefinitions" title="https://developers.arcgis.com/javascript/3/jsapi/identifyparameters-amd.html#layerdefinitions"&gt;https://developers.arcgis.com/javascript/3/jsapi/identifyparameters-amd.html#layerdefinitions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for now filtering the results like you are is the best solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2018 19:39:50 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-07-05T19:39:50Z</dc:date>
    <item>
      <title>How to filter by attributes in IdentifyTask() in ArcGIS JS 4.6 api?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577084#M53897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using &lt;STRONG&gt;IdentifyTask()&lt;/STRONG&gt; on a feature layer to show popups of feature points when the map is clicked. However, I need to be able to display popups for only those feature points which have a certain attribute value (eg. popups for those with the attribute &lt;EM&gt;{status:"Active"}&lt;/EM&gt; should be displayed, but for those with &lt;EM&gt;{status:"Inactive"}&lt;/EM&gt; should not be displayed). I could not find any properties in &lt;STRONG&gt;IdentifyParameters()&lt;/STRONG&gt; which would allow me to do that. The current workaround I am using is filtering&amp;nbsp;for the attributes from the returned results. But I am wondering if there is a way to specify the filter parameters within &lt;STRONG&gt;IdentifyParameters()&lt;/STRONG&gt;. What I am looking is something like the &lt;STRONG&gt;where&lt;/STRONG&gt; property in &lt;STRONG&gt;Query()&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 18:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577084#M53897</guid>
      <dc:creator>vishwasuppoor1</dc:creator>
      <dc:date>2018-07-05T18:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter by attributes in IdentifyTask() in ArcGIS JS 4.6 api?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577085#M53898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The 4.x api does not have a layerDefinitions property like the 3.x api had:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/identifyparameters-amd.html#layerdefinitions" title="https://developers.arcgis.com/javascript/3/jsapi/identifyparameters-amd.html#layerdefinitions"&gt;https://developers.arcgis.com/javascript/3/jsapi/identifyparameters-amd.html#layerdefinitions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for now filtering the results like you are is the best solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577085#M53898</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-05T19:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter by attributes in IdentifyTask() in ArcGIS JS 4.6 api?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577086#M53899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Thanks for the response. Can't we use &lt;STRONG&gt;requestOptions&lt;/STRONG&gt;&amp;nbsp;constructor of&amp;nbsp;&lt;STRONG&gt;IdentifyTask()&lt;/STRONG&gt;? The &lt;STRONG&gt;requestOptions&amp;nbsp;&lt;/STRONG&gt;object has a&amp;nbsp;&lt;STRONG&gt;query&amp;nbsp;&lt;/STRONG&gt;property, but there are no samples which demonstrate&amp;nbsp;it being used. I might have misunderstood the functionality of &lt;STRONG&gt;requestOptions&lt;/STRONG&gt;. TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 19:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577086#M53899</guid>
      <dc:creator>vishwasuppoor1</dc:creator>
      <dc:date>2018-07-05T19:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter by attributes in IdentifyTask() in ArcGIS JS 4.6 api?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577087#M53900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No requestOptions property is for something else completely and is documented in this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 20:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/577087#M53900</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-05T20:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter by attributes in IdentifyTask() in ArcGIS JS 4.6 api?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/1026417#M71757</link>
      <description>&lt;P&gt;Are there any plans to add the layerDefinitions property to Identify Parameters in the future for v4?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 18:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-filter-by-attributes-in-identifytask-in/m-p/1026417#M71757</guid>
      <dc:creator>ChristopherCorliss1</dc:creator>
      <dc:date>2021-02-12T18:51:24Z</dc:date>
    </item>
  </channel>
</rss>

