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

External Entry point - Account list
Hello everyone,
I have a {get;set;} Account List where I want to add Accounts every time I call list_Accounts() function. But I can's save, It says External Entry Point about "aux".
public with sharing class Prop { public Prop(){} public list<Account> aux public list<Account> cad {get;set;} public PageReference list_Accounts() { cad = new List<Account>(); for(Account PR:[select Id,isSelected__c from Account]) { if(PR.isSelected__c==true){aux.add(recomendaciones);} } cad=aux return null; } }
Is there any way to do this? any advice?
Thank you
i didn't read what the code does, but i see two semicolons missing.
in this line:
public list<Account> aux
and this line:
cad=aux
Make sure to initialiaze your aux list.