[Mapguide-trac] [mapguide-trac] #2193: Make method MgSelectionBase::GenerateFilters to be a published Api

MapGuide Open Source trac_mapguide at osgeo.org
Sun Dec 2 23:19:15 PST 2012


#2193: Make method MgSelectionBase::GenerateFilters to be a published Api
---------------------------+------------------------------------------------
   Reporter:  zhanga       |       Owner:       
       Type:  enhancement  |      Status:  new  
   Priority:  low          |   Milestone:  2.5  
  Component:  General      |     Version:  2.1.0
   Severity:  minor        |    Keywords:       
External_id:  1479417      |  
---------------------------+------------------------------------------------
 There is a publish Api MgSelectionBase::GenerateFilter(MgLayerBase* layer,
 CREFSTRING className) in class MgSelectBase, which generates a Fdo filter
 text for the selections of the specified layer and class. If the key of
 the layer has more than one column e.g. K1 and K2, the generated filter
 text is like '(K1=xxx AND K2=xxx) OR (K1=xxx AND K2=xxx) OR ...'. This
 kind of fitler text cannot be broken into small pieces by MgSelectCommand.
 If the selection set is very big, it is possible that the generated filter
 text exceed the max length of Sql statement. [[BR]]
 So now we make the method MgSelectionBase::GenerateFilters(MgLayerBase*
 layer, CREFSTRING className, INT32 selectionSize) to be a published Api.
 The caller (php, asp from web-tier side) can use this method to get
 several smaller filter text of a selection to avoid the filter text exceed
 the length limit.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2193>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list