You need to sign in to do that
Don't have an account?
affu
Task List Controller??????
Hai All,
I have one requirement, can we the get the Task list in Visualforce page?????
I have tried a lot but i couldnt find out the solution.
Here is the code. Im getting error as List Controllers are supported for Task
public with sharing class TaskPagination { private final Task t; public TaskPagination(ApexPages.StandardSetController controller) { this.c = (Task)controller.getRecord(); } public ApexPages.StandardSetController TaskRecords{ get { if(TaskRecords == null) { return new ApexPages.StandardSetController(Database.getQueryLocator( [SELECT t.ActivityDate, t.Status FROM Task t])); } return TaskRecords; } private set; } public List<Task> getTaskPagination() { return (List<Task>) TaskRecords.getRecords(); } }
Thanks in Advance..........
Hi,
Just use the following code :
If you have to display additional task fields and filters , just add them to the query.
Hope this is what you are looking.
All Answers
Hi
This is not possible to set list controller for task , it is still not supported by salesforce. All you can do , you have to add custom controller for this in which you can code as per your requirement.
Hi
see this link
http://boards.developerforce.com/t5/Visualforce-Development/Task-list-controller-possible/td-p/114383
Thanks for replying ...
I have already chkd the code and i dint understand how it works and it is complicated one
can u please suggest any other solution will be very helpful to me.
Thanku U.
Hi,
Just use the following code :
If you have to display additional task fields and filters , just add them to the query.
Hope this is what you are looking.
Thanku vry much...... :)
Hi,
thanks for that code.. But due to some reason.. I cannot see that visual force page in the Dashboard Datasources.
Please do help me out in rectifying the issue.
Any help would be highly appreciable.
Regards,
Pavan Kumar Garlapati
I am getting this error " [Error] Error: Compile Error: Test methods must be in test classes at line 174 column 35 "
Please help.
@S91084, The code you have provided here is working well but can we make it Dynmic as in this code u have set the List_Size=20.
Please reply.
Kind Regards
Shephali
You seem to have recently worked on this peice of code. I am working on a requirement to create a LTA field on Task. I have created the Custom Object, LTA Field and displayed using the VF page.
But, I have to display this VF page selectively for a particular User Profile & Page Layout.
I tried creating a Custom button on tasks and displaying the button on the Account's Task releated list. But here I am getting the error "List controllers are not supported for Task" as I tried to display the tasks.
Can you help me with a solution around this?
Sure will help.Please tell me.