function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:page standardController="Account"> <apex:form > <apex:pageBlock title="List of Contacts" tabStyle="Parent__c"> <apex:pageBlockTable value="{!Account.Contacts}" var="con"> <apex:column value="{!con.Name}"/> <apex:column value="{!con.Title}"/> <apex:column value="{!con.Email}"/> <apex:column value="{!con.Phone}"/> </apex:pageBlockTable> <apex:pageBlockButtons location="bottom"> <apex:commandButton value="New Contact"/> </apex:pageBlockButtons> </apex:pageBlock> <br/> <br/> <apex:dataTable value="{!Account.Contacts}" var="con" border="1" cellpadding="5" cellspacing="4" bgcolor="lightblue"> <apex:column value="{!con.Name}"> <apex:facet name="header">Name</apex:facet> </apex:column> <apex:column value="{!con.Title}"> <apex:facet name="header">Title</apex:facet> </apex:column> <apex:column value="{!con.Email}"> <apex:facet name="header">Email</apex:facet> </apex:column> <apex:column value="{!con.Phone}"> <apex:facet name="header">Phone</apex:facet> </apex:column> </apex:dataTable> <br/> <br/> <apex:repeat value="{!Account.Contacts}" var="con"> <apex:outputLabel >{!con.Name}</apex:outputLabel> <apex:outputLabel >{!con.Title}</apex:outputLabel> <apex:outputLabel >{!con.Email}</apex:outputLabel> <apex:outputLabel >{!con.Phone}</apex:outputLabel> <br/> </apex:repeat> </apex:form> </apex:page>
May I suggest you please refer the below code.
Please refer the below link for reference.
- https://developer.salesforce.com/forums/?id=906F0000000D9vLIAS
hope it helps.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar