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

display list of all records of my custom object in visual force page
I have my custom object,with records,i need all my records to be displayed in my visual force page... when i click on button listrecords...
you can try doing as below:
Apex :
VFP:
Let me know if it works for you.
Regards,
Lakshman
I am trying to diplay the records in VF Page as is shown above, but unable to fetch records from SOQL.
Could you please help me out.
Thank you in Advance !
public class CustomControllerView {
public List<Test__c> test{set;get;}
public void ControllerView(){
test = new List<Test__c>();
test = [SELECT Id,Name,TestPhone__c FROM Test__c LIMIT 10];
system.debug('@@@' + test);
}
}
- I read your problem and implemented it in my Org and it is working fine.
- Please use the below code and customize as per your need: -
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha.