Solved

Create an HTML document with a hyperlink using the HTMLReportGenerator

  • 17 February 2017
  • 2 replies
  • 29 views

Badge

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?

icon

Best answer by taojunabc 18 February 2017, 11:03

View original

2 replies

Badge

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.

Badge +4

@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