Book a Demo

Author Topic: Link in HTML report  (Read 3592 times)

vhs

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Link in HTML report
« on: February 20, 2007, 11:00:28 am »
I generated a HTML-report from a diagram. The diagram includes a link to a word file. The link to the file is present in the HTML-page, but clicking on it, generates an error message in Firefox.

EA generates the following html-text (extract):

<tr>
<td width="50%" class="TableRow">
<a href="C:\path\filename.doc">C:\path\filename.doc</a></td>
<td width="10%" class="TableRow">Local File</td>
<td width="40%" class="TableRow">
<br />
<span class="NoteHeading">File Size:</span> 36 k<br />
<span class="NoteHeading">Time Stamp:</span> 20.02.2007 14:35:57<br />
</td>
</tr>

The line
<a href="C:\path\filename.doc">C:\path\filename.doc</a>
should read like this:
<a href="file:///C:\path\filename.doc">C:\path\filename.doc</a>

The 'file:///' part tells Firefox to open the file. Because the extension is connected to word, a click on the link opens word and shows the file. That works fine as expected.

The question is, what to change, where and how, in order to get the string 'file:///' included in front of the filename?

Any suggestion or hint is very much appreciated.

Many thanks in advance.

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Link in HTML report
« Reply #1 on: February 21, 2007, 12:13:46 am »
Just a tip for workaround:
multifile replace operation using regular expression.
Peter

vhs

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Link in HTML report
« Reply #2 on: February 21, 2007, 01:45:29 am »
Quote
Just a tip for workaround:
multifile replace operation using regular expression.


That means postprocessing of the generated files every time they are regenerated. This is not a workaround but nonsense.

The question is, how to have the missing tag automatically generated too.

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Link in HTML report
« Reply #3 on: February 21, 2007, 02:02:09 am »
Surely that's a bug ?
A URL can't just be a host platform filename.

vhs

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Link in HTML report
« Reply #4 on: February 21, 2007, 02:50:25 am »
Quote
Surely that's a bug ?
A URL can't just be a host platform filename.


So what is the distinction between "Local File" and "Web Adress" good for? It does not change anything in the output.

The question is not "bug or feature", but how and where to change the template or so, which generates the html-output.

I would not mind, if the local filename were tranformed in an URL. That would make things easier, but that is not implemented.

It works fine, if I add the computername in front of the filename or add localhost or "file:///" or simply "\\". There is a button marked "..." with wich you can choose the file. I do not regard it as a feature, that I have to edit the resulting filename namually in order to have the link properly generated. There must be an other - less error-prone - way.

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Link in HTML report
« Reply #5 on: February 21, 2007, 03:21:01 am »
See Web Style Templates
in EA user guide. But I  can't help you more.
Peter

vhs

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Link in HTML report
« Reply #6 on: February 21, 2007, 09:35:29 am »
Quote
See Web Style Templates
in EA user guide. But I  can't help you more.


I certainly did this before posting in this group.