<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 on behalf of 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>>
</FONT><BR><FONT size=2>> Roughly:</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> for each map session</FONT> <BR><FONT
size=2>> for each layer referencing the modified feature
source</FONT> <BR><FONT size=2>> call
MgLayer->ForceRefresh()</FONT> <BR><FONT size=2>>
refresh viewer for this map session (call mapframe.Refresh() from</FONT>
<BR><FONT size=2>> script)</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> Walt</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>>
-----Original Message-----</FONT> <BR><FONT size=2>> From:
mapguide-users-bounces@lists.osgeo.org</FONT> <BR><FONT size=2>> [<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>> jloureiro@mediaprimer.pt</FONT>
<BR><FONT size=2>> Sent: Friday, January 19, 2007 1:57 PM</FONT> <BR><FONT
size=2>> To: mapguide-users@lists.osgeo.org</FONT> <BR><FONT size=2>>
Subject: [mapguide-users] Force Refresh of Layers</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> </FONT><BR><FONT size=2>> </FONT><BR><FONT
size=2>> When some feature is inserted/updated dynamically in a feature
</FONT><BR><FONT size=2>> source, what we have to do to programmatically
force the refresh of </FONT><BR><FONT size=2>> all layers affected in all
active map sessions ?</FONT> <BR><FONT size=2>> This in case of using DWF
Viewer to view the maps. When using Ajax </FONT><BR><FONT size=2>> Viewer
the refresh is done automatically.</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> </FONT><BR><FONT size=2>> Thanks,</FONT>
<BR><FONT size=2>> </FONT><BR><FONT size=2>> Jorge Loureiro</FONT>
<BR><FONT size=2>> </FONT><BR><FONT size=2>> </FONT><BR><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>
<BR><FONT size=2>> </FONT><BR><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>
<BR><FONT size=2>> </FONT><BR><FONT size=2>> </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>