You need to sign in to do that
Don't have an account?
Matt Folger
Having attachments showing up on a visualforce page
Seems simple enough, probably is like half a line of code.
I have a VF page and I need that attachment list to show up as it does in the Page Layout. Is that possible?
I have a VF page and I need that attachment list to show up as it does in the Page Layout. Is that possible?
All Answers
Please try below code and let me know.
Regards,
-Vivek
My header looks like above, because I'm using some 3rd party tools and some extensions. But it doesn't compile saying "
'Attachments' is not a valid child relationship name for entity RPP Tracker "
Is that because of the extenions or is there something else?
Thanks for the post!
Best Regards,
-Vivek
Am i missing some obvious syntax thing? Should "CurrentPage" be the actual name of the present page or is that relevant?
though i am not sure what's wrong with 'Attachments'
I have to have those extensions in there, so I added that to your code you provided Forcetree.com.
That said, it still errors out with "Visualforce ErrorHelp for this Page
'NotesAndAttachments' is not a valid child relationship name for entity RPP Tracker " when I try and save the header with the above code.
Try this.
<apex:page standardcontroller="RPP_Tracker__c" Extensions="steroid.RuntimeExtension,RPP_Tracker_DeleteAttachmentExtension"> <apex:detail relatedList="false"/> <apex:relatedList list="CombinedAttachments" subject="{!$CurrentPage.parameters.id}" />
Best Regards,
-Vivek