Hyperlink
I am reading in data from a database and pushing it out using a simple grid. The first two fields are file names. However, I have file routines which search and tell me whether or not the file exists. If the file exists, I want to put a link to it -- if not, I want to just leave it alone and continue to the next. I am having trouble how to put in a link?
Any help, I am new. Below is a briefly what I tried:
For i=0 to (column_count-1)
if i = 0 then
funddocfile = oRecordset(i)
filepath = "./FundingDocs/" + funddocfile + ".pdf"
if CheckFileExists(filepath) Then
rows = rows & """" & activewidgets_html("<a href=""/Contracts/index.html"">" & oRecordset(i) & "</a>") & """, "
else
rows = rows & """" & activewidgets_html(oRecordset(i)) & """, "
end if
This obviously doesn't work so how do you do what I am trying to do....
Thanks.
Any help, I am new. Below is a briefly what I tried:
For i=0 to (column_count-1)
if i = 0 then
funddocfile = oRecordset(i)
filepath = "./FundingDocs/" + funddocfile + ".pdf"
if CheckFileExists(filepath) Then
rows = rows & """" & activewidgets_html("<a href=""/Contracts/index.html"">" & oRecordset(i) & "</a>") & """, "
else
rows = rows & """" & activewidgets_html(oRecordset(i)) & """, "
end if
This obviously doesn't work so how do you do what I am trying to do....
Thanks.
John
June 28,