<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6618.4">
<TITLE>[mapguide-users] RE: Force Refresh of Layers</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>Sorry, off the top of my head I don't know how to loop over sessions.</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> 
  mapguide-users-bounces@lists.osgeo.org&nbsp;on behalf of&nbsp;kalpesh 
  <BR><B>Sent:</B> Sat 1/20/2007 12:46 PM <BR><B>To:</B> 
  mapguide-users@lists.osgeo.org <BR><B>Cc:</B> <BR><B>Subject:</B> 
  [mapguide-users] RE: Force Refresh of Layers<BR><BR></FONT></DIV><BR>
  <P><FONT size=2>Do you have any sample code to loop through the session. I 
  have tried just</FONT> <BR><FONT size=2>MgLayer.ForceRefresh() of the layer 
  concerned and that doesnt work.</FONT> <BR><FONT size=2>Any help would be much 
  appreciated.</FONT> </P><BR><BR>
  <P><FONT size=2>Walt Welton-Lair wrote:</FONT> <BR><FONT size=2>&gt; 
  </FONT><BR><FONT size=2>&gt; Roughly:</FONT> <BR><FONT size=2>&gt; 
  </FONT><BR><FONT size=2>&gt; for each map session</FONT> <BR><FONT 
  size=2>&gt;&nbsp;&nbsp;&nbsp; for each layer referencing the modified feature 
  source</FONT> <BR><FONT size=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call 
  MgLayer-&gt;ForceRefresh()</FONT> <BR><FONT size=2>&gt;&nbsp;&nbsp;&nbsp; 
  refresh viewer for this map session (call mapframe.Refresh() from</FONT> 
  <BR><FONT size=2>&gt; script)</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT 
  size=2>&gt; Walt</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; 
  -----Original Message-----</FONT> <BR><FONT size=2>&gt; From: 
  mapguide-users-bounces@lists.osgeo.org</FONT> <BR><FONT size=2>&gt; [<A 
  href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</A>] 
  On Behalf Of</FONT> <BR><FONT size=2>&gt; jloureiro@mediaprimer.pt</FONT> 
  <BR><FONT size=2>&gt; Sent: Friday, January 19, 2007 1:57 PM</FONT> <BR><FONT 
  size=2>&gt; To: mapguide-users@lists.osgeo.org</FONT> <BR><FONT size=2>&gt; 
  Subject: [mapguide-users] Force Refresh of Layers</FONT> <BR><FONT size=2>&gt; 
  </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT 
  size=2>&gt; When some feature is inserted/updated dynamically in a feature 
  </FONT><BR><FONT size=2>&gt; source, what we have to do to programmatically 
  force the refresh of </FONT><BR><FONT size=2>&gt; all layers affected in all 
  active map sessions ?</FONT> <BR><FONT size=2>&gt; This in case of using DWF 
  Viewer to view the maps. When using Ajax </FONT><BR><FONT size=2>&gt; Viewer 
  the refresh is done automatically.</FONT> <BR><FONT size=2>&gt; 
  </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; Thanks,</FONT> 
  <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; Jorge Loureiro</FONT> 
  <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT 
  size=2>&gt; _______________________________________________</FONT> <BR><FONT 
  size=2>&gt; mapguide-users mailing list</FONT> <BR><FONT size=2>&gt; 
  mapguide-users@lists.osgeo.org</FONT> <BR><FONT size=2>&gt; <A 
  href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</A></FONT> 
  <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; 
  _______________________________________________</FONT> <BR><FONT size=2>&gt; 
  mapguide-users mailing list</FONT> <BR><FONT size=2>&gt; 
  mapguide-users@lists.osgeo.org</FONT> <BR><FONT size=2>&gt; <A 
  href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</A></FONT> 
  <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; </FONT></P>
  <P><FONT size=2>-- </FONT><BR><FONT size=2>View this message in context: <A 
  href="http://www.nabble.com/Force-Refresh-of-Layers-tf3039739s16610.html#a8464135">http://www.nabble.com/Force-Refresh-of-Layers-tf3039739s16610.html#a8464135</A></FONT> 
  <BR><FONT size=2>Sent from the MapGuide Users mailing list archive at 
  Nabble.com.</FONT> </P>
  <P><FONT size=2>_______________________________________________</FONT> 
  <BR><FONT size=2>mapguide-users mailing list</FONT> <BR><FONT 
  size=2>mapguide-users@lists.osgeo.org</FONT> <BR><FONT size=2><A 
  href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</A></FONT> 
  </P></BLOCKQUOTE>

</BODY>
</HTML>