hi....<br><br> <b>Still the same error ....</b><br><br>Invalid argument(s):
        [1] = "javascript:Getsession()"
The session ID is invalid because the session separator character was not found.Invalid argument(s):
        [1] = "javascript:Getsession()"
The session ID is invalid because the session separator character was not found.
Exception occurred in method MgUserInformation.SetMgSessionId at line 183 in file d:\buildforgeprojects\mapguide_open_source<br><br><br><b>my code in window.php: <br><br><body> <br><script language="javascript"type="javasript/text"><br>
<br>function Getsession()<br>{<br> document.myform.SESSION.value=parent.parent.mapframe.GetSessionId();<br>}<br>function Getmapname()<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" value="javascript:Getsession()"/ ><br>
<input type="hidden"name="MAPNAME" value="javascript:Getmapname()"/ ><br><input type="submit" value="Submit" /><br></form><br><br><br> <br> </b><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><br><div class="gmail_quote">On Fri, Apr 24, 2009 at 4:24 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;">You could use something like this (executed when window.php is loaded)<br>
<br>
document.myform.MAPNAME.value=parent.parent.mapFrame.GetMapName() ;<br>
<br>
Stefan<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>
Then what i have to do?Any solution to pass these sessionId and mapname ????<br>
<br>
regards<br>
susan<br>
<br></div><div class="im">
On Fri, Apr 24, 2009 at 3:24 PM, Stefan Dalakov <<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>>> wrote:<br>
<br>
These javascript.functions never get executed. I checked now, I<br>
added some "alert"s and they didn't show.<br>
<br>
susan Daniel wrote:<br>
</div><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..<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></div><div><div></div><div class="h5">
<<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>>> wrote:<br>
<br>
<br>
I see an extra brace (the very first one) in the 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 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" 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'] == "POST")? $_POST:<br>
$_GET;<br>
> $sessionId = $args['SESSION'];<br>
> $mapName = $args['MAPNAME'];<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<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 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.<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 selection<br>
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>
> }<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 form this<br>
error is occuring<br>
> *<br>
><br>
> Invalid argument(s): [1] = "javascript:getsession()" The<br>
session ID is<br>
> invalid because the session separator character was not<br>
found.Invalid<br>
> argument(s): [1] = "javascript:getsession()" The session ID<br>
is invalid<br>
> because the session separator character was not found.<br>
Exception occurred<br>
> in<br>
> method MgUserInformation.SetMgSessionId at line 183 in file<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></div></div>
<mailto:<a href="mailto:dave.wilson@autodesk.com" target="_blank">dave.wilson@autodesk.com</a>>>wrote:<div class="im"><br>
><br>
>> Did you check out the samples in the downloads area of Osgeo?<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></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>
>> <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 location on map<br>
>><br>
>><br>
>><br>
>> You can get it from some of them. Please, read 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></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>
>> <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 location on map<br>
>><br>
>><br>
>><br>
>> Thank u....<br>
>> Can i get the source code of any 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></div><div class="im">
<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></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>
>> <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 location on map<br>
>><br>
>><br>
>><br>
>> hi deve<br>
>> I couldn't find that sample application.Any link?<br>
>> regards<br>
>> susan<br>
>><br>
>> On Tue, Apr 21, 2009 at 8:01 PM, Dave Wilson<br></div>
<<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>
>> wrote:<br>
>><br>
>> The sample application that does the Find Address does a<br>
selection on the<br>
>> map when you click on one of the search 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></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>
>> <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 location on map<br>
>><br>
>><br>
>><br>
>> hi alll...........<br>
>> I read the dev guide but didn't get any<br>
idea regarding<br>
>> this.Hav anyone tried this before pls give me 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></div>
<<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>
>> wrote:<br>
>><br>
>> Have you read through the developer’s guide? It has sample<br>
code for<br>
>> selection and explains many concepts. It sounds like you<br>
need to make<br>
>> either<br>
>> an invoke script or invoke url call from a 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 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></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>
>> <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 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></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 database<br>
table? If you<br>
>> don't<br>
>> know that you must find help somewhere else 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></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>
>> <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 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></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 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></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>
>> <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:13 AM<br>
>><br>
>><br>
>> *To:* MapGuide Users Mail List<br>
>> *Subject:* Re: [mapguide-users] select the location on map<br>
>><br>
>><br>
>><br>
>> hi...<br>
>> My problem is that..<br>
>> I have a database table..Having colums place ,id etc .If i<br>
>> selected(clicking) a data in the table the corresponding<br>
place(polygon)<br>
>> should be displayed(selected) on the map...My map is a<br>
polygon map .each<br>
>> polygon having unique id.and the same id is 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></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. 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></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>
>> <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 location on map<br>
>><br>
>><br>
>><br>
>> thank you ivan...<br>
>><br>
>> on which file i have to 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></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 to the<br>
feature source.<br>
>><br>
>><br>
>><br>
>> "Library://SAMPLES/DATA/SEWERS/SEWERS.FeatureSource");<br>
>><br>
>><br>
>><br>
>> You can copy/paste feature source from mapguide 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></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>
>> <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 location on map<br>
>><br>
>><br>
>><br>
>> thank you Ivan<br>
>> but i 'd like to know on which file i want to write this<br>
coding??<br>
>> In ur coding OBJEKT1 is layer name right?then what is 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></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 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 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 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, "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 important step!<br>
>><br>
>> string filter = "ID=" + idO;<br>
>><br>
>><br>
>><br>
>> queryOptionsObjekti.SetFilter(filter);<br>
>><br>
>> MgFeatureReader featureReaderObjekti =<br>
featureService.SelectFeatures(<br>
>> featureResIdObjekti, "OBJEKTI", queryOptionsObjekti);<br>
>><br>
>> selection.AddFeatures(layerObjekti,<br>
featureReaderObjekti, 1);<br>
>><br>
>> selection.Save(resourceService, "1");<br>
>><br>
>><br>
>><br>
>> StringReader stream = new 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 pass the<br>
selection var<br>
>><br>
>> Response.Write("<script>select('" + selectionXml +<br>
"');</script>");<br>
>><br>
>><br>
>><br>
>> //This is javascript function that set's the 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></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>
>> <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:11 AM<br>
>> *To:* <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> *Subject:* [mapguide-users] select the location on map<br>
>><br>
>><br>
>><br>
>> hi all<br>
>> My plat form is mapguide maestro&php.I connect it<br>
with mysql.Now<br>
>> i<br>
>> want to select the corresponding polygon on the map while<br>
clicking on the<br>
>> data in database.In order to display the database table in<br>
the taskpane,i<br>
>> removed the contents of the file "/mapviewerphp/getting<br>
started .php" and<br>
>> wrote my codings.then how to select the polygon?.Any one know<br>
>> this????Anyone<br>
>> having coding to do this???<br>
>> please help me<br>
>><br>
>><br>
>> thanks&regards<br>
>> susan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> thanks&regards<br>
>> susan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> thanks&regards<br>
>> susan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> thanks&regards<br>
>> susan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> thanks&regards<br>
>> susan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> thanks&regards<br>
>> susan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> thanks&regards<br>
>> susan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> thanks&regards<br>
>> susan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> thanks&regards<br>
>> susan<br>
>><br>
>> _______________________________________________<br>
>> mapguide-users mailing list<br>
>> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
>><br>
>><br>
><br>
><br>
> --<br>
> thanks&regards<br>
> susan<br>
><br>
> _______________________________________________<br>
> mapguide-users mailing list<br>
> <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
><br>
><br>
<br>
--<br>
View this message in context:<br>
<a href="http://n2.nabble.com/select-the-location-on-map-tp2649765p2691346.html" target="_blank">http://n2.nabble.com/select-the-location-on-map-tp2649765p2691346.html</a><br>
Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br>
<br>
<br>
<br>
-- thanks&regards<br>
susan<br>
------------------------------------------------------------------------<br>
_______________________________________________ mapguide-users<br>
mailing list <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im"><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</div></blockquote>
<br>
<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a> <mailto:<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>><div class="im">
<br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br>
<br>
<br>
<br>
-- <br>
thanks&regards<br>
susan<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">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>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">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></blockquote></div><br><br clear="all"><br>-- <br> thanks&regards<br> susan<br>