function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PJayaPJaya 

Related List As Attachments

developed an visual force page and renderas PDF in which dispaying the Related list NotesandAttcahments

 

 

when i save that PDF iam unable to read the notesandattachments related list data on click on the view its asking for sales force login

 

 

 

here is my code can u plz help me out

 

<apex:page standardController="Account" renderAs="PDF">
<apex:pageBlock >
You're looking at some related lists for {!account.name}:
</apex:pageBlock>
<apex:relatedList list="NotesandAttachments"/>

<apex:relatedList list="Opportunities" />
<apex:relatedList list="Contacts">
<apex:facet name="header">Titles can be overriden with facets</apex:facet>
</apex:relatedList>
<apex:relatedList list="Cases" title="Or you can keep the image, but change the text"/>
</apex:page>

 

 

Navatar_DbSupNavatar_DbSup

Hi,

 

If you are downloading the PDF on your desktop and click on the view link of the attachment. Then your default Brower will open with login page .because the attachment file is save on the salesforce sever and when you are click on the view link of the attachment then your browser try to download the file but due to expiration  of the session salesforce login page will display.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

PJayaPJaya

yeah without asking the login page

 

i need to see the attached documents data by clicking the view how can i achive that

 

can u post me some sample code