function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matthew AllenMatthew Allen 

Split out tasks and events


I have spome basic code that many of you have already helped me with, which splits detail and related lists onto seperate tabs.

I hvae an activity related list, which is a lookup related list. Is it possible to split out Tasks and Events into seperate related lists? If so, how? and can they be sorted?

The code I am using is below. Objectives is the customer lookup related list.
<apex:page standardController="Group_Relationship__c" > 

      .activeTab {color:#fff; background-color: white; font-size:16px; 
      .inactiveTab { background-color: lightgrey; font-size:12px; color:black;
      .background { background-color: white; font-size:12px; color:black}

        <apex:pageBlock title="Action Plan" mode="maindetail">
             <apex:tabPanel switchType="client" selectedTab="tabdetails" id="AccountTabPanel" tabClass="activeTab" inactiveTabClass="inactiveTab" contentClass="background"> 
                <apex:tab label="Details" LabelWidth="250">
                <apex:detail relatedList="false"/>
                <apex:tab label="Objectives and Meetings" LabelWidth="250">        
                 <apex:relatedList list="Objectives__r"/>    
                <apex:tab label="Key Opportunities" LabelWidth="250">        
                <apex:relatedList list="KeyOpportunities__r"/>   
                <apex:tab label="Key Threats" LabelWidth="250">        
                <apex:relatedList list="KeyThreats__r"/>    
Thanks you