<?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 of a single map service layer? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218943#M5487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What kind of layer is it?&amp;nbsp; If it's a ArcGISDynamicMapServiceLayer also try setting the DisableClientCaching property to true, then call refresh.&amp;nbsp; Worked for me to refresh an event layer after the user updates lat-longs in a SQL Server table as described here - &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/31439-Refreshing-map-or-layer-display"&gt;http://forums.arcgis.com/threads/31439-Refreshing-map-or-layer-display&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 21:12:16 GMT</pubDate>
    <dc:creator>TerryGiles</dc:creator>
    <dc:date>2011-08-09T21:12:16Z</dc:date>
    <item>
      <title>How to force a refresh of a single map service layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218938#M5482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am somewhat new to the ArcGIS Silverlight API and I need some help getting over a hurdle.&amp;nbsp; I basically need to know the syntax for getting a handle to a single map service layer in my map and then forcing it to refresh itself.&amp;nbsp; I have been looking at the api for a day and I have not found anything that is working for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much.&amp;nbsp; --Rick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 11:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218938#M5482</guid>
      <dc:creator>RickThiel</dc:creator>
      <dc:date>2011-08-09T11:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh of a single map service layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218939#M5483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm no expert either, but I'll add what I know that might help you move on to the next step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure you can actually stop and start services in the API, particularly a specific layer within the API. I think it's an ArcGIS Server thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a set of data that gets updated every morning. Because they are part of a map service, I cannot just replace the data, as it will say it's locked or being used. So I have to stop and start the service, but it's the entire service.&amp;nbsp; I do this in a batch job that runs on a schedule.&amp;nbsp; The commands are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\gisdata\tools\BatchServiceTool\arcgisservice &amp;lt;name of server&amp;gt; Framework/OWRD_Large_Dams MapServer stop&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\gisdata\tools\BatchServiceTool\arcgisservice &amp;lt;name of server&amp;gt; Framework/OWRD_Large_Dams MapServer start&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your API, I would think you could go run this job, as you would a python script or some other script. But I don't know if you would run into problems since the service is open in your application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dorothy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:29:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218939#M5483</guid>
      <dc:creator>DorothyMortenson</dc:creator>
      <dc:date>2011-08-09T13:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh of a single map service layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218940#M5484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dorothy, I appreciate that you took the time to reply to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I think that I might have caused confusion with my post...&amp;nbsp; I do not need to stop and start a service.&amp;nbsp; I just need my map viewer to go to the web-service and grab a fresh set of data when an event happens (ie. a button click).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone else have any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, --Rick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 14:54:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218940#M5484</guid>
      <dc:creator>RickThiel</dc:creator>
      <dc:date>2011-08-09T14:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh of a single map service layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218941#M5485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Dorothy, I appreciate that you took the time to reply to me.&lt;BR /&gt;&lt;BR /&gt;However, I think that I might have caused confusion with my post...&amp;nbsp; I do not need to stop and start a service.&amp;nbsp; I just need my map viewer to go to the web-service and grab a fresh set of data when an event happens (ie. a button click).&lt;BR /&gt;&lt;BR /&gt;Does anyone else have any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks, --Rick&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Each layer has a Refresh().... I guess that's not working for you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 20:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218941#M5485</guid>
      <dc:creator>IgressT</dc:creator>
      <dc:date>2011-08-09T20:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh of a single map service layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218942#M5486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks doc21.&amp;nbsp; I guess that is my question.&amp;nbsp; I do not know how to get a handle to each layer programmatically and then call the refresh for each layer.&amp;nbsp; Do you have some example code?&amp;nbsp; thanks, --Rick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 21:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218942#M5486</guid>
      <dc:creator>RickThiel</dc:creator>
      <dc:date>2011-08-09T21:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a refresh of a single map service layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218943#M5487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What kind of layer is it?&amp;nbsp; If it's a ArcGISDynamicMapServiceLayer also try setting the DisableClientCaching property to true, then call refresh.&amp;nbsp; Worked for me to refresh an event layer after the user updates lat-longs in a SQL Server table as described here - &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/31439-Refreshing-map-or-layer-display"&gt;http://forums.arcgis.com/threads/31439-Refreshing-map-or-layer-display&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 21:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-force-a-refresh-of-a-single-map-service/m-p/218943#M5487</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2011-08-09T21:12:16Z</dc:date>
    </item>
  </channel>
</rss>

