This topic is locked

Direct Open PDF file by Hyperlink in ASRRunnerPro 7

10/27/2011 9:20:44 PM
ASPRunnerPro General questions
F
fsyeung author

I want to simple click on the hryerlink in list view page, Is it any way to modify the program to add the exten name ".pdf",because if I only setting the hryerlink with URL prefix "files/" and Display fields content with the field, the link shall only content "http://localhost:1000/local_cs/files/11100006"; without a ".pdf". Please help to solve this question.
Thx.
FS

Sergey Kornilov admin 10/28/2011

You can use 'View as' type 'Custom'.
Here is the sample code:

strValue = "<a href='/local_cs/files/" & strValue & ".pdf'>Link</a>"
F
fsyeung author 10/28/2011

Dear Sergey,
The script is working, but how to keep the number display instead the word "Link" ,also how to popup a new window and display a message when the pdf file is not exist?
Thanks
FS

Sergey Kornilov admin 10/31/2011

Here is how you can display the number instead of 'Link' word:

strValue = "<a href='/local_cs/files/" & strValue & ".pdf'>" & strValue & "</a>"


Opening it in popup or checking if file exists requires more coding. If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

F
fsyeung author 11/7/2011

Hello,

Thank you for your help and the script is Ok, Please provide a script to popup a new window when click on the link and how about the script for an alert message when the pdf is not existed. Thanks
FS

Sergey Kornilov admin 11/8/2011

Opening it in popup or checking if file exists requires more coding. If you need more help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.