[mapguide-users] Hyperlink in Selection panel

Martin Morrison martin.morrison at edsi.com
Wed Jun 27 18:10:36 PDT 2012


 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-tp4984293.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



More information about the mapguide-users mailing list