[mapguide-users] Hyperlink in Selection panel

Martin Morrison martin.morrison at edsi.com
Thu Jun 28 04:46:36 PDT 2012


This is incorrect.  

It works, we use it.  Keep in mind that valid HTML has anchor tags, you need to include those also.  E.g. <A HREF=http://myserver.com/whatever.pdf>Click ME!</A>  This of course will give you the words "Click Me!" as a clickable hyperlink.

Martin Morrison
Application Engineer
Engineering Design Systems, Inc.
3780 Peters Creek Rd Ext SW
Roanoke, VA  24018
540.345.1410
gis.edsi.com

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Ryan Northcott
Sent: Thursday, June 28, 2012 6:48 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Hyperlink in Selection panel

If you populate the data as a link the properties panel won't render the data as a hyperlink. Just text. 

The recommendation to modify the template files and code behind JavaScript is the best option. Just make sure to create backups of any files you change!


- sent via mobile iOS5

On 2012-06-27, at 9:10 PM, Martin Morrison <martin.morrison at edsi.com> wrote:

> Why not just prepopulate the data with valid HTML?
> 
> Martin'
> 
> 
> ________________________________
> From: mapguide-users-bounces at lists.osgeo.org 
> [mapguide-users-bounces at lists.osgeo.org] on behalf of GIS4U 
> [johnniegis at gmail.com]
> Sent: Wednesday, June 27, 2012 5:09 PM
> To: MapGuide Users Mail List
> Subject: Re: [mapguide-users] Hyperlink in Selection panel
> 
> We modified the propertyctrl.templ (on a site by site basis) to look for a specific property name (ie 'Township') and if it finds it, set the value of a variable to something like:
> 
> var testStr = 
> 'http://www.myserver.com/townshipplans/files/TOWNSHIP-LINK/' + 
> (+properties[i].value) + '.pdf';
> 
> and then fill the value in the table to that variable wrapped in an anchor tag.
> 
> Hope that helps,
> Jonathon
> 
> On Wed, Jun 27, 2012 at 10:09 AM, elliott17 <elliottd at ae.ca<mailto:elliottd at ae.ca>> wrote:
> I realize this topic has been discussed before but I cannot find a solution.
> 
> Is there a way of adding a hyperlink to the selection panel.  I want 
> to be able to call a report page (asp or pdf or a generic web page). I 
> can get a report page to open using the URL feature for a layer when 
> the object is hovered over.
> 
> MGOS 2.2 running a fusion layout IIS 7 on Server 2008
> 
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/Hyperlink-in-Selection-panel-tp498
> 4293.html Sent from the MapGuide Users mailing list archive at 
> Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org<mailto:mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users



More information about the mapguide-users mailing list