• Layton Everson
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi all,

I have an visualforce email template whose attachment is rendered as pdf.I display an apex repeat tag that iterates over my line items as below.
 
<table>
            <tr>
               <th><center>Product Number</center></th>               
               <th><center>Description</center></th>
               <th><center>Quantity</center></th>
               <th><center>Sales Unit</center></th>
            </tr>
            
            <apex:repeat value="{!relatedTo.Order_Line_Items__r}" var="oli">
                <tr>
                <td><center>{!oli.Product__r.Product_Id__c}</center></td>
                <td><center>{!oli.Product__r.Product_Description__c}</center></td>
                <td><center>{!oli.Quantity__c}</center></td>              
                <td><center>&nbsp;&nbsp;&nbsp;&nbsp;{!oli.Sales_Unit__c}</center></td>
                </tr>
            </apex:repeat>    
         </table>

However when there are multiple line items,the table headers are not displayed on subsequent pages.Can anyone please help?
i also reffered to the link https://developer.salesforce.com/page/Creating_Professional_PDF_Documents_with_CSS_and_Visualforce
however was not able to get it correctly
I'm frequently getting the error "System.CalloutException: Read timed out" on an HTTP Service (RESTful) call I am making from an Apex class.

It doesn't appear to be a proxy/firewall issue as I *am* able to get a response.   I think I just have a slow server on the other end.

Is there any way to increase the timeout period on this call to ensure that the web service has time to respond?

Thanks!