[mapguide-users] Unable to open MapSelection

Farah farah at egovernments.org
Fri Aug 25 06:15:42 EDT 2006


Hi Bill..!!!

 

Thanks a lot! That solved my problem!!

 

 

Regards

Farah

 

  _____  

From: Bill Dhimitri [mailto:bill.dhimitri at autodesk.com] 
Sent: Friday, August 25, 2006 3:23 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Unable to open MapSelection

 

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.ResourceServic
e);

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_c068
d4f8815e003a4650cbea9c32bc00.html#c068d4f8815e003a4650cbea9c32bc00>
(MgResourceService
<https://mapguide.osgeo.org/nonav/docs/webapi/d8/de1/class_mg_resource_servi
ce.html>  *resourceService, CREFSTRING
<https://mapguide.osgeo.org/nonav/docs/webapi/da/d10/_common_defs_8h_2697935
ae7be4121104b37ff513b810b.html#2697935ae7be4121104b37ff513b810b>  mapName)

 

 

 

Regards

Farah

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060825/87d66bc9/attachment.html


More information about the Mapguide-users mailing list