You need to sign in to do that
Don't have an account?

Controller extension error
Having an issue with this extension code giving me:
Save error: Invalid type: ApexPages.StandardController LACCtrlExtension.cls /natenv.sandbox/src/classes line 4 Force.com save problem
Here is the code.
public with sharing class LACCtrlExtension {
public Task task {get; set;}
public LACCtrlExtension(ApexPages.StandardController controller) {
this.task = (Task)controller.getRecord();
this.task.whatId = ApexPages.currentPage().getParameters().get('what_id');
this.task.subject = ApexPages.currentPage().getParameters().get('tsk5');
this.task.type = 'Call';
this.task.status = 'Completed';
this.task.activitydate = Date.today();
}
}
Weird -- works for me -- I copy-pasted your code into Winter 13 sandbox and it saved no issue
All Answers
Weird -- works for me -- I copy-pasted your code into Winter 13 sandbox and it saved no issue
Finally got mine to accept. Don't know what it was causing the problem.