You need to sign in to do that
Don't have an account?

ActivityHistories is not displayed in relatedlist of custom page
I have created a VF Page for Patient__c object. Now i want to create record detailpage for Patient__c.
My Page like this:
Please any one help me to acheive this problem. i was tried many ways but not working.
Thank you
Rakesh.S
My Page like this:
<apex:page StandardController="Patient__c" extensions="PatientController" > <apex:sectionHeader subtitle="{!Patient__c.Name}" title="Patient" /> <apex:form id="formid" > ----- All entered all out put field with my requirement.----- </apex:form> <apex:relatedList list="Appointments__r"/> <apex:relatedList list="ActivityHistories" /> // which is not displayed in relatedlist. <apex:relatedList list="CombinedAttachments"/> </apex:page>while creating an object, Allow Activities check box checked. In standard Detail page, Activity History is appeared.
Please any one help me to acheive this problem. i was tried many ways but not working.
Thank you
Rakesh.S
<apex:relatedList list="ActivityHistories"/>
<apex:relatedList list="CombinedAttachments"/>
<apex:relatedList list="Appointments__r"/>
Thx
All Answers
ActivityHistories is used to display the Activities which occured in past.
Use OpenActivities to display up-coming Activities
Let me know if it helps you.
Regards
Amrender
It is not working and getting same error like 'OpenActivities' is not a valid child relationship name for entity Patient.
But i need Activity History related list in detail page of record.
Please help me to solve this problem.
Thank you.
If above case is correct, your code looks fine for me. Only possiblity that I could see, check the Profile of the user (who is accessing this page), if he has the proper access to the Task object.
Regards
Amrender
In Profile-->Object Settings like this..
after when i click Task object it looks like
Please check it once and help me..
Thank you..
You should enable "Allow Activities" when you create the custom object, for the activity history to be displayed. See screenshot below. Edit your custom object and enable the optional feature "Allow Activities". Hope this helps.
I already done with that. In standard Detail page, Activity History is appeared. but in custom page, its not appearing.
Please help me with appropriate solution.
Thank you..
It is working for me. Try disabling this flag and re-enable and see if it works, or try this
<apex:relatedList subject="{!Patient__c}" list="ActivityHistories" />
<apex:relatedList list="ActivityHistories"/>
<apex:relatedList list="CombinedAttachments"/>
<apex:relatedList list="Appointments__r"/>
Thx