Thanks Jackie, that solved!
In the page that set the filter I call (after saved the runtime map):
if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(),
"setfilterrefresh"))
Page.ClientScript.RegisterStartupScript(this.GetType(),
"setfilterrefresh", "top.reloadmappa();", true);
And on the "main" page I create a routine:
function reloadmappa() {
var mapWidget = Fusion.getWidgetById('Map');
if (mapWidget && mapWidget.isMapLoaded()) {
mapWidget.reloadMap();
mapWidget.redraw();
}
}
Doing this the widgets work
Franco
> -----Messaggio originale-----
> Da: [email protected] [mailto:mapguide-users-
> [email protected]] Per conto di Jackie Ng
> Inviato: martedì 1 luglio 2014 18:55
> A: [email protected]
> Oggetto: Re: [mapguide-users] R: set filter on layer at runtime make
> selection tools not work
>
> Have you triggered a viewer refresh from the Fusion side so that it
> knows about the new layer?
>
> You can look at the buffer widget for an example of how that's done.
>
> - Jackie
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users