You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Peoplecode Viewattchment() issue

1 reply [Last post]
Sunanda's picture
User offline. Last seen 10 years 15 weeks ago. Offline
Joined: 05/07/2009
Posts: 2

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)
In peoplebooks it has given that viewattachment(URL,SYSFILENAME,USERFILENAME)
my file is copied in appserver ..how to give path for the URL?
Iam able to access the above given path ..in browser but if i give the same path in viewattachment function ,it is not going there and getting return code 7

Please help me on this issue..it is an urgent requirment

Thanks in advance
Sudha...

rahulkhandelw's picture
User offline. Last seen 9 years 28 weeks ago. Offline
Joined: 10/16/2009
Posts: 34
Re: Peoplecode Viewattchment() issue

First of all you need to create a URL. URL can be created at
Home>PeopleTools>Administration>Utilities>URL.

In URL path give path of pdf form on app server.