Peoplecode Button

Peoplecode Viewattchment() issue

Hi all,

I have below requirement.

One PDF file is Copied under appserver and this file needs to be open when the User cliks on the Hyp[er link on the page .for this i have Placed pushbutton on the page and wriiten the below code in field cahnge event

Hi

Thanks for your answers, but i'm not being able to make it work :(
&Filepath="D:\psoft\hr88\dev\appserv\prcs\HR88DEV\log_output\SQR_sHRI0094_170783\"
&Filename='ZHRI009.PDF'
&RETCODE = ViewAttachment(&Filepath, &FileName, &Filename);
I get:
&RETCODE = 7 (Cannot locate destination system for ftp)

Button Question

All,
Is it possible create abutton in App designer with added functionality to call a custome java script method ?