+ Start a Discussion
hkp716hkp716 

Error: Compile Error: Entity is not org-accessible at line 1 column 8

Hey everyone,

 

I get this error thrown.  Any ideas?

 

Controller:

 

public class listTest{

private String[] selectedMakes = new String[]{};
private SelectOption[] availableList;
private SelectOption[] chosenList;
private String selectedTitle;
private String deSelectedTitle;
private static String MULTIPICKLIST_SEPERATOR = ';';

public ApexPages.StandardController MyProductController2 {get; set;}
public Product2 Product2 {get; set;}


public SelectOption[] getAvailableList(){
if (availableList == null) {
availableList = new SelectOption[]{};
List <Product2> pmakes = [Select Name, display_name__c, sku__c from Product2];
for (Product2 f : pmakes ) {
availableList.add(new SelectOption(f.sku__c, f.sku__c));
}
}

return availableList ;
}

public SelectOption[] getChosenList(){
if (chosenList== null) {
chosenList= new SelectOption[]{};
}
combineOptions(chosenList);
return chosenList;
}

private String combineOptions(List<SelectOption> values) {
String result = '';
for(SelectOption s: values) {
result = result + MULTIPICKLIST_SEPERATOR + s.getValue();
quote.es_nlp_makes__c = result;
}
return result;
}

public String getDeselectedTitle(){

deselectedTitle = 'Available';

return deselectedTitle;

}

public String getSelectedTitle(){

selectedTitle = 'Chosen';

return selectedTitle;

}
}

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

With regard to this line:

 

quote.es_nlp_makes__c = result;

 

quote has not been declared anywhere, its simply been used.  Thus the compiler will go with the quote in the system namespace, which is an sobject type that has to be enabled.

 

All Answers

bob_buzzardbob_buzzard

With regard to this line:

 

quote.es_nlp_makes__c = result;

 

quote has not been declared anywhere, its simply been used.  Thus the compiler will go with the quote in the system namespace, which is an sobject type that has to be enabled.

 

This was selected as the best answer
hkp716hkp716

Thanks Bob i removed it.

 

-hkp716