<?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: layer.definitionExpression after applyEdits in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-definitionexpression-after-applyedits/m-p/1166880#M77095</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide a simple reproducible case? I set up a simple test app and I am not able to reproduce issue. But perhaps I may have misunderstood your issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the following test app, I am creating a feature collection and set the definitionExpression. Then from update attributes button, I change the attributes of two features. Layer is updated correctly show the features that only meet the definitionExpression. &lt;A href="https://codepen.io/U_B_U/pen/wvpObbJ?editors=100" target="_blank"&gt;https://codepen.io/U_B_U/pen/wvpObbJ?editors=100&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 22:33:40 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2022-04-21T22:33:40Z</dc:date>
    <item>
      <title>layer.definitionExpression after applyEdits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-definitionexpression-after-applyedits/m-p/1166330#M77069</link>
      <description>&lt;P&gt;I create a feature layer programmatically by setting the source, add to web map, and all displays fine. I then update some feature attributes in that layer programmatically by using applyEdits. All this seems to be working correctly. When I click on the feature to display the popup, I see the attribute values are all updated. However, if I try to use&amp;nbsp;definitionExpression to filter on the updated attributes, it does not return any results. In debugging and viewing the layer source items, those attributes do not have the updated values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the code to filter on attributes I am not changing works. (i.e. features matching the query are visible, and those that do not are hidden).&lt;/P&gt;&lt;P&gt;I'd like to be able to filter features in my layer using the updated attribute values after an applyEdits. Is this not possible with the&amp;nbsp;definitionExpression? Any advise on how I could do that?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 19:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-definitionexpression-after-applyedits/m-p/1166330#M77069</guid>
      <dc:creator>rbossio</dc:creator>
      <dc:date>2022-04-20T19:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: layer.definitionExpression after applyEdits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-definitionexpression-after-applyedits/m-p/1166880#M77095</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide a simple reproducible case? I set up a simple test app and I am not able to reproduce issue. But perhaps I may have misunderstood your issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the following test app, I am creating a feature collection and set the definitionExpression. Then from update attributes button, I change the attributes of two features. Layer is updated correctly show the features that only meet the definitionExpression. &lt;A href="https://codepen.io/U_B_U/pen/wvpObbJ?editors=100" target="_blank"&gt;https://codepen.io/U_B_U/pen/wvpObbJ?editors=100&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 22:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-definitionexpression-after-applyedits/m-p/1166880#M77095</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-04-21T22:33:40Z</dc:date>
    </item>
  </channel>
</rss>

