You need to sign in to do that
Don't have an account?
Mycodex
Create custom related list of Activities
Hi all, I'm trying to make a PDF version of a custom detail page. I was looking to add the related list of Open Activities and Activity History. I can't seem to figure out the SQL statement to combine the Task and Event objects together so they show as Activities.
Any help would be useful.
Any help would be useful.
Code:
public List<Event> getEvents() { return [SELECT id, whatID, subject, startdatetime, whoID, accountID FROM Event WHERE whatID = :ApexPages.currentPage().getParameters().get('id') ORDER BY startdatetime DESC]; }
relatedListHover is set to off because you want to your page to be print friendly.
This is for a custom object I call a Trip Report. Could I still use a standardcontroller to make this happen? Here is the current controller and visualforce page I use: