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

how to display the list of records in a vf page?
Hi
Iam having bad coding experience Pls help me in coding.How to display list of records in a visual force page?can anybody help me?
You need to sign in to do that
Don't have an account?
Hi
Iam having bad coding experience Pls help me in coding.How to display list of records in a visual force page?can anybody help me?
If you want to display list of records you can use
apex:pageBlockTable
apex:repeat
apex:dataTable
Refer this : https://ap1.salesforce.com/apexpages/apexcomponents.apexp
try this:
<apex:page controller="example4">
<apex:pageBlock >
<apex:pageBlockSection title="Page Block Table">
<apex:pageBlockTable value="{!accs}" var="a">
<apex:column value="{!a.Name}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock >
</apex:page>
public with sharing class example4 {
public list<Account> accs {get;set;}
public example4() {
accs = [Select Name From Account Limit 100];
}
}
Hi laxman thank you for reply.I want controller also mean controller code can u send me?
Thanku for reply laxman i want all the fields display in vf page by using for loop can we display ?if it posible can u send me the controler by using for loop.
For that you have to use field set.
Refer this :
http://devendranatani.blogspot.in/2011/05/how-to-use-fieldset-on-visualforce-page.html
http://www.salesforce.com/us/developer/docs/pages/Content/pages_dynamic_vf_field_sets.htm
https://na12.salesforce.com/help/doc/en/fields_about_field_sets.htm