You need to sign in to do that
Don't have an account?
prasanth kumar
visualforce not displaying apex query data
Error: Unknown property 'zipcodes2.acclst' this is the error showing in visual force page.
apex: code:
apex: code:
public class zipcodes2 { public integer count{set;get;} List acclst{set;get;} public zipcodes2() { accLst = [select id from Postal_codes__c limit 3000] ; } }
public list acclst{get;set;}
check the above line
1. public List acclst{get; private set;}
if we declare the list in the above we cannot set the List from another class/controller. we can only set the value from the declation class/controller
2. public List acclst{get;set;}
the above declaration helps us to set the List from any other class/controller related to that salesforce instance.