You need to sign in to do that
Don't have an account?
pranab khatua
Please help and tell me how will I get the standard lead object?
Error: AddNoteLeadController Compile Error: Incompatible types since an instance of SObject is never an instance of Lead at line 6
public class AddNoteLeadController { Public Lead ld{get;set;} public AddNoteLeadController(ApexPages.StandardController controller) { ld = (Lead)controller.getRecord(); } } <apex:page standardController="Lead" extensions="AddNoteLeadController"> <apex:form > </apex:form> </apex:page>
Please help and tell me how will I get the standard lead object?
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
Please let us know if this will help you
your code looks totally correct and working for me . I think you can refresh you developer console or refresh from server if you are using eclipse once and try to save it again.