<div>Hello,</div>
<div> </div>
<div>I've done this exact scenario.. (using MapGuide Studio)</div>
<div> </div>
<div>You can either build the URL manually, and store it in a Database field Atttribute field, then point the Layer's URL to that property field in your layer settings..</div>
<div>so for example, I have a SHP file loaded with an attribute field called 'URL' which contains: /AppPage.aspx?ParcelKey=123456</div>
<div> </div>
<div>OR you can build the expression on the fly, using a field value from your data.</div>
<div>So in the URL part of my Layer I used the expression builder to make this: </div>
<div> </div>
<div>concat('<a href="http://www.domain.com/APP/AppPage.aspx?ParcelKey=">http://www.domain.com/APP/AppPage.aspx?ParcelKey=</a>', 0+"PARCELKEY")</div>
<div> </div>
<div>where "PARCELKEY" is a field in my Map Data, and a unique identifier in my Database application used to store the record in it's Tables.</div>
<div> </div>
<div>the 0+ part remove the decimal places, so that the value returned is a long integer. (this is from DBF converting of numerics when loading the data - shapefile format)</div>
<div> </div>
<div>This has actually made my javascript programming down to only one line of code. Which I very much like, because converting the Sheboygam example was a pain in the but to convert. I got it to convert, but I build many different Maps for different clients, so re-coding for each was not an option I wanted to go after.</div>
<div> </div>
<div>Here's what I've done to get up and running quick. and it's been working flawlessly.</div>
<div> </div>
<div>Set my Task Page home page to a Map homepage through my ASP DB application. This basically just allows the user to search the Web App for Parcels.</div>
<div>I've got a table in my system that links ParcelKeys to Map Handles (My unique Map data identifier), as well as the X & Y locations for that Parcel.</div>
<div> </div>
<div>So when a users searches the Database for a Parcel, it returns info from the system for that parcel, and a link built on the fly to:</div>
<div> gotopoint.aspx?X=X_LONG&Y=Y_LAT&zoomScale=12000 , with a target to the Script Frame</div>
<div> </div>
<div>And when the user clicks that link the MapFrame refreshes centered on that X/Y pair, with the Zoom Scale level I set. Depending on my Acreage size of my Parcel, I sert different Zoom scales in the gotoparcel link I create.</div>
<div> </div>
<div>Then, since the URL of the layer is built back to send a link to the Taxk Pane, when the User control-Clicks a Parcel, the Tack Pane loads a new page with Details specific to that Parcel being clicked. And because My Search Page was set as the Task Pane Home page, clicking the Home icon returns the user to the Parcel Search Screen.</div>
<div> </div>
<div>So what this does in effect is bypass all the Javacript/ASP code I've have to do to search the actual parcel through MapGuide.</div>
<div> </div>
<div>The one thing it doesn't do that the Sheboygan Map example does do is highlight the parcel when you Zoom to it on the Map. But this isn't really a concern for me. Using the scale levels, and centering the map, usually is enough for my users to find the parcel without problem (they are lablled).</div>
<div> </div>
<div>There you have it. Simple and easy, and very little JavaScript to debug.</div>
<div>In fact the only Javascript code is in the gotopoint.aspx file which just has an onload script send the X/Y, and scale to the Map.Frame.<br></div>
<div> </div>
<div>If you need more info please let me know</div>
<div> </div>
<div>-Ryan</div>
<div class="gmail_quote">On Wed, Feb 13, 2008 at 10:08 AM, lmbap <<a href="mailto:luisbap@hotmail.com">luisbap@hotmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Connecting MapGuide with a different app<br><br>Hi,<br>i already searched but can't find what I'm looking for or maybe I just can't<br>
see it.<br>What I want is when selecting an object in the map window, the task panel<br>(which is running a different application) shows all information regarding<br>that object. To show all that information I need to know the ID of the<br>
selected object in the map window<br>My question is, how can I get the ID of the object selected in the map<br>window to include it in the URL of the app running in the Task Panel?<br><br>I would like to keep only with C#/ASPX but maybe I need to use some JSP.<br>
Can anyone point me some clue, some sample, some code, some documentation,<br>some thing?<br>Thanks in advance<br><font color="#888888">--<br>View this message in context: <a href="http://www.nabble.com/Connecting-MG-with-another-app-tp15459488s16610p15459488.html" target="_blank">http://www.nabble.com/Connecting-MG-with-another-app-tp15459488s16610p15459488.html</a><br>
Sent from the MapGuide Users mailing list archive at <a href="http://nabble.com/" target="_blank">Nabble.com</a>.<br><br>_______________________________________________<br>mapguide-users mailing list<br><a href="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></font></blockquote></div><br>