My goal is to create a btn on a task related list that launches a visualforce page and does a redirect. I tried using a StandardSetController, but Error: List controllers are not supported for Task
. I turned to a custom controller, but I'm not able to get it to work. Below is some code that compiles, but the VF page does not show up as a viable selection in the drop down.
Can you tell me what's going on, and why it doesn't show in the drop down?
<apex:page controller="TaskController" >
</apex:page>
.
public with sharing class TaskController{
String retURL;
Task theTask;
String who_Id;
String what_Id;
public ApexPages.StandardSetController setcon {get; set;}
public TaskController(){
theTask = new Task();
}
}