In the last line, try replacing:
String selectionXML = selection.ToXml();
with:
selection.Save(resService, "Sheboygan");

And instead of the JavaScript SetSelectionXml, try to do only a map refresh:
parent.GetMapFrame().Refresh();

If it does not work, can you post the string you get from "selection.ToXml();"?

Regards, Kenneth, GEOGRAF A/S



Nick Aizen skrev:

Do you have any code snippets on how and when to do this? My process was taken from andf online example provided by Autodesk and the process works when the selection code is called from a button click and save is never called, which leaves me to wonder.."Am I doing something wrong?" I don't think I'm even effecting the viewer at all. Anyway...thanks for the help.

*Nick Aizen*

------------------------------------------------------------------------

_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to