I am using apex:repeat value to display the names, and a vf table to display the limit and use. My issue is that I do not want the name to repeat 5 times, I only want to say the name once, and then let the table show the limit and use data.
Please see example of data below:
Is there a way to limit the number of times apex:repeat repeats? Or is there a better way to have David displayed once.
My goal is to have the data displayed as shown below:
Currently the data is displaying like this:
VF:
<apex:page standardController="Account">
<apex:pageBlock title="Spend">
<apex:repeat value="{!account.Spend__r}" var="Spend1">
<b>Super Bank Name: {!Spend1.Name} </b>
</apex:repeat>
<apex:pageBlockTable value="{!Account.Spend_r}" var="Spend">
<apex:column value="{!Spend.Limit__c}"/>
<apex:column value="{!Spend.Use__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Thanks for your help gentlemen (and ladies)!
apex:variable
to count the number of iterations, and conditionally render based on that....however, I think it might be better to put "David" outside of the iteration altogether. Could you share your wrapper and markup?