You need to sign in to do that
Don't have an account?
SDK
'NotesAndAttachments' is not a valid child relationship name for entity QIF API
Hi,
When I am trying to display the NotesAndAttachments on the visualforce page i am getting the above error
I have used the following tag to display NotesAndAttachments on the page. Kindly do needfull asap.
<apex:relatedList list="NotesAndAttachments" title="Request For Proposal(RFP)" subject="{!QIF_API__c.id} />
but you can do some thing like this
<apex:page standardController="Custom_Object__c" tabStyle="Custom_Object__c">
<head>
<apex:form >
<apex:pageBlock title="Notes">
<apex:pageBlockTable value="{!Custom_Object__c.Notes}" var="note">
<apex:column HeaderValue="Edit"><a href="/{!LEFT(note.id,15)}/e?&retURL=%2Fapex%2FCustom_Object%3Fid%3D{!Custom_Obeject__c.Id}">Edit</a></apex:column>
<apex:column value="{!note.createddate}" width="120px"/>
<apex:column value="{!note.createdbyid}" width="120px"/>
<apex:column value="{!note.body}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Hope this helps.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
I have the same issue.
Notes and Attachments related List is present on the Standard Page layout.
I have also created a new custom object and a new VF page with just the statement that shows the Notes and attachment related list
<apex:page standardController="Costing_Pricing__c" tabStyle="Costing_Pricing__c">
<apex:relatedList subject="{!Costing_Pricing__c}" list="NotesAndAttachments" />
</apex:page>
I have again the same issue.
Any thoughts?
Thank you! I have been trying to get this to work for hours. Even the Force.com explorer shows the child relationship name is "NotesAndAttachments".