You need to sign in to do that
Don't have an account?
Hiral Patel 25
Error: ExtensionController Compile Error: Variable does not exist: stdcontroller at line 6 column 29
public class ExtensionController
{
public final Account acct;
public ExtensionController(ApexPages.StandardController controller)
{
this.acct = (Account)stdcontroller.getRecord();
}
public string getGreeting()
{
return 'Hello' + acct.name + '('+ acct.id +')';
}
}
Error: ExtensionController Compile Error: Variable does not exist: stdcontroller at line 6 column 29
Error: ExtensionController Compile Error: Variable does not exist: stdcontroller at line 6 column 29
public class ExtensionController
{
public final Account acct;
public ExtensionController(ApexPages.StandardController controller)
{
this.acct = (Account)stdcontroller.getRecord();
}
public string getGreeting()
{
return 'Hello' + acct.name + '('+ acct.id +')';
}
}
Can you try changing the below lines:
to
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.