You need to sign in to do that
Don't have an account?
mohit tripathi
visualforce controller
Hi Guys,
I am new to salesforce and it would be great if you can help me.
I am trying to initialize a list of account inside constructor but getting following error-
Error: accounttestclss Compile Error: Illegal assignment from List<Account> to List<Account> at line 7 column 6
Here is the controller=
public class accounttestclss {
public list<Account> Accont{get; set;}
public accounttestclss(ApexPages.StandardSetController controller) {
Accont= [select name , rating from Account limit 10];
}
Thanks in advance
I am new to salesforce and it would be great if you can help me.
I am trying to initialize a list of account inside constructor but getting following error-
Error: accounttestclss Compile Error: Illegal assignment from List<Account> to List<Account> at line 7 column 6
Here is the controller=
public class accounttestclss {
public list<Account> Accont{get; set;}
public accounttestclss(ApexPages.StandardSetController controller) {
Accont= [select name , rating from Account limit 10];
}
Thanks in advance
Let me know, If you you have any question.
All Answers
Let me know, If you you have any question.
It is working fine now.. thanks a lot for help.
:)