<?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 force a refresh on a FeatureLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88734#M8079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, you are right. I will ask&amp;nbsp;my customer to make a map public, put up the Codepen and we can go from there. Thank you all for the replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2020 08:46:12 GMT</pubDate>
    <dc:creator>PHerk</dc:creator>
    <dc:date>2020-03-04T08:46:12Z</dc:date>
    <item>
      <title>How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88729#M8074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a WebMap with a FeatureLayer. The FeatureLayer has 2 sublayers. One has areas (polygons) where you can click on, the other layer should be visible after a click on the area. This is accomplished by a filter. If a field in the FeatureLayer.attributes is filled with a value, the polygon is visible in the color defined in ArcGIS online portal. In the Javascript code I return&amp;nbsp;a value in the specific&amp;nbsp;field. That works.&amp;nbsp;The refresh() command does not update the polygon on the screen.&amp;nbsp;The issue is that I have to reload the browser to see the change on the screen. The layer is updated by using the zoom buttons, but I can't find a method to refresh the layer in code, or even better, refresh the polygon. I made a silly hidescreen -&amp;gt; zoom in&amp;nbsp;-&amp;gt;&amp;nbsp;zoom out -&amp;gt; show screen function to have the layer refreshed by&amp;nbsp;controlling the zoom buttons, but I can't imagine there are no other options. Found various similar questions in this community portal, tried all suggestions but there is no success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Who has a solution?&lt;/P&gt;&lt;P&gt;Appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 12:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88729#M8074</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-03-02T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88730#M8075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/392381"&gt;P Herk&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about the &lt;SPAN style="font-family: andale mono, monospace;"&gt;refresh()&lt;/SPAN&gt; method?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#refresh" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#refresh"&gt;refresh() - FeatureLayer | ArcGIS API for JavaScript 4.14&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:04:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88730#M8075</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-03-02T16:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88731#M8076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refresh() method does not update the graphics in the map....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:57:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88731#M8076</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-03-02T16:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88732#M8077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand what a&amp;nbsp;FeatureLayer with sublayers is, but perhaps the load() method is what you want:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#load"&gt;FeatureLayer.load()&lt;/A&gt; - API Reference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 23:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88732#M8077</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-03-03T23:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88733#M8078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having a simple CodePen (or similar) that demonstrates the workflow normally helps others understand the issue and provide suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 23:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88733#M8078</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2020-03-03T23:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88734#M8079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, you are right. I will ask&amp;nbsp;my customer to make a map public, put up the Codepen and we can go from there. Thank you all for the replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 08:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88734#M8079</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-03-04T08:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88735#M8080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;OK the CodePen is working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2275b8; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;A href="https://codepen.io/powerm/pen/BaNwNzd?editors=1010"&gt;https://codepen.io/powerm/pen/BaNwNzd?editors=1010&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2e2e2e;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;The featurelayer has 2 layers. One layer has 4 polygons with colors Purple, Olive, Red and Blue. Always visible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;The second layer has the same polygons, in the color green, but initial invisible because of a filter setting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;The filter is set, so the layer polygon is invisible depending of a value in a Dat_uitv field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;No value, no polygon visible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;A valid date value, a green polygon visible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;The goal is that a polygon can be clicked, a timestamp will be set in the Dat_uitv field in the FeatureLayer. This results in a visible second layer by a green color.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;This works for 3 polygons, the purple one excluded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;When these 3 polygons are clicked, the Dat_uitv belonging to the graphic is set with the actual date/time stamp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;For this sample, a second click on the polygon, removes the date and clears the Dat_uitv field, so the polygon will have only layer visible, the original color.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;You can toggle as much as you like.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;So, by clicking on the polygon the date is constructed and returned to ArcGIS online through the ApplyEdits() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;This works like a charm, except, the screen is not updated, and a call to refresh() does not help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;When the polygon is clicked, and the screen is redrawn, the polygon shows the second layer, because the date field Dat_uitv, has a valid date value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;The only 2 ways to force the graphics to show the correct layer, is a zoom in / zoom out, or pan the polygons uit of the screen, and pan back.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;I am looking for a way to update the screen, so I see the correct layers directly after a click on the polygon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Currently I made a function where I zoom the screen but that is pretty ridiculous, because you need a delay etc. etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;I would be very pleased if I can get directions how a direct screen update, refresh, redrawn, can be achieved by a function or command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2e2e2e; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;I do not want to redraw the whole FeatureLayer, because this is just a sample with a few field. The Featurelayer for a client has hundreds of polygons...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88735#M8080</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-03-04T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88736#M8081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your intent to work with the layers in the Web Map?&amp;nbsp; If so, you should find the specific FeatureLayer you want to update that has been added to the map (via the Web Map) instead of creating a new instance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88736#M8081</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2020-03-04T18:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88737#M8082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, that is correct, but using this: webMap.findLayerById('b7408a1c740d401288521f3834088778') does not work.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;b7408a1c740d401288521f3834088778 is the id of the Featurelayer in ArcGIS online.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88737#M8082</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-03-04T18:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88738#M8083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To find a layer that is currently in the view, you can find it via the 'layers' collection of the map:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;when&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; myFeatureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;find&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 
   &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Vlakken - gereed"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; 
 console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;info&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;myFeatureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; myFeatureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The id of the layer in the Web Map is different than the id of the portal item.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88738#M8083</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-12-10T23:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88739#M8084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help. Really appreciated!&lt;/P&gt;&lt;P&gt;I changed the CodePen according to your suggestions, but unfortunately it doesn't make any difference. I changed the layer from the second ("Vlakken - gereed") to the first ("Vlakken") otherwise the Date value field will not get written. What I don't understand is that the Featurelayer ID is not the long ID number from the ArcGIS online portal, but anyhow. Seems the reference is correct. Still the same problem, the graphic is not updated with a refresh(). Only using the zoom buttons, or pan the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 20:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88739#M8084</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-03-04T20:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88740#M8085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with the correct layer that is already in the view is one issue we can address simply.&amp;nbsp; Unfortunately, I'm still confused as to what you're trying to do and what is expected behavior.&amp;nbsp; Some additional checks would be to look at the renderer and the&amp;nbsp; definitionExpression property of the layer(s) to make sure they don't conflict with the edits being made.&amp;nbsp; Currently, your code only works with and edits 1 layer.&amp;nbsp; However, your Web Map has 3 Feature Layers and your comment about a FeatureLayer having 2 layers is misleading; a FeatureLayer instance only references 1 layer as indicated by the 'layerId' property.&amp;nbsp; Also, I don't understand how changing the 'Dat_uitv' value will affect either the rendering or defintionExpression, so what is it you expect to happen when you update this value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a modified version of the codepen, but I still don't understand what the overall goal is for this task:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/john-grayson/pen/dyoVKqX?editors=1001" title="https://codepen.io/john-grayson/pen/dyoVKqX?editors=1001"&gt;https://codepen.io/john-grayson/pen/dyoVKqX?editors=1001&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 22:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88740#M8085</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2020-03-05T22:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88741#M8086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, John. What I want to do. This is a requirement from a customer. They have a map with area's / polygons, that indicate a specific location where a certain task:&lt;/P&gt;&lt;P&gt;- should start ( the area is in a color, Purple, Blue or Olive, each color represents a certain task)&lt;/P&gt;&lt;P&gt;- is finished ( the job in this area is done, the color must be Green).&lt;/P&gt;&lt;P&gt;A task is a work job, that a worker must do, example: cleaning the area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customer has, (indeed you are correct, sorry for the misleading information), 3 instances of a Featurelayer on his map:&lt;/P&gt;&lt;P&gt;1. Vloer (Dutch for floor)&lt;/P&gt;&lt;P&gt;2. Vlakken (Dutch for area's)&lt;/P&gt;&lt;P&gt;3. Vlakken - gereed (Ducth for area's completed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the same&amp;nbsp;Featurelayer, and the viewable area's on the layers depend on the filter:&lt;/P&gt;&lt;P&gt;1. Vloer, filter setting: only displays the area with id 5, this is the purple area.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;SPAN&gt;Vlakken, filter setting: display the area's&amp;nbsp;where id &amp;lt;&amp;gt; 5, the other 3 area's&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Vlakken - gereed,&amp;nbsp;filter setting: display the area's&amp;nbsp;where id &amp;lt;&amp;gt; 5 AND&amp;nbsp;Attribute: "&lt;SPAN style="color: #2e2e2e; background-color: #ffffff;"&gt;Dat_uitv" is not empty.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #2e2e2e; "&gt;This is the setting my customer made, and he wanted met to fill the &lt;SPAN style="color: #3d3d3d;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #2e2e2e; background-color: #ffffff;"&gt;Dat_uitv" attribute with the current&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="caret-color: #2e2e2e; color: #2e2e2e; "&gt;date time stamp, when they click on the specific area. Doing that, the map displays which area's have the job finished by showing the area "Vlakken - gereed" layer, according to the filter. Once the &lt;SPAN style="color: #3d3d3d;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #2e2e2e; background-color: #ffffff;"&gt;Dat_uitv" attribute has a valid value, the filter of layer "&lt;SPAN style="color: #3d3d3d;"&gt;Vlakken - gereed" is TRUE, and this layer displays the area in the color green. The customer can also view the timestamp when this job is finished. This works.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="caret-color: #2e2e2e; color: #2e2e2e; "&gt;The customer&amp;nbsp;is under the impression, filling the field would have an immediate action where the&amp;nbsp;"&lt;SPAN style="color: #3d3d3d;"&gt;Vlakken - gereed" layer is redrawn, refreshed. That is not the case, and should be triggered by an action. This is the question: how to get this done, without a zoom or pan interaction of the user. A browser refresh, zoom or pan action does update the layer...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="caret-color: #2e2e2e; color: #3d3d3d; "&gt;Maybe the whole interpretation how to solve this is wrong. If there is a better way, let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="caret-color: #2e2e2e; color: #3d3d3d; "&gt;Hope it is clear now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="caret-color: #2e2e2e; color: #3d3d3d; "&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="caret-color: #2e2e2e; color: #3d3d3d; "&gt;Pete.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 11:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88741#M8086</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-03-06T11:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88742#M8087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pete,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I believe the issue you are seeing is that the attribute value you are editing will have no effect on the defintionExpression or renderer of that feature layer and that is why the layer does not change.&amp;nbsp; The "Vlakken - gereed" layer is the one that that will be affected by the edit and is the one we want to call refresh() on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/john-grayson/pen/dyoVKqX?editors=1001" title="https://codepen.io/john-grayson/pen/dyoVKqX?editors=1001"&gt;https://codepen.io/john-grayson/pen/dyoVKqX?editors=1001&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 17:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88742#M8087</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2020-03-10T17:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh on a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88743#M8088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES! Thank you John. Appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 18:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-force-a-refresh-on-a-featurelayer/m-p/88743#M8088</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2020-03-10T18:21:46Z</dc:date>
    </item>
  </channel>
</rss>

