[mapguide-trac] #1208: SelectFeatures doesn't work if filter is
secondary property
MapGuide Open Source
trac_mapguide at osgeo.org
Wed Dec 16 02:23:20 EST 2009
#1208: SelectFeatures doesn't work if filter is secondary property
-------------------------------+--------------------------------------------
Reporter: christinebao | Owner: Christine Bao
Type: defect | Status: new
Priority: medium | Milestone:
Component: Feature Service | Version: 2.1.0
Severity: major | Keywords:
External_id: 1282026 |
-------------------------------+--------------------------------------------
Steps to reproduce:[[BR]]
(The following data names are for explanation and understanding. You can
use any data as needed)
[[BR]]
Open MapGuide Studio:
1. Connect to Primary.SDF, assuming it has properties: ID, Name.[[BR]]
2. Connect to Secondary.SDF, assuming it has properties: ID, Code.[[BR]]
3. Open Primary.FeatureSource, create a join with following
conditions:[[BR]]
Extension name is: Join_Extension[[BR]]
Primary.ID = Secondary.ID[[BR]]
One-to-one[[BR]]
4. View the extension data in MapGuide FeatureSource editor, and there are
properties: ID, Name, SecondaryID, SecondaryCode. Please note the last
two, they are from secondary table, and the property name is formatted by
"Secondary table name" + "Property name".[[BR]]
5. Use MapGuide agent to test FeatureService -> SelectFeatures:[[BR]]
a. If use property from primary table as filter, for example "ID=1",
the result is right.[[BR]]
b. If use property from secondary table as filter, for example
"SecondaryID=1", there is an exception: FDO can't execute query.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1208>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list