<?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: help! refreshing featurelayer after feature deletion... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556292#M51900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so... i was able to resolve this issue but removing the feature layer after editing, then reloading layer, and then re-attaching it to the initialized editing service. the effectively will overcome any iPad cache of graphics after editing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 16:15:40 GMT</pubDate>
    <dc:creator>JaredAllen</dc:creator>
    <dc:date>2012-02-13T16:15:40Z</dc:date>
    <item>
      <title>help! refreshing featurelayer after feature deletion...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556288#M51896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i've created a js 2.6 web app which will be primarily accessed via an iPad device. one of the functions is to allow users the ability to delete features. this works w/o error, since the sde feature layer respects the applied updates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is that when an iPad device is used to delete a feature the feature will momentarily disappear, but on pan/zoom the graphic is replaced... however, i can watch that feature in the database, or from a desktop browser, and verify that it is in-fact removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, the iOS browser engine is holding onto a cached image (furthermore, if tested in desktop safari, i get the same effect as in mobile safari) and the only way i can get my iPad device to render the point "gone" is to handle a full location.reload(true)... and that is way to cumbersome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;btw, the layers being edited are being added to map as esri.layers.FeatureLayer with mode_ondemand, which from all accounts of the api reference do not have a functional "disableClientCaching" or "refresh" property or method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please help! i've been struggling for days on this issue and need to get this resolved asap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can respond to this post, or email me directly &lt;/SPAN&gt;&lt;A href="mailto:jallen@northwindgrp.com"&gt;jallen@northwindgrp.com&lt;/A&gt;&lt;SPAN&gt;, or call me 208.403.7969.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my online reference to this app is: &lt;/SPAN&gt;&lt;A href="http://arcgisserver.northwind-inc.com/itd-mobile/index.htm"&gt;http://arcgisserver.northwind-inc.com/itd-mobile/index.htm&lt;/A&gt;&lt;SPAN&gt;. you can test in desktop browser vs mobile browser to see the effect of which i'm referring.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 18:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556288#M51896</guid>
      <dc:creator>JaredAllen</dc:creator>
      <dc:date>2012-02-02T18:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: help! refreshing featurelayer after feature deletion...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556289#M51897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you pinpoint the relevant sections in the code? It's a fairly complicated application so it would help to narrow down the issue. Which functions in the application should we choose to reproduce the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed in the script at &lt;/SPAN&gt;&lt;A href="http://arcgisserver.northwind-inc.com/itd-mobile/library/code/global.js" rel="nofollow noopener noreferrer" target="_blank"&gt;http://arcgisserver.northwind-inc.com/itd-mobile/library/code/global.js&lt;/A&gt;&lt;SPAN&gt; that you've defined:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
permits = new esri.layers.FeatureLayer("http://arcgisserver.northwind-inc.com/ArcGIS/rest/services/itd-mobile/FeatureServer/1", {
&amp;nbsp; mode : esri.layers.FeatureLayer.MODE_ONDEMAND,
&lt;SPAN style="color:#ff0000;"&gt;&amp;nbsp; disableClientCaching : true,
&lt;/SPAN&gt;&amp;nbsp; visible : false,
&amp;nbsp; outFields : ["*"]&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I know, disableClientCaching doesn't apply to a feature layer, but to a Dynamic layer. Not sure if that's related to the issue you're seeing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556289#M51897</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-12T00:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: help! refreshing featurelayer after feature deletion...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556290#M51898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that is indeed the piece that i'd like to replicate for a featurelayer that is set to ondemand. i know that disableClientCaching is only for dynamic service level layers, but for the fact that the safari browser engine is caching the featurelayer, there's got to be some crafty method to forcing the featurelayer, map, or browser to force a redraw.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 21:20:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556290#M51898</guid>
      <dc:creator>JaredAllen</dc:creator>
      <dc:date>2012-02-02T21:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: help! refreshing featurelayer after feature deletion...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556291#M51899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I can't really help here. In FireFox on a PC, the features are deleting correctly. I don't have access to an iPad or Mac to test this in iOS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might help to make a much simpler version of this application, which you can debug more easily. I'd create a version of this page with all the code in a single script then add a single layer and a simple add/delete function, then see if you can reproduce the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That might help to pinpoint exactly where the problem is occurring - if you submit something as complex as this applicatoin to tech support, it'll be harder for them to debug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 21:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556291#M51899</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-02-02T21:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: help! refreshing featurelayer after feature deletion...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556292#M51900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so... i was able to resolve this issue but removing the feature layer after editing, then reloading layer, and then re-attaching it to the initialized editing service. the effectively will overcome any iPad cache of graphics after editing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 16:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556292#M51900</guid>
      <dc:creator>JaredAllen</dc:creator>
      <dc:date>2012-02-13T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: help! refreshing featurelayer after feature deletion...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556293#M51901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as I know, disableClientCaching doesn't apply to a feature layer, but to a Dynamic layer. Not sure if that's related to the issue you're seeing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,Steve &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://www.herfree.com/avatar1.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 05:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-refreshing-featurelayer-after-feature/m-p/556293#M51901</guid>
      <dc:creator>ConstanceErvine</dc:creator>
      <dc:date>2012-02-14T05:21:20Z</dc:date>
    </item>
  </channel>
</rss>

