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
Bob_zBob_z 

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_zBob_z

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

Bob_zBob_z

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