[fusion-users] HTML in selection results?

Jason Birch Jason.Birch at nanaimo.ca
Thu Aug 14 18:54:14 EDT 2008


Hi all,

I'd really like to be able to define some calculated columns in a
MapGuide FeatureSource like so:

<Extension>
 <Name>Assessment_Hyperlinked</Name>
 <FeatureClass>Default:AssessmentParcels</FeatureClass>
 <CalculatedProperty>
  <Name>PropertyReport</Name>
  <Expression>concat('&lt;a
href="http://citymap.nanaimo.ca/civicreportdetails.cfm?GISLINK=',concat(
"GISLINK",'" target="_new"&gt;Launch Report&lt;/a&gt;')))</Expression>
 </CalculatedProperty>
</Extension>

(this creates a "column" called PropertyReport that contains an HTML
link to the property report concatenated with the property identifier)

and then have these show up as HTML in the attribute list when you
select a feature.  I also see a case where I would want to have a
thumbnail image show up in the selection results.  Currently, defining
the columns works just fine, but the Fusion selection widget
html-encodes the data so it shows up as HTML source in the browser.

I can see why the results are html encoded (because valid user data
sometimes contains HTML entities), so I don't think that there is a
simple solution to this.

Ideally, portions of the string that look like /<a href[^>]+/ and /<img
src^>]+/ would be excluded from the html encoding...

Can anyone think of a solution?

Thanks,
Jason


More information about the fusion-users mailing list