Skip to main content
Solved

Create an HTML document with a hyperlink using the HTMLReportGenerator

  • February 17, 2017
  • 2 replies
  • 123 views

austinh
Contributor
Forum|alt.badge.img+4

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?

Best answer by taojunabc

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.

View original
Did this help you find an answer to your question?

2 replies

taojunabc
Participant
Forum|alt.badge.img+6
  • Participant
  • Best Answer
  • February 18, 2017

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.


srg
Forum|alt.badge.img+10
  • February 19, 2017

@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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings