[mapguide-users] Selection of Search Reasults

Scott Reisdorf reisdorf1 at llnl.gov
Mon Mar 12 18:38:55 EDT 2007


Create a new MgSelection object with the Third Attribute being 0.  That 
will select all elements returned from your feature Reader.
Below is an example for Java:
   
     MgFeatureReader selectFeatureReader = 
featureService.SelectFeatures(resId, featureClassName, queryOptions);
            MgSelection sel = new MgSelection(map);
            sel.AddFeatures(layer, selectFeatureReader, 0);
            selectionText = sel.ToXml();
            sel.Save(resourceService, args.getMapName());
            map.Save(resourceService);
            selectFeatureReader.Close();

-scott


HCammus wrote:
> I take the same "problem", you have found a soluction?
>
>
> SUDIP (INDIA) wrote:
>   
>> I want to Select all the objects on the map when I search somthing and it
>> returns some (more then one) probable results. Is there any way to select
>> all search results on the map.
>> If any one send some related code about that it can help me lots.
>> thank you
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070312/c2debe78/attachment.html


More information about the mapguide-users mailing list