function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Breaking a table Dynamically ??

The following is my code i retrive it from quote line items....i am rendering it as pdf ..i am able to get the table with serial num as what i give in the quote as



1.2 ,



2.2 ,


3.1 the table, but i want the table to break after serieal num 1 and separate table for 2 and so on...plz hlp me out...




<apex:repeat value="{!QuoteLineItem}" var="a">

<table border="1" width="100%" id="table4">
       <td bgcolor="#C0C0C0"><font face="Arial">S.No:</font></td>
       <td bgcolor="#C0C0C0" width="40%"><font face="Arial">Product--Description</font></td>     

       <td bgcolor="#C0C0C0"><font face="Arial">QTY</font></td>
       <td bgcolor="#C0C0C0"><font face="Arial">Unit Price</font></td>
       <td bgcolor="#C0C0C0"><font face="Arial">Total Price</font></td>
           <td >{!a.Serial_Num__c}</td>       
             <td width="40%">{!a.PricebookEntry.Name}--{!a.Description}</td>
             <td><apex:OutputField value="{!a.UnitPrice}"/></td>
             <td><apex:OutputField value="{!a.TotalPrice}"/></td>



You can do that by creating list in list  and using two repeats tag or repeat with combination of pageblocktable. 


For sample code you can refer to Code Share project of pdf genration for quote object.