<!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">
I find that to be difficult at first.<br>
In the javascript you only have an Xml that contains<br>
<tt>&lt;FeatureSet&gt;<br>
&nbsp; &lt;Layer id="guid&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;Class id="schema"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;ID&gt;base64encoded_id&lt;/ID&gt;<br>
&nbsp;&nbsp; &lt;/Class&gt;<br>
&nbsp; &lt;/Layer&gt;<br>
&lt;/FeatureSet&gt;</tt><br>
<br>
The can be multiple layers, multiple class and multiple ID entries.<br>
With this info, you must query the runtime map to find the layer(s)
with the corresponding Guid.<br>
Then you must query the layer's featuresource to retrive the rows and
columns corresponding to the given ID's for the schema.<br>
The result is the data for the selected features.<br>
<br>
Another way to do it, is used in the standard viewer:<br>
C:\Program
Files\MapGuideOpenSource2.0\WebServerExtensions\www\mapviewernet\<br>
<br>
Basically you have the following procedure:<br>
<tt>function SetSelection(selText, requery)<br>
{<br>
&nbsp;&nbsp;&nbsp; var reqParams = "SESSION=" + sessionId + "&amp;MAPNAME=" +
encodeURIComponent(mapName) + "&amp;SEQ=" + Math.random() +
"&amp;SELECTION=" + encodeURIComponent(selText) + "&amp;QUERYINFO=" +
(requery? "1": "0");<br>
&nbsp;&nbsp;&nbsp; reqHandler = CreateRequestHandler();<br>
&nbsp;&nbsp;&nbsp; reqHandler.open("POST", setSelScript, false);<br>
&nbsp;&nbsp;&nbsp; reqHandler.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");<br>
&nbsp;&nbsp;&nbsp; reqHandler.send(reqParams);<br>
&nbsp;&nbsp;&nbsp; if(requery)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return reqHandler.responseXML;<br>
}</tt><br>
<br>
The selText is the selection xml, and if requery is set, the return
value should contain the info you are looking for.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Nick Aizen skrev:
<blockquote
 cite="mid:C5302DE97C388A46AB9F6FA0B91AC81908DD53F3C7@AUSP01VMBX01.collaborationhost.net"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal">Can anyone explain the best way to display the
properties or
information that refers to the currently selected item in the viewer
programmatically?
  <o:p></o:p></p>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal">Thanks,<o:p></o:p></p>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal"><b>Nick Aizen<o:p></o:p></b></p>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>