<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Create a new MgSelection object with the Third Attribute being 0.&nbsp; That
will select all elements returned from your feature Reader.<br>
Below is an example for Java:<br>
&nbsp; &nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; MgFeatureReader selectFeatureReader =
featureService.SelectFeatures(resId, featureClassName, queryOptions);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MgSelection sel = new MgSelection(map);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sel.AddFeatures(layer, selectFeatureReader, 0);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectionText = sel.ToXml();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sel.Save(resourceService, args.getMapName());<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.Save(resourceService);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectFeatureReader.Close();<br>
<br>
-scott<br>
<br>
<br>
HCammus wrote:
<blockquote cite="mid9443702.post@talk.nabble.com" type="cite">
  <pre wrap="">I take the same "problem", you have found a soluction?


SUDIP (INDIA) wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>