Thank you stefan....<br><br>I got the sessionId and mapname....<br> <br>now when i entered the panId this error is occuring <br><br>
T<b>he specified
object was not found.The specified object was not found.
Exception occurred in method GetItem at line 117 in file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\common\foundation\Data/NamedCollection.cpp <br> <br></b>that may be the problem of the code in selectlocation.php.I copied it from devguide (page 53) and changed like this<br>
<br>$districtQuery = new MgFeatureQueryOptions();<br> $districtQuery->SetFilter("pan_id=$ID");<br><br> $layer = $map->GetLayers()->GetItem('panchayat');<br> $featureReader = $layer->SelectFeatures($districtQuery);<br>
$featureReader->ReadNext();<br> $districtGeometryData = $featureReader-><br> GetGeometry('Data');<br><br> // Convert the AGF binary data to MgGeometry.<br><br> $agfReaderWriter = new MgAgfReaderWriter();<br>
$districtGeometry = $agfReaderWriter->Read($districtGeometryData);<br><br> // Create a filter to select the desired features. Combine<br> // a basic filter and a spatial filter.<br><br> $queryOptions = new MgFeatureQueryOptions();<br>
$queryOptions->SetFilter("pan_id=$ID"); <br> $queryOptions->SetSpatialFilter('panchayat', $districtGeometry, MgFeatureSpatialOperations::Inside);<br><br> // Get the features from the feature source,<br>
// turn it into a selection, then save the selection as XML.<br><br> $layer = $map->GetLayers()->GetItem(0);<br> $featureReader = $layer->SelectFeatures($queryOptions);<br><br> $layer = $map->GetLayers()->GetItem(0);<br>
$selection = new MgSelection($map);<br> $selection->AddFeatures($layer, $featureReader, 0);<br> $selectionXml = $selection->ToXml();<br> <br><br>I<b>n this" panchayat" is my layer name and each polygon in the layer having a unique id "pan_id".<br>
Is it correct???<br><br><br></b> thanks &regards<br>susan<br><br><br><div class="gmail_quote">On Tue, May 5, 2009 at 3:54 PM, Stefan Dalakov <span dir="ltr"><<a href="mailto:s.dalakov@mapware.net">s.dalakov@mapware.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Susan,<br>
this one for sure works :<br>
<br>
<br>
<head><br>
<script language="javascript"><br>
function MyOnLoad ()<br>
{<br>
document.myform.SESSION.value=parent.parent.mapFrame.GetSessionId();;<div class="im"><br>
document.myform.MAPNAME.value=parent.parent.mapFrame.GetMapName() ;;<br>
}<br>
</script><br></div>
</head><br>
<body onLoad="MyOnLoad()"><br>
<form name="myform" action="selectlocation.php" method="get"><div class="im"><br>
Enter PanId <input type="text" name="PanId"/><br><br><br></div>
<input type="hidden" name="SESSION" value=""/><br>
<input type="hidden" name="MAPNAME" value=""/><div class="im"><br>
<input type="submit" value="Submit" /><br>
</form><br>
<br><br><br></div>
</body><br>
<br>
If it doesn't work just check references to mapFrame - parent.parent.mapFrame or parent.mapFrame - depends from where you are calling it.<br>
Setselection.php needs to get these values from the calling routine from client side - there is no way for setselection to guess the session id of the caller<br>
<br>
Stefan Dalakov<br>
<br>
<br>
<br>
susan Daniel wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
hi all..<br>
can i give this sessionId and mapname directly in selectlocation.php page.If so how???<br>
<br>
thanka&regards<br>
susan<br>
<br></div><div class="im">
On Tue, May 5, 2009 at 11:10 AM, Zac Spitzer <<a href="mailto:zac.spitzer@gmail.com" target="_blank">zac.spitzer@gmail.com</a> <mailto:<a href="mailto:zac.spitzer@gmail.com" target="_blank">zac.spitzer@gmail.com</a>>> wrote:<br>
<br>
that looks right<br>
<br>
try using fiddler to monitor track what is being passed back up to<br>
the server<br>
<br>
r u using firefox with firebug?<br>
<br>
you could also add an<br>
<br>
alert(Getsession());<br>
<br>
to make sure the session id is being returned<br>
<br>
<br>
On Tue, May 5, 2009 at 3:35 PM, susan Daniel<br></div><div><div></div><div class="h5">
<<a href="mailto:daniel.susan6@gmail.com" target="_blank">daniel.susan6@gmail.com</a> <mailto:<a href="mailto:daniel.susan6@gmail.com" target="_blank">daniel.susan6@gmail.com</a>>> wrote:<br>
> hi......<br>
> Did u mean like this<br>
><br>
> <form action="selectlocation.php" method="GET"><br>
> Enter PanId <input type="text" name="PanId"/><br><br><br>
><br>
> <input type="hidden" name="SESSION" id="mg_session" value=""/ ><br>
> <script language="javascript"><br>
> document.getElementById('mg_session').value=Getsession();<br>
> </script><br>
><br>
><br>
> <input type="submit" value="Submit" /><br>
> </form><br>
><br>
> but still the error is occuring...<br>
><br>
> the error is like this<br>
><br>
> Invalid argument(s): [1] = "" The session ID is invalid because<br>
the session<br>
> separator character was not found.Invalid argument(s): [1] = ""<br>
The session<br>
> ID is invalid because the session separator character was not found.<br>
> Exception occurred in method MgUserInformation.SetMgSessionId at<br>
line 183 in<br>
> file d:\buildforgeprojects\mapguide_open_source<br>
><br>
><br>
> Do u know what is this session separator character????<br>
><br>
> thanks&regards<br>
> susan<br>
><br>
> On Tue, May 5, 2009 at 10:44 AM, Zac Spitzer<br></div></div><div class="im">
<<a href="mailto:zac.spitzer@gmail.com" target="_blank">zac.spitzer@gmail.com</a> <mailto:<a href="mailto:zac.spitzer@gmail.com" target="_blank">zac.spitzer@gmail.com</a>>> wrote:<br>
>><br>
>> you changed the order!<br>
>><br>
>> what you have done is try to reference the hidden form field<br>
before it<br>
>> exists<br>
>><br>
>> z<br>
>><br>
>> On Tue, May 5, 2009 at 3:02 PM, susan Daniel<br></div>
<<a href="mailto:daniel.susan6@gmail.com" target="_blank">daniel.susan6@gmail.com</a> <mailto:<a href="mailto:daniel.susan6@gmail.com" target="_blank">daniel.susan6@gmail.com</a>>><div><div></div><div class="h5">
<br>
>> wrote:<br>
>> > hi zac...<br>
>> ><br>
>> > It is also not working......<br>
>> ><br>
>> > This is the code<br>
>> ><br>
>> ><br>
>> > <body><br>
>> ><br>
>> ><br>
>> ><br>
>> > <script><br>
>> > document.getElementById('mg_session').value=Getsession();<br>
>> > </script><br>
>> ><br>
>> ><br>
>> ><br>
>> > <form action="selectlocation.php" method="get"><br>
>> > Enter PanId <input type="text" name="PanId"/><br><br><br>
>> ><br>
>> > <input type="hidden" name="SESSION" id="mg_session" value=""/ ><br>
>> ><br>
>> > <input type="submit" value="Submit" /><br>
>> > </form><br>
>> ><br>
>> ><br>
>> > and in selectlocation.php i'm having this code:<br>
>> ><br>
>> > <?php $ID= $_GET['PanId'];<br>
>> ><br>
>> > ?><br /><br>
>> ><br>
>> > <body class="AppFrame" onLoad="OnPageLoad()"><br>
>> ><br>
>> > <h1 class="AppHeading">Select features</h1><br>
>> ><br>
>> ><br>
>> ><br>
>> > <?php<br>
>> > include '../common/common.php';<br>
>> ><br>
>> > $args = ($_SERVER['REQUEST_METHOD'] == "POST")? $_POST:<br>
$_GET;<br>
>> ><br>
>> > $sessionId = $args['SESSION'];<br>
>> > $mapName = $args['MAPNAME'];<br>
>> ><br>
>> ><br>
>> > try<br>
>> > {<br>
>> ><br>
>> > // Initialize the Web Extensions and connect to the<br>
Server using<br>
>> > // the Web Extensions session identifier stored in PHP<br>
session<br>
>> > state.<br>
>> ><br>
>> > MgInitializeWebTier ($webconfigFilePath);<br>
>> ><br>
>> > $userInfo = new MgUserInformation($sessionId );<br>
>> > $siteConnection = new MgSiteConnection();<br>
>> > $siteConnection->Open($userInfo);<br>
>> ><br>
>> > $map = new MgMap($siteConnection);<br>
>> > $map->Open( $mapName );<br>
>> ><br>
>> > // Get the geometry for the boundaries of District 1<br>
>> ><br>
>> > $districtQuery = new MgFeatureQueryOptions();<br>
>> > $districtQuery->SetFilter("pan_id==$ID");<br>
>> ><br>
>> > $layer = $map->GetLayers()->GetItem('Panchayat');<br>
>> > $featureReader = $layer->SelectFeatures($districtQuery);<br>
>> > $featureReader->ReadNext();<br>
>> > $districtGeometryData = $featureReader-><br>
>> > GetGeometry('Data');<br>
>> ><br>
>> > // Convert the AGF binary data to MgGeometry.<br>
>> ><br>
>> > $agfReaderWriter = new MgAgfReaderWriter();<br>
>> > $districtGeometry =<br>
$agfReaderWriter->Read($districtGeometryData);<br>
>> ><br>
>> > // Create a filter to select the desired features. Combine<br>
>> > // a basic filter and a spatial filter.<br>
>> ><br>
>> > $queryOptions = new MgFeatureQueryOptions();<br>
>> ><br>
>> > $queryOptions->SetSpatialFilter('panchayat',<br>
$districtGeometry,<br>
>> > MgFeatureSpatialOperations::Inside);<br>
>> ><br>
>> > // Get the features from the feature source,<br>
>> > // turn it into a selection, then save the selection as<br>
XML.<br>
>> ><br>
>> > $layer = $map->GetLayers()->GetItem(0);<br>
>> > $featureReader = $layer->SelectFeatures($queryOptions);<br>
>> ><br>
>> > $layer = $map->GetLayers()->GetItem(0);<br>
>> > $selection = new MgSelection($map);<br>
>> > $selection->AddFeatures($layer, $featureReader, 0);<br>
>> > $selectionXml = $selection->ToXml();<br>
>> ><br>
>> ><br>
>> > }<br>
>> > catch (MgException $e)<br>
>> > {<br>
>> > echo $e->GetMessage();<br>
>> > echo $e->GetDetails();<br>
>> > }<br>
>> > ?><br>
>> ><br>
>> > </body><br>
>> ><br>
>> > <script language="javascript"><br>
>> ><br>
>> ><br>
>> > function OnPageLoad()<br>
>> > {<br>
>> > selectionXml = '<?php echo $selectionXml; ?>';<br>
>> > parent.parent.SetSelectionXML(selectionXml);<br>
>> > }<br>
>> ><br>
>> > </script><br>
>> ><br>
>> > </body><br>
>> > </html><br>
>> ><br>
>> > Can u find any error in this?????<br>
>> ><br>
>> ><br>
>> > regards<br>
>> > susan<br>
>> ><br>
>> ><br>
>> > On Tue, May 5, 2009 at 10:14 AM, Zac Spitzer<br></div></div>
<<a href="mailto:zac.spitzer@gmail.com" target="_blank">zac.spitzer@gmail.com</a> <mailto:<a href="mailto:zac.spitzer@gmail.com" target="_blank">zac.spitzer@gmail.com</a>>><div class="im"><br>
>> > wrote:<br>
>> >><br>
>> >> quicky n dirty but it should work<br>
>> >><br>
>> >> <input type="hidden" name="SESSION" id="mg_session" value=""/ ><br>
>> >> <script><br>
>> >> document.getElementById('mg_session').value=Getsession();<br>
>> >> </script><br>
>> >><br>
>> >><br>
>> >> On Tue, May 5, 2009 at 2:39 PM, susan Daniel<br></div>
<<a href="mailto:daniel.susan6@gmail.com" target="_blank">daniel.susan6@gmail.com</a> <mailto:<a href="mailto:daniel.susan6@gmail.com" target="_blank">daniel.susan6@gmail.com</a>>><div class="im"><br>
>> >> wrote:<br>
>> >> > hi chris<br>
>> >> > I removed that quotes .but the same error<br>
occurred..Anyone<br>
>> >> > know<br>
>> >> > any<br>
>> >> > other method to pass this SessionId &mapname???<br>
>> >> > help me plsssss<br>
>> >> ><br>
>> >> > regards<br>
>> >> > susan<br>
>> >> ><br>
>> >> > On Mon, May 4, 2009 at 8:07 PM, Chris Claydon<br>
>> >> > <<a href="mailto:chris.claydon@autodesk.com" target="_blank">chris.claydon@autodesk.com</a><br></div>
<mailto:<a href="mailto:chris.claydon@autodesk.com" target="_blank">chris.claydon@autodesk.com</a>>><div class="im"><br>
>> >> > wrote:<br>
>> >> >><br>
>> >> >> It looks like this field <input type="hidden"name="SESSION"<br>
>> >> >> value="javascript:Getsession()"/ ><br>
>> >> >> is using the string “javascript:Getsession()” rather than<br>
actually<br>
>> >> >> calling<br>
>> >> >> the method and setting the value to the id that is returned.<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> If you remove the quotes, what happens then?<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> Chris.<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> From: <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br></div><div class="im">
>> >> >> [mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>] On Behalf Of susan<br>
>> >> >> Daniel<br></div><div><div></div><div class="h5">
>> >> >> Sent: Sunday, May 03, 2009 10:09 PM<br>
>> >> >> To: MapGuide Users Mail List<br>
>> >> >> Subject: Re: [mapguide-users] select the location on map<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> hi....<br>
>> >> >><br>
>> >> >> Still the same error ....<br>
>> >> >><br>
>> >> >> Invalid argument(s): [1] = "javascript:Getsession()" The<br>
session ID<br>
>> >> >> is<br>
>> >> >> invalid because the session separator character was not<br>
>> >> >> found.Invalid<br>
>> >> >> argument(s): [1] = "javascript:Getsession()" The session<br>
ID is<br>
>> >> >> invalid<br>
>> >> >> because the session separator character was not found.<br>
Exception<br>
>> >> >> occurred in<br>
>> >> >> method MgUserInformation.SetMgSessionId at line 183 in file<br>
>> >> >> d:\buildforgeprojects\mapguide_open_source<br>
>> >> >><br>
>> >> >><br>
>> >> >> my code in window.php:<br>
>> >> >><br>
>> >> >> <body><br>
>> >> >> <script language="javascript"type="javasript/text"><br>
>> >> >><br>
>> >> >> function Getsession()<br>
>> >> >> {<br>
>> >> >><br>
>> >> >><br>
document.myform.SESSION.value=parent.parent.mapframe.GetSessionId();<br>
>> >> >> }<br>
>> >> >> function Getmapname()<br>
>> >> >> {<br>
>> >> >><br>
document.myform.MAPNAME.value=parent.parent.mapFrame.GetMapName() ;<br>
>> >> >> }<br>
>> >> >> </script><br>
>> >> >><br>
>> >> >><br>
>> >> >> <form action="selectlocation.php" method="get"><br>
>> >> >> Enter PanId <input type="text" name="PanId"/><br><br><br>
>> >> >><br>
>> >> >> <input type="hidden"name="SESSION"<br>
value="javascript:Getsession()"/<br>
>> >> >> ><br>
>> >> >> <input type="hidden"name="MAPNAME"<br>
value="javascript:Getmapname()"/<br>
>> >> >> ><br>
>> >> >> <input type="submit" value="Submit" /><br>
>> >> >> </form><br>
>> >> >> <br><br><br>
>> >> >><br>
>> >> >><br>
>> >> >> Tf anyone having any idea plsss help.....I tried a lot<br>
>> >> >><br>
>> >> >><br>
>> >> >> thanks&regards<br>
>> >> >> susan<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> On Fri, Apr 24, 2009 at 4:24 PM, Stefan Dalakov<br></div></div>
>> >> >> <<a href="mailto:s.dalakov@mapware.net" target="_blank">s.dalakov@mapware.net</a> <mailto:<a href="mailto:s.dalakov@mapware.net" target="_blank">s.dalakov@mapware.net</a>>><div>
<div></div><div class="h5"><br>
>> >> >> wrote:<br>
>> >> >><br>
>> >> >> You could use something like this (executed when<br>
window.php is<br>
>> >> >> loaded)<br>
>> >> >><br>
>> >> >> document.myform.MAPNAME.value=parent.parent.mapFrame.GetMapName()<br>
>> >> >> ;<br>
>> >> >><br>
>> >> >> Stefan<br>
>> >> >><br>
>> >> >> susan Daniel wrote:<br>
>> >> >><br>
>> >> >> hi..all<br>
>> >> >> Then what i have to do?Any solution to pass these<br>
sessionId<br>
>> >> >> and<br>
>> >> >> mapname ????<br>
>> >> >><br>
>> >> >> regards<br>
>> >> >> susan<br>
>> >> >><br>
>> >> >> On Fri, Apr 24, 2009 at 3:24 PM, Stefan Dalakov<br>
>> >> >> <<a href="mailto:s.dalakov@mapware.net" target="_blank">s.dalakov@mapware.net</a> <mailto:<a href="mailto:s.dalakov@mapware.net" target="_blank">s.dalakov@mapware.net</a>><br>
>> >> >> <mailto:<a href="mailto:s.dalakov@mapware.net" target="_blank">s.dalakov@mapware.net</a><br>
<mailto:<a href="mailto:s.dalakov@mapware.net" target="_blank">s.dalakov@mapware.net</a>>>> wrote:<br>
>> >> >><br>
>> >> >> These javascript.functions never get executed. I<br>
checked now, I<br>
>> >> >> added some "alert"s and they didn't show.<br>
>> >> >><br>
>> >> >> susan Daniel wrote:<br>
>> >> >><br>
>> >> >> HI..<br>
>> >> >> I removed that brace but still the error is there<br>
>> >> >><br>
>> >> >><br>
>> >> >> regards<br>
>> >> >> susan<br>
>> >> >><br>
>> >> >> On Fri, Apr 24, 2009 at 2:35 PM, Jackie Ng<br>
>> >> >><br>
>> >> >> <<a href="mailto:jumpinjackie@gmail.com" target="_blank">jumpinjackie@gmail.com</a><br></div></div>
<mailto:<a href="mailto:jumpinjackie@gmail.com" target="_blank">jumpinjackie@gmail.com</a>> <mailto:<a href="mailto:jumpinjackie@gmail.com" target="_blank">jumpinjackie@gmail.com</a><div><div></div><div class="h5">
<br>
<mailto:<a href="mailto:jumpinjackie@gmail.com" target="_blank">jumpinjackie@gmail.com</a>>>> wrote:<br>
>> >> >><br>
>> >> >><br>
>> >> >> I see an extra brace (the very first one) in the<br>
javascript<br>
>> >> >> block that could<br>
>> >> >> be messing everything up.<br>
>> >> >><br>
>> >> >> - Jackie<br>
>> >> >><br>
>> >> >><br>
>> >> >> SusanDaniel wrote:<br>
>> >> >> ><br>
>> >> >> > hi all<br>
>> >> >> > In order to display a form in the task<br>
pane i've<br>
>> >> >> the following<br>
>> >> >> > code<br>
>> >> >> > in "....../mapviewerphp/window.php"<br>
>> >> >> ><br>
>> >> >> > <body><br>
>> >> >> > <script language="javascript"><br>
>> >> >> > {<br>
>> >> >> > function getsession()<br>
>> >> >> > {<br>
>> >> >> > sessionId=parent.parent.mapframe.GetSessionId();<br>
>> >> >> > }<br>
>> >> >> > function getmapname()<br>
>> >> >> > {<br>
>> >> >> > mapname=parent.parent.mapframe.GetMapName();<br>
>> >> >> > }<br>
>> >> >> > </script><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > <form action="selectlocation.php" method="get"><br>
>> >> >> > Enter PanId <input type="text"<br>
name="PanId"/><br><br><br>
>> >> >> ><br>
>> >> >> > <input type="hidden"name="SESSION"<br>
>> >> >> value="javascript:getsession()"/ ><br>
>> >> >> > <input type="hidden"name="MAPNAME"<br>
>> >> >> value="javascript:getmapname()"/ ><br>
>> >> >> > <input type="submit" value="Submit" /><br>
>> >> >> > </form><br>
>> >> >> ><br>
>> >> >> > *and in the selectlocation .php i am having<br>
>> >> >> > *<br>
>> >> >> > </head><br>
>> >> >> > <?php $ID= $_GET['PanId'];<br>
>> >> >> > ?>.<br /><br>
>> >> >> ><br>
>> >> >> > <body class="AppFrame" onLoad="OnPageLoad()"><br>
>> >> >> ><br>
>> >> >> > <h1 class="AppHeading">Select features</h1><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > <?php<br>
>> >> >> > include '../common/common.php';<br>
>> >> >> ><br>
>> >> >> > $args = ($_SERVER['REQUEST_METHOD'] ==<br>
"POST")? $_POST:<br>
>> >> >> $_GET;<br>
>> >> >> > $sessionId = $args['SESSION'];<br>
>> >> >> > $mapName = $args['MAPNAME'];<br>
>> >> >> ><br>
>> >> >> > try<br>
>> >> >> > {<br>
>> >> >> ><br>
>> >> >> > // Initialize the Web Extensions and<br>
connect to the<br>
>> >> >> Server using<br>
>> >> >> > // the Web Extensions session identifier<br>
stored in<br>
>> >> >> PHP session<br>
>> >> >> > state.<br>
>> >> >> ><br>
>> >> >> > MgInitializeWebTier ($webconfigFilePath);<br>
>> >> >> ><br>
>> >> >> > $userInfo = new MgUserInformation($sessionId);<br>
>> >> >> > $siteConnection = new MgSiteConnection();<br>
>> >> >> > $siteConnection->Open($userInfo);<br>
>> >> >> ><br>
>> >> >> > $map = new MgMap($siteConnection);<br>
>> >> >> > $map->Open($mapName);<br>
>> >> >> ><br>
>> >> >> > // Get the geometry for the boundaries of<br>
District 1<br>
>> >> >> ><br>
>> >> >> > $districtQuery = new MgFeatureQueryOptions();<br>
>> >> >> > $districtQuery->SetFilter("pan_id==$ID");<br>
>> >> >> ><br>
>> >> >> > $layer =<br>
$map->GetLayers()->GetItem('Panchayat');<br>
>> >> >> > $featureReader =<br>
>> >> >> $layer->SelectFeatures($districtQuery);<br>
>> >> >> > $featureReader->ReadNext();<br>
>> >> >> > $districtGeometryData = $featureReader-><br>
>> >> >> > GetGeometry('Data');<br>
>> >> >> ><br>
>> >> >> > // Convert the AGF binary data to MgGeometry.<br>
>> >> >> ><br>
>> >> >> > $agfReaderWriter = new MgAgfReaderWriter();<br>
>> >> >> > $districtGeometry =<br>
>> >> >> $agfReaderWriter->Read($districtGeometryData);<br>
>> >> >> ><br>
>> >> >> > // Create a filter to select the desired<br>
features.<br>
>> >> >> Combine<br>
>> >> >> > // a basic filter and a spatial filter.<br>
>> >> >> ><br>
>> >> >> > $queryOptions = new MgFeatureQueryOptions();<br>
>> >> >> ><br>
>> >> >> > $queryOptions->SetSpatialFilter('SHPGEOM',<br>
>> >> >> $districtGeometry,<br>
>> >> >> > MgFeatureSpatialOperations::Inside);<br>
>> >> >> ><br>
>> >> >> > // Get the features from the feature source,<br>
>> >> >> > // turn it into a selection, then save the<br>
selection<br>
>> >> >> as XML.<br>
>> >> >> ><br>
>> >> >> > $layer = $map->GetLayers()->GetItem(0);<br>
>> >> >> > $featureReader =<br>
>> >> >> $layer->SelectFeatures($queryOptions);<br>
>> >> >> ><br>
>> >> >> > $layer = $map->GetLayers()->GetItem(0);<br>
>> >> >> > $selection = new MgSelection($map);<br>
>> >> >> > $selection->AddFeatures($layer,<br>
$featureReader, 0);<br>
>> >> >> > $selectionXml = $selection->ToXml();<br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > }<br>
>> >> >> > catch (MgException $e)<br>
>> >> >> > {<br>
>> >> >> > echo $e->GetMessage();<br>
>> >> >> > echo $e->GetDetails();<br>
>> >> >> > }<br>
>> >> >> > ?><br>
>> >> >> ><br>
>> >> >> > </body><br>
>> >> >> ><br>
>> >> >> > <script language="javascript"><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > function OnPageLoad()<br>
>> >> >> > {<br>
>> >> >> > selectionXml = '<?php echo $selectionXml; ?>';<br>
>> >> >> > parent.parent.SetSelectionXML(selectionXml);<br>
>> >> >> > }<br>
>> >> >> ><br>
>> >> >> > </script><br>
>> >> >> ><br>
>> >> >> > </body><br>
>> >> >> > </html><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > *This code..But when i enter the panId in the<br>
form this<br>
>> >> >> error is occuring<br>
>> >> >> > *<br>
>> >> >> ><br>
>> >> >> > Invalid argument(s): [1] =<br>
"javascript:getsession()" The<br>
>> >> >> session ID is<br>
>> >> >> > invalid because the session separator character<br>
was not<br>
>> >> >> found.Invalid<br>
>> >> >> > argument(s): [1] = "javascript:getsession()" The<br>
session ID<br>
>> >> >> is invalid<br>
>> >> >> > because the session separator character was not<br>
found.<br>
>> >> >> Exception occurred<br>
>> >> >> > in<br>
>> >> >> > method MgUserInformation.SetMgSessionId at line<br>
183 in file<br>
>> >> >> ><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\common\mapguidecommon\System/UserInformation.cpp<br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > Any mistake in my coding?????<br>
>> >> >> ><br>
>> >> >> > Help me plss<br>
>> >> >> ><br>
>> >> >> > regards<br>
>> >> >> > susan<br>
>> >> >> ><br>
>> >> >> > On Wed, Apr 22, 2009 at 9:01 PM, Dave Wilson<br>
>> >> >> > <<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a><br>
<mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a><br>
<mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a>>>>wrote:<br>
>> >> >><br>
>> >> >> ><br>
>> >> >> >> Did you check out the samples in the downloads<br>
area of<br>
>> >> >> Osgeo?<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
<a href="http://mapguide.osgeo.org/download/releases/2.0.x-samples" target="_blank">http://mapguide.osgeo.org/download/releases/2.0.x-samples</a><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> Dave<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *Ivan Milicevic<br>
>> >> >> >> *Sent:* Wednesday, April 22, 2009 1:52 AM<br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* RE: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> You can get it from some of them. Please, read<br>
>> >> >> descritption.<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div><div class="im">
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *susan Daniel<br>
>> >> >> >> *Sent:* Wednesday, April 22, 2009 9:46 AM<br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* Re: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> Thank u....<br>
>> >> >> >> Can i get the source code of any<br>
of these<br>
>> >> >> sample<br>
>> >> >> >> applications? If so from where?<br>
>> >> >> >><br>
>> >> >> >> regards<br>
>> >> >> >> susan<br>
>> >> >> >><br>
>> >> >> >> On Wed, Apr 22, 2009 at 1:00 PM, Ivan Milicevic <<br>
>> >> >> >> <a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br>
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br>
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>>>> wrote:<br>
>> >> >> >><br>
>> >> >> >> <a href="http://mapguide.osgeo.org/livegallery.html" target="_blank">http://mapguide.osgeo.org/livegallery.html</a><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div><div class="im">
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *susan Daniel<br>
>> >> >> >> *Sent:* Wednesday, April 22, 2009 8:06 AM<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* Re: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> hi deve<br>
>> >> >> >> I couldn't find that sample<br>
application.Any<br>
>> >> >> link?<br>
>> >> >> >> regards<br>
>> >> >> >> susan<br>
>> >> >> >><br>
>> >> >> >> On Tue, Apr 21, 2009 at 8:01 PM, Dave Wilson<br>
>> >> >><br>
>> >> >> <<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a><br></div>
<mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a>> <mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a><div class="im"><br>
<mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a>>>><br>
>> >> >><br>
>> >> >> >> wrote:<br>
>> >> >> >><br>
>> >> >> >> The sample application that does the Find<br>
Address does a<br>
>> >> >> selection on the<br>
>> >> >> >> map when you click on one of the search<br>
results. I thought<br>
>> >> >> this was<br>
>> >> >> >> discussed in the Sample Application.<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> Dave<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div><div class="im">
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *susan Daniel<br>
>> >> >> >> *Sent:* Monday, April 20, 2009 12:18 AM<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* Re: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> hi alll...........<br>
>> >> >> >> I read the dev guide but<br>
didn't get any<br>
>> >> >> idea regarding<br>
>> >> >> >> this.Hav anyone tried this before pls give me<br>
any hint how<br>
>> >> >> to start this<br>
>> >> >> >> ...<br>
>> >> >> >><br>
>> >> >> >> thanks &regards<br>
>> >> >> >> susan<br>
>> >> >> >><br>
>> >> >> >> On Fri, Apr 17, 2009 at 8:18 PM, Dave Wilson<br>
>> >> >><br>
>> >> >> <<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a><br></div>
<mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a>> <mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a><div class="im"><br>
<mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a>>>><br>
>> >> >><br>
>> >> >> >> wrote:<br>
>> >> >> >><br>
>> >> >> >> Have you read through the developer’s guide? It<br>
has sample<br>
>> >> >> code for<br>
>> >> >> >> selection and explains many concepts. It sounds<br>
like you<br>
>> >> >> need to make<br>
>> >> >> >> either<br>
>> >> >> >> an invoke script or invoke url call from a<br>
command in your<br>
>> >> >> Basic or<br>
>> >> >> >> Flexible<br>
>> >> >> >> Web Layout. You don’t actually have to replace the<br>
>> >> >> gettingstarted.php. In<br>
>> >> >> >> the invoke script or invoke url command allows<br>
you to<br>
>> >> >> specify the target<br>
>> >> >> >> frame for the output of the script.<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> Regards,<br>
>> >> >> >><br>
>> >> >> >> Dave<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div><div class="im">
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *susan Daniel<br>
>> >> >> >> *Sent:* Friday, April 17, 2009 3:57 AM<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* Re: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> yeah...i know that..<br>
>> >> >> >><br>
>> >> >> >> On Fri, Apr 17, 2009 at 3:15 PM, Ivan Milicevic <<br>
>> >> >> >> <a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br>
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>><br>
>> >> >><br></div><div class="im">
>> >> >> <mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br></div><div class="im">
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>>>> wrote:<br>
>> >> >> >><br>
>> >> >> >> Did you know how to create file that display's<br>
database<br>
>> >> >> table? If you<br>
>> >> >> >> don't<br>
>> >> >> >> know that you must find help somewhere else<br>
because I'm<br>
>> >> >> not a PHP guy.<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div><div class="im">
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *susan Daniel<br>
>> >> >> >> *Sent:* Friday, April 17, 2009 11:42 AM<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* Re: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> Hi..<br>
>> >> >> >> No i dont have the file that displays database<br>
>> >> >> table...Actually iam<br>
>> >> >> >> doing this prjct in php.but i know javascript'<br>
>> >> >> >><br>
>> >> >> >> On Fri, Apr 17, 2009 at 3:02 PM, Ivan Milicevic <<br>
>> >> >> >> <a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br>
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>><br>
>> >> >><br></div><div class="im">
>> >> >> <mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br></div><div class="im">
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>>>> wrote:<br>
>> >> >> >><br>
>> >> >> >> Ok, so you have file that display's data from your<br>
>> >> >> database table? Or you<br>
>> >> >> >> don't have it at all? How familiar are you with<br>
>> >> >> javascript?<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div><div><div></div><div class="h5">
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *susan Daniel<br>
>> >> >> >> *Sent:* Friday, April 17, 2009 11:13 AM<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* Re: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> hi...<br>
>> >> >> >> My problem is that..<br>
>> >> >> >> I have a database table..Having colums<br>
place ,id etc<br>
>> >> >> .If<br>
>> >> >> i<br>
>> >> >> >> selected(clicking) a data in the table the<br>
corresponding<br>
>> >> >> place(polygon)<br>
>> >> >> >> should be displayed(selected) on the map...My<br>
map is a<br>
>> >> >> polygon map .each<br>
>> >> >> >> polygon having unique id.and the same id is<br>
present in the<br>
>> >> >> db table<br>
>> >> >> >> also....Now u got it?any idea please help...<br>
>> >> >> >><br>
>> >> >> >> regards<br>
>> >> >> >> susan<br>
>> >> >> >><br>
>> >> >> >> On Fri, Apr 17, 2009 at 2:24 PM, Ivan Milicevic <<br>
>> >> >> >> <a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br>
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>><br>
>> >> >><br></div></div><div class="im">
>> >> >> <mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br></div><div class="im">
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>>>> wrote:<br>
>> >> >> >><br>
>> >> >> >> I'm not sure that I understand your problem.<br>
With this<br>
>> >> >> code you can<br>
>> >> >> >> select<br>
>> >> >> >> any feature on map. Can you send a little bit more<br>
>> >> >> information? I'm clues<br>
>> >> >> >> over there.<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div><div class="im">
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *susan Daniel<br>
>> >> >> >> *Sent:* Friday, April 17, 2009 10:47 AM<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* Re: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> thank you ivan...<br>
>> >> >> >><br>
>> >> >> >> on which file i have to<br>
write this<br>
>> >> >> coding??? any<br>
>> >> >> >> idea??<br>
>> >> >> >><br>
>> >> >> >> regards<br>
>> >> >> >> susan<br>
>> >> >> >><br>
>> >> >> >> On Fri, Apr 17, 2009 at 2:09 PM, Ivan Milicevic <<br>
>> >> >> >> <a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br>
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>><br>
>> >> >><br></div><div class="im">
>> >> >> <mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br></div><div class="im">
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>>>> wrote:<br>
>> >> >> >><br>
>> >> >> >> OBJEKTI is layer name and other thing is path<br>
to the<br>
>> >> >> feature source.<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
"Library://SAMPLES/DATA/SEWERS/SEWERS.FeatureSource");<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> You can copy/paste feature source from mapguide<br>
maestro in<br>
>> >> >> layer<br>
>> >> >> >> definition<br>
>> >> >> >> window.<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div><div class="im">
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>>] *On Behalf<br>
>> >> >> Of *susan Daniel<br>
>> >> >> >> *Sent:* Friday, April 17, 2009 9:45 AM<br>
>> >> >> >> *To:* MapGuide Users Mail List<br>
>> >> >> >> *Subject:* Re: [mapguide-users] select the<br>
location on map<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> thank you Ivan<br>
>> >> >> >> but i 'd like to know on which file i want to<br>
write this<br>
>> >> >> coding??<br>
>> >> >> >> In ur coding OBJEKT1 is layer name right?then<br>
what is<br>
>> >> >> this<br>
>> >> >> >> "Library://PROJEKTI/" + TIMgisUser +<br>
>> >> >> "/PODACI/OBJEKTI.FeatureSource");<br>
>> >> >> >><br>
>> >> >> >> thanks and regards<br>
>> >> >> >> susan<br>
>> >> >> >><br>
>> >> >> >> On Fri, Apr 17, 2009 at 12:46 PM, Ivan Milicevic <<br>
>> >> >> >> <a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br>
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>><br>
>> >> >><br></div><div class="im">
>> >> >> <mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a><br></div><div><div></div><div class="h5">
<mailto:<a href="mailto:Ivan.Milicevic@supranet.hr" target="_blank">Ivan.Milicevic@supranet.hr</a>>>> wrote:<br>
>> >> >> >><br>
>> >> >> >> Hello Susan,<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> Here is C# code for selection, it's pretty same<br>
as PHP.<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> MgSiteConnection siteConnection = null;<br>
>> >> >> >><br>
>> >> >> >> InitializeWebTier();<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> MgUserInformation userInfo = new<br>
>> >> >> MgUserInformation(mgSessionId);<br>
>> >> >> >><br>
>> >> >> >> siteConnection = new MgSiteConnection();<br>
>> >> >> >><br>
>> >> >> >> siteConnection.Open(userInfo);<br>
>> >> >> >><br>
>> >> >> >> MgResourceService resourceService =<br>
>> >> >> siteConnection.CreateService(<br>
>> >> >> >> MgServiceType.ResourceService) as<br>
MgResourceService;<br>
>> >> >> >><br>
>> >> >> >> MgFeatureService featureService =<br>
>> >> >> siteConnection.CreateService(<br>
>> >> >> >> MgServiceType.FeatureService) as MgFeatureService;<br>
>> >> >> >><br>
>> >> >> >> MgMap map = new MgMap();<br>
>> >> >> >><br>
>> >> >> >> map.Open(resourceService, "1"); //opening<br>
map with<br>
>> >> >> name „1“<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> MgFeatureQueryOptions queryOptionsObjekti = new<br>
>> >> >> MgFeatureQueryOptions<br>
>> >> >> >> ();<br>
>> >> >> >><br>
>> >> >> >> MgAgfReaderWriter geometryReaderWriter = new<br>
>> >> >> MgAgfReaderWriter();<br>
>> >> >> >><br>
>> >> >> >> MgSelection selection = new MgSelection(map);<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> //Defining layer and feature source<br>
>> >> >> >><br>
>> >> >> >> MgLayer layerObjekti = GetLayerByName(map,<br>
"OBJEKTI");<br>
>> >> >> >><br>
>> >> >> >> MgResourceIdentifier featureResIdObjekti = new<br>
>> >> >> MgResourceIdentifier(<br>
>> >> >> >> "Library://PROJEKTI/" + TIMgisUser +<br>
>> >> >> "/PODACI/OBJEKTI.FeatureSource");<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> //Creating feature filter, this is very<br>
important<br>
>> >> >> step!<br>
>> >> >> >><br>
>> >> >> >> string filter = "ID=" + idO;<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> queryOptionsObjekti.SetFilter(filter);<br>
>> >> >> >><br>
>> >> >> >> MgFeatureReader featureReaderObjekti =<br>
>> >> >> featureService.SelectFeatures(<br>
>> >> >> >> featureResIdObjekti, "OBJEKTI",<br>
queryOptionsObjekti);<br>
>> >> >> >><br>
>> >> >> >> selection.AddFeatures(layerObjekti,<br>
>> >> >> featureReaderObjekti, 1);<br>
>> >> >> >><br>
>> >> >> >> selection.Save(resourceService, "1");<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> StringReader stream = new<br>
>> >> >> StringReader(selection.ToXml());<br>
>> >> >> >><br>
>> >> >> >> string selectionXml = selection.ToXml();<br>
>> >> >> >><br>
>> >> >> >> featureReaderObjekti.Close();<br>
>> >> >> >><br>
>> >> >> >> map.Save();<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> //Here, you call javascript function and<br>
pass the<br>
>> >> >> selection var<br>
>> >> >> >><br>
>> >> >> >> Response.Write("<script>select('" +<br>
selectionXml +<br>
>> >> >> "');</script>");<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> //This is javascript function that set's the<br>
selection<br>
>> >> >> from code and do<br>
>> >> >> >> the<br>
>> >> >> >> refresh.<br>
>> >> >> >><br>
>> >> >> >> function select(xml)<br>
>> >> >> >><br>
>> >> >> >> {<br>
>> >> >> >><br>
>> >> >> >> parent.mapFrame.SetSelectionXML(xml);<br>
>> >> >> >><br>
>> >> >> >> parent.mapFrame.ExecuteMapAction(10);<br>
>> >> >> >><br>
>> >> >> >> }<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> *From:* <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br></div></div>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>>> [mailto:<div class="im"><br>
>> >> >><br>
>> >> >> >> <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>><br>
>> >> >><br>
>> >> >> <mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank"></a></div></blockquote>...<br><br>[Message clipped] </blockquote></div><br><br clear="all"><br>-- <br>
thanks&regards<br> susan<br>