Skip to main content

I am generating reports using the HTMLReportGenerator and would like to have a hyperlink within the HTML output that links to a pdf, shz, csv..... I can generate the url address as an attribute, however I have not been able to output the HTML with the hyperlink.

Anyone been able to do this? Ideas?

You can add HTML tags when generating url address attribute, eg.<a href="file path">File name</a>.

But you have to pay attention, because HTMLReportGenerator will be replaced "<" to "&lt;", and replaced ">" to "&gt;", You need to replace them before the output. Please refer to the StringPairReplacer settings in the following figure.


@austinh

You should try the new Custom HTML in the HTMLReportGenerator in FME 2017RC which will let you use any HTML tag with the fme or format or user attributes in FME Workbench workspace


Reply