Try this php code:
$userInfo = new MgUserInformation($sessionId);
$siteConnection = new MgSiteConnection();
$siteConnection->Open($userInfo);
$map = new MgMap($siteConnection);
$map->Open($mapName);
$queryOptions = new MgFeatureQueryOptions();
$queryOptions->SetFilter("$attributeName = '$attributeValue'");
$layer = $map->GetLayers()->GetItem($layerName);
$featureReader = $layer->SelectFeatures($queryOptions);
$selection = new MgSelection($map);
$selection->AddFeatures($layer, $featureReader, 0);
$selectionXml = $selection->ToXml();
echo $selectionXml;
execute that php code from your javascript function and add
parent.parent.mapFrame.ExecuteMapAction(10); subsequently
----- Original Message ----
From: Rahul <[EMAIL PROTECTED]>
To: MapGuide Users Mail List <[email protected]>
Sent: Friday, February 1, 2008 5:50:03 AM
Subject: [mapguide-users] Select Features from Task Frame
Hi All,
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 zoom to that
location as well as select the feature with property info 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.
Thks
Max !!
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-----Inline Attachment Follows-----
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users