+ Start a Discussion
vickySFDCvickySFDC 

How to display note& Attachements in same list Vf page?Urgent Help...

Hi,

 

 

I want to display Notes and attachement values in VF page?Whatever in std page Notes and Attachment  functionality as same list in VF page?How to add this in VF page?Give explain code ...Urgent

 

 

 

Thanks,

 

Vicky 

Dhaval PanchalDhaval Panchal

See below example.

 

<apex:page standardController="Account">
    <apex:relatedList list="NotesAndAttachments"/>
</apex:page>

 

You can add standard related list in vf page.

vickySFDCvickySFDC

Hi,

 

Thanks for reply...

 

But requirement in different scenario..

I am using Extension controller and adding as inline VF page for that  Cutomobject page layout.In this  i want to display Notes and Attachment in same list like in Standard Notes& Attachment page.How to add this scenario in Vf page?Pls help on this....

 

 

Thanks,

 

Vicky

 

 

 

Dhaval PanchalDhaval Panchal

If you want to add "Notes and Attachment" related list to custom object detail page layout then, you can do this directly also.

open custom object page layout and go to related list, you will find Notes and Attachment related list, just add in to page layout.

 

and also you can give id to <Apex:RelatedList> as shown below.

 

<apex:page id="mypage" standardController="Account" extensions="ContactList">
    <apex:relatedList subject="{!Account.Id}" list="NotesAndAttachments"/>
</apex:page>

 You can use your varible insted of {!Account.Id}.

vickySFDCvickySFDC

Hi,

Thanks for rply.

 

How to add this in VF page?But I have to add this Notes and Attchment in same list in Apex controller?

 

 

test.jpg-- this is attchment
test.txt-- this is note
like this i have to add in my page ?How to add this notes and attachment in same list in Apex controller?

 

 

Thanks,

 

 

Vicky

 

Dhaval PanchalDhaval Panchal
Hey I have shown you vf page code only.
Do one thing give me your vf page code, I will show you how to do this.