Im trying to display the below format using a visualforce page.
Particulars Receipts Date Amount Received Amount paid
OnBooking 29-Oct-2012 12000 0
rec1 12-Oct-2012 0 23000
Agreement 29-Oct-2012 13000 0
rec2 13-oct-2012 0 1200
Particulars belongs to one object and receipts belongs to another object. Amount received is the field in particulars, and amount paid is the field in recipts. Currently thse two objects are related to opportunity. Im trying to use repeat functions inside repeat.
<table width="100%" border="1" cellspacing="0">
<tr>
<td colspan="11" align="center" style="font-size:15px; font-weight:bold;">SCHEDULES</td>
</tr>
<tr style="font-size:14px; font-weight:bold;">
<td> Particulars </td>
<td> Receipt No</td>
<td> Due Date </td>
<td> Amount Due </td>
<td> Amount Received </td>
</tr>
<apex:repeat value="{!psList}" var="ps">
<tr style="font-size:14px;">
<td>{!ps.Name}</td>
<td></td>
</tr>
<apex:repeat value="{!rcList}" var="rc">
<tr style="font-size:14px;">
<td></td>
<td><apex:outputfield value="{!rc.Name}" rendered="{!rc.Payment_Towards__c ='On Booking'} || {!ps.Name=='On Booking'}"/>
<!-- <apex:outputfield value="{!rc.Name}" rendered="{!rc.Payment_Towards__c ='Agreement Signing'}"/>
<apex:outputfield value="{!rc.Name}" rendered="{!rc.Payment_Towards__c ='Excavation'}"/>
</td>
<td>
<apex:outputtext value="{0,date,dd-MMM-yyyy}">
<apex:param value="{!ps.Due_Date__c}"/>
</apex:outputtext>
</td>
<td>
<apex:outputtext value="{0,number,###,###,###,##0.00}">
<apex:param value="{!ps.Total__c}"/>
</apex:outputtext>
</td>
<td>
<apex:outputtext value="{0,number,###,###,###,##0.00}">
<apex:param value="{!ps.Payment_Received__c}"/>
</apex:outputtext>
</td>
</tr>
</apex:repeat>
</table>
How can I generate this visualforce page, can I use repeat inside repeat? The values for the second list are always the same.