+ Start a Discussion
bikla78bikla78 

Current Page Reference Visual Force

I created a custom link in the contact page layout for this. However, it doesn't seem to be pulling all activities associated with the contactid on the current page. I should get like over 10 events that meet this criteria but it only brings displays 2.  Something is wrong with my statement in red

 

<apex:page controller="ActivityController">
<apex:pageBlock >
<apex:pageBlockTable value="{!Activities}" var="a">
<apex:column value="{!a.subject}"/>
<apex:column value="{!a.type}"/>
<apex:column value="{!a.owner.name}"/>
<apex:column value="{!a.who.name}"/>
<apex:column value="{!a.what.name}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>




public class ActivityController
{
    Public Event[] getActivities()
    {
      string currId =ApexPages.currentPage().getParameters().get('id');
       return [Select id, subject, what.id, who.id, type, activitydate from Event
               where whoid=: currid and type= 'Client Meeting (Event)'];

    }



 
}

Message Edited by bikla78 on 10-07-2009 03:48 PM
Cool_DevloperCool_Devloper

Even i have faced the same issue :(

Wat i thought was that the categorization of tasks as events is what is causing the issue but not sure!

Also, if you enter multiple emails, than multiple events are genrated. Did you get any solution for this?

Cool_D