<!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">
It should be enough to call SetSelectionXml.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Berdel, Brian skrev:
<blockquote
 cite="mid:C1C7B6846221DF4A903A1433293BBD430536052A@fwex02.home.mcmtrans.com"
 type="cite">
  <pre wrap="">I have a quick question about selection as well...If I have the
selection XML can I just call the Javascript Function setSelection, or
do I have to do the code in the code behind for it to work? Basically I
have tried itand it does display that a selection has been made in the
panel and the status bar, but the map is not updated, even after a
refresh...

-Thanks

Brian  

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] On Behalf Of Kenneth,
GEOGRAF A/S
Sent: Thursday, May 08, 2008 2:56 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] MapGuide Selection and UniqueID
Determination

To be able to select items the layer must be selectable (set in the 
MapDefinition).
Secondly, the FeatureSource must have at least one identity column.
If not, all features on the layer are selected.

Regards, Kenneth Skovhede, GEOGRAF A/S



Crispin @ 1Spatial skrev:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

Can someone explain how the magic of MapGuide selection works...

Of particular interest to me is a particular ArcSDE dataset that
    </pre>
  </blockquote>
  <pre wrap=""><!---->appears
  </pre>
  <blockquote type="cite">
    <pre wrap="">fine in MapGuide but (despite correct settings in Studio) has a class
    </pre>
  </blockquote>
  <pre wrap=""><!---->of
  </pre>
  <blockquote type="cite">
    <pre wrap="">points which when mapped as a layer do not 'select' in the map.

Using a seperate direct FDO connection I can see the class has no
columns/proprttydefinitions that are "IsAutogenerated()" - is this a
requirement for a layer to be selectable or is there another criteria?

Tooltips appear OK.

 Crispin

  
    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
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>
_______________________________________________
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>
</body>
</html>