function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AbanteAbante 

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

 

 

Baktash H.Baktash H.

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

 

 

hemantgarghemantgarg

Make sure to initialiaze your aux list.