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

visualforce email template with Apex Repeat adds Rows rather than Columns
Hi ,
I am trying to ad a Table in Visualforce Email Template which will pull up all child records.
My code is working fine with pulling data However , Its adding mutiple rows for every new record instead of adding up Columns.
Can anybody help me identifying whats wrong? Below is my Table :-
I am trying to ad a Table in Visualforce Email Template which will pull up all child records.
My code is working fine with pulling data However , Its adding mutiple rows for every new record instead of adding up Columns.
Can anybody help me identifying whats wrong? Below is my Table :-
<table border="0" align="center" width="300"> <caption>Parts Requested</caption> <apex:repeat var="cx" value="{!relatedTo.Product_Request_Line_Items__r}"> <tr> <th> Model Number</th> <td>{!cx.Model_Number__c}</td> </tr> <tr> <th> Serial Number</th> <td> {!cx.Serial_Number__c}</td> </tr> <tr> <th> Part Number</th> <td> {!cx.Part_Number__c}</td> </tr> <tr> <th> Part Description</th> <td> {!cx.Part_Description__c}</td> </tr> <tr> <th> Quantity</th> <td> {!cx.Quantity__c}</td> </tr> <tr> <th>Reason </th> <td> {!cx.Reason__c}</td> </tr> </apex:repeat> </table>
HTH,
Suraj Gharat
Anyway below is clearly not the right way to do this, but may work.