PDA

View Full Version : Displaying data as a link



Joe Coley
10-May-2005, 01:35 PM
I have a Web Report Object created using the IDE which is displaying a value
from a native Dataflex database. When this data is displayed in the report
(sDocPath), I want it to display as a clikable link to a pdf file on another
system. The (sDocPath) value file://bigbertha/taxcerts/885016.pdf when
entered into a browser does pull up the desired pdf.
I have the following code lines extracted from the wo:
<snip>
//Send WriteHtmlCell href=http:(sDocPath) 'class="Data" align="left"'
Send WriteHtmlCell sDocPath 'class="Data" align="left"'
<snip>

How would I have to change the line for sDocPath in order for the report to
display it as a link?

Anders Öhrt
10-May-2005, 04:09 PM
> How would I have to change the line for sDocPath in order for the report
> to
> display it as a link?

Something like this:
Move '<a href="file://bigbertha/taxcerts/885016.pdf">Document 885016</a>' to
sDocLink

// Anders

Joe Coley
11-May-2005, 07:01 AM
In the help I found the function Get HTMLLink and used the following to
achieve what I wanted:
Get HTMLLink sDocPath sCertinfoDoc_Name to sDocName
Send WriteHtmlCell sDoc_Name 'class=Data align=left"'


"Anders Öhrt" <Anders.Ohrt@capslock.se> wrote in message
news:nTSU7TaVFHA.3624@dacmail.dataaccess.com...
>
> > How would I have to change the line for sDocPath in order for the report
> > to
> > display it as a link?
>
> Something like this:
> Move '<a href="file://bigbertha/taxcerts/885016.pdf">Document 885016</a>'
to
> sDocLink
>
> // Anders
>
>