As we cannot sort open activities but on Go to List link page we can sort on any field ( Go To link appears if there are more than 5 records..this is standard functionality) .so I've built a custom inline open activities visualforce page with the link to that page but page is not showing up properly(It shows as it appears on that link.I don't want header and sidebar and footer... Just want records with sort functionality).

    <apex:page standardController="Account" extensions="inlineOpenActivites" action="{!Taskslist}" showHeader="false" sidebar="false">


    public  class inlineOpenActivites {
  public Id accountId {get;set;}
    public inlineOpenActivites(ApexPages.StandardController controller) {
       accountId =  ApexPages.currentPage().getParameters().get('Id');

    public PageReference  Taskslist()
      PageReference pageRef = new PageReference('/007?id='+ accountId  +'&rlid=RelatedActivityList&closed=0L');
      return pageRef;


What you need is the magic param : isdtp

To know more on isdtp read http://www.ca-peterson.com/2011/11/magic-isdtp-param.html

Use isdtp=lt as a param in the url

PageReference pageRef = new PageReference('/007?id='+ accountId  +'&rlid=RelatedActivityList&closed=0L&isdtp=lt');

enter image description here

| improve this answer | |
  • its working good in one org but in other org with custom domain the page is redirecting to above url (It should not redirect as it is inline VF Page) – sfdc Jun 10 '15 at 3:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.