[mapguide-users] Unable to open MapSelection
Bill Dhimitri
bill.dhimitri at autodesk.com
Fri Aug 25 05:52:30 EDT 2006
Hi Farah,
Try using Open instead of open.
Bill
_____
From: Farah [mailto:farah at egovernments.org]
Sent: Friday, August 25, 2006 5:54 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Unable to open MapSelection
Hi,
I need to iterate through the current map selection. However, the line
mapSelection.open() gives the following error:
Does anyone know how to solve this problem?
Generated servlet error:
The method open(MgResourceService, String) is undefined for the type
MgSelection
My code:
MgResourceService resourceService =
(MgResourceService)siteConnection.CreateService(MgServiceType.ResourceSe
rvice);
MgMap map = new MgMap();
map.Open(resourceService, "Map");
MgSelection mapSelection = new MgSelection(map);
mapSelection.open(resourceService, "Map");
The definition for this method is:
virtual void
Open
<https://mapguide.osgeo.org/nonav/docs/webapi/d7/d8d/class_mg_selection_
c068d4f8815e003a4650cbea9c32bc00.html#c068d4f8815e003a4650cbea9c32bc00>
(MgResourceService
<https://mapguide.osgeo.org/nonav/docs/webapi/d8/de1/class_mg_resource_s
ervice.html> *resourceService, CREFSTRING
<https://mapguide.osgeo.org/nonav/docs/webapi/da/d10/_common_defs_8h_269
7935ae7be4121104b37ff513b810b.html#2697935ae7be4121104b37ff513b810b>
mapName)
Regards
Farah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060825/dcdd57ed/attachment.html
More information about the Mapguide-users
mailing list