You need to sign in to do that
Don't have an account?
Ramana123
how to modify the below code using page block table
<apex:page controller="ContactsVisualforceController" standardStylesheets="false"> <apex:pageBlock> <apex:repeat value="{!displayAccounts}" var="acc"> <dl> <dt>Account Name:</dt> <dd><apex:outputText value="{!acc.Name}"/></dd> </dl> <dl><dt>Contacts:</dt></dl> <apex:repeat value="{!acc.Contacts}" var="cont"> <dl> <dd><apex:outputText value="{!cont.Name}"/></dd> </dl> </apex:repeat> </apex:repeat> </apex:pageBlock> </apex:page>
Try this code
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards