+ Start a Discussion
Bob_poliquinBob_poliquin 

Attachement Related List on a Visualforce Page

Is there a way to add the attachement related list on a visualforce page? Can anyone give me some code samples ?

ministe2003ministe2003

<apex:relatedList id="Attachments" subject="{!myObject}" list="NotesAndAttachments" title="Attached Documents"/>

 

list="NotesAndAttachments" is the important thing

Bob_poliquinBob_poliquin

What do you mean by {!myObject} in the subject brackets? is that the record Id?

Bob_poliquinBob_poliquin

Okay I figured out the myObject thing, but I would I get attachments to be visible on a force.com site?