[mapguide-users] Not Implemented for MgSelection.GenerateFilter

Steve Dang steve.dang at autodesk.com
Tue Apr 15 14:35:09 EDT 2008


Darrin, you should head over to ADN dev support for MapGuide Studio questions.

Steve.

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Darrin Maidlow
Sent: Tuesday, April 15, 2008 12:19 PM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Not Implemented for MgSelection.GenerateFilter

Thanks Steve,

That helped me get past that problem.  I started digging into the underlying database tables and all of the key fields used were int column types.  My layer was pointing to a relatively complex view in SQL server.  A little further looking around and I see that in Mapguide Studio the keys are auto defined, and there is a date in there for some reason.  I changed the feature class used by my layer to one without the date in the keys and did not get the error.

Now I just need to figure out how all these key values are being set and if I can override them.

Is this the correct forum for studio questions?  Or should I head over to ADN dev support?

thanks again for the help.

darrin

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Steve Dang
Sent: Tuesday, April 15, 2008 9:55 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Not Implemented for MgSelection.GenerateFilter

The problem is from the web tier.  Note that the  MgSelectionBase::GenerateFilter method will throw an  MgNotImplementedException if the property type of the filtered data is not one of the following types:

MgPropertyType::Int16
MgPropertyType::Int32
MgPropertyType::Int64
MgPropertyType::String
MgPropertyType::Single
MgPropertyType::Double

Steve.

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Darrin Maidlow
Sent: Tuesday, April 15, 2008 8:30 AM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Not Implemented for MgSelection.GenerateFilter

Steve,

I checked the error.log and there doesn't actually seem to be any log generated for this event. I stopped the server service, cleared the log, started the service and then caused the not implemented thing.

Thanks
darrin
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Steve Dang
Sent: Monday, April 14, 2008 4:51 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Not Implemented for MgSelection.GenerateFilter

Hi Darrin,

What do you see in the server log file?

Steve.

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Darrin Maidlow
Sent: Monday, April 14, 2008 3:24 PM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Not Implemented for MgSelection.GenerateFilter

Hi Steve,

Thanks for the suggestion and quick reply.  I had tried MgSelection initially, and changed it over to MgSelectionBase in my trying of things.  I just set it back and am still receiving the Not Implemented error.

One other thing I noticed that may or may not be relevant is they if I right click and quick watch on the mgselection object, the properties are not visible in the IDE.

Below is the XML from my selection in case it is relevant.
<FeatureSet size="1">
<Layer id="4631e36a-0000-1000-8004-0011d8b31fa4">
<Classid="Default:V_FV_BLDG_DOCUMENT">
<ID>VHlwaWNhbCBIaWdoIFJpc2UgT2ZmaWNlAJkAAAAJAAAABQAAADM2MCBDYW1lcmEACAAAADM2MCBDYW1lcmEAbW92AAEAAAACAAAAT2ZmaWNlIC0gTGFyZ2UgMzYwANcHCAENAAAAAAAAAQAAAA==</ID>
</Class>
</Layer>
</FeatureSet>"

Thanks again
darrin
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Steve Dang
Sent: Monday, April 14, 2008 2:47 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Not Implemented for MgSelection.GenerateFilter

Try to use MgSelection instead of MgSelectionBase (e.g. Dim currentSel As New MgSelection(oMap))

Steve.

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Darrin Maidlow
Sent: Monday, April 14, 2008 1:28 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Not Implemented for MgSelection.GenerateFilter

Hi,

I'm stuck trying to work with a selection generated from the dwf viewer.  I've been working with the sample in the developers guide but ported over to vb.net.  I'm running MGE 2008.

Basically I go through the motions, create new selection based on the passed selectionXML and everything is cool until I get to the MgSelection.GenerateFilter call.  When I pass the layer object, and the session ID I get an MgNotImplemented error.

I've attached a text file with a bit o' code.  Any suggestions would be greatly appreciated.  I'm sure I've missed something little or done something silly.

Thanks
darrin


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


More information about the mapguide-users mailing list