<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Try this php code:</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV><FONT size=2>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$userInfo = new MgUserInformation($sessionId);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$siteConnection = new MgSiteConnection();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$siteConnection->Open($userInfo);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$map = new MgMap($siteConnection);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$map->Open($mapName);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$queryOptions = new MgFeatureQueryOptions();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$queryOptions->SetFilter("$attributeName = '$attributeValue'");</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$layer = $map->GetLayers()->GetItem($layerName);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$featureReader = $layer->SelectFeatures($queryOptions);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selection = new MgSelection($map);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selection->AddFeatures($layer, $featureReader, 0);</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">$selectionXml = $selection->ToXml();</P>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">echo $selectionXml;</P>
<P></FONT> </P>
<P>execute that php code from your javascript function and add <FONT size=2>parent.parent.mapFrame.ExecuteMapAction(10); subsequently</P></FONT>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Rahul <unicorn_admirer@yahoo.com><BR>To: MapGuide Users Mail List <mapguide-users@lists.osgeo.org><BR>Sent: Friday, February 1, 2008 5:50:03 AM<BR>Subject: [mapguide-users] Select Features from Task Frame<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<P>Hi All,</P>
<P> </P>
<P> I able to search and filter the results and then display it in the task pane with zoomto view hyperlink ,so if user click on the zoom icon it use to go to that location and show the parcel/land with on the fly marker.Now what i am looking for is that with the same click icon ,i want to<STRONG><U> zoom to that location as well as select the feature with property info</U></STRONG> of that item displayed in the property pane. I tried SelXml()but i use to get error ,Anyone have idea how to getXml of each features dispalyed in the task pane list and then get the property info of that selected feature.</P>
<P> </P>
<P>Thks</P>
<P>Max !!</P></DIV><BR>
<HR SIZE=1>
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. <A href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ" target=_blank rel=nofollow>Try it now.</A><!-- kill -->
<DIV><BR><BR>-----Inline Attachment Follows-----<BR><BR>_______________________________________________<BR>mapguide-users mailing list<BR><A href="mailto:mapguide-users@lists.osgeo.org" ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR></DIV></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR></DIV></div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>