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
shachnashachna 

VF Page only pulls the first 20 records. WHY?

I asked about this code a while ago. I have since learned alot about VF proper. I have been able to fix up a lot except that now this code only pulls 20 records. Any help would be appreciated. I just want to say that I didn't write this code to begin with I'm just trying to make heads and tails out of it.

 

 <apex:page showHeader="false" standardController="Clinical_Goals__c" recordSetVar="Clinical_Goals" renderAs="PDF" >
      
      <apex:stylesheet value="{!$Resource.PDFDocumentStyle}" />
  <c:header_doc type="header"></c:header_doc>
    <c:PDFHeaderFooter type="footer" position="left"></c:PDFHeaderFooter>
    <c:PDFHeaderFooter type="footer" position="center">The Donald Berman  <br></br>Centre de Développement YALDEI Developmental Center <br></br> 2100 Marlowe Ave. 5th Floor Montreal, P.Q. H4A 3L5 <br></br> Tel: 514 279 3666   Fax: 514 278 3666</c:PDFHeaderFooter>
    <c:PDFHeaderFooter type="footer" position="right" ></c:PDFHeaderFooter>




 
<p>
<center><h1>INTERVENTION PLAN</h1></center> <br></br><br></br>
<apex:repeat value="{!Clinical_Goals}" var="Titre" rows="1" >

 
Child: {!Titre.Client__r.Name}<br></br>
DOB: {!DAY(Titre.Client__r.Date_of_Birth__c)}/{!MONTH(Titre.Client__r.Date_of_Birth__c)}/{!YEAR(Titre.Client__r.Date_of_Birth__c)}
</apex:repeat>
</p>
 <br></br><br></br>



From here till the word END the code are 2 examples out of 12 (there wasn't enough room to fit them all on but the only thing that changes between them is the Therapy_Type__c =)


<apex:repeat var="cgs12" value="{!Clinical_Goals}">  
<b>The Therapy: '{!cgs12.Therapy_Type__c}' ({!cgs12.RecordType.Name}) </b><br />  
<apex:actionRegion rendered="{!IF(AND(cgs12.Therapy_Type__c = 'Speech Therapy', cgs12.RecordType.Name = 'Summary of Outcomes'),True,False)}">
    <h2>Speech Therapy - {!cgs12.Owner.Name}</h2>
    <table  cellpadding="10" width="99%" border="1">
        <tr>   
            <td  bgcolor="#ffffff"  style="color:#000000">{!cgs12.RecordType.Name}  </td>  
        </tr>  
        <tr>   
            <td bgcolor="#ffffff"  style="color:#000000"> <p>{!cgs12.Description__c}</p> </td>  
        </tr>
    </table><p></p><p></p>
</apex:actionRegion>
</apex:repeat>

     
<apex:repeat var="cg12" value="{!Clinical_Goals}">
<apex:actionRegion rendered="{!IF(AND(cg12.Therapy_Type__c = 'Speech Therapy', cg12.RecordType.Name = 'Long Term Goal'),True,False)}">
   
   
    <table  cellpadding="10" width="99%" border="1">
        <tr>
        <td bgcolor="#ffffff"  style="color:#000000"><strong>Goal Start Date: </strong>{!DAY(cg12.IP_Period_Start__c)}/{!MONTH(cg12.IP_Period_Start__c)}/{!YEAR(cg12.IP_Period_Start__c)} - <strong>{!cg12.RecordType.Name}</strong> - {!cg12.Name} </td>  
        </tr>
        <tr>   
            <td bgcolor="#ffffff"  style="color:#000000"><b>Description</b> <p>{!cg12.Description__c}</p> </td>  
        </tr>
        <tr>    
            <td bgcolor="#ffffff"  style="color:#000000"><b>Rationale</b> <p>{!cg12.Rationale__c}</p> </td>  
        </tr>   
        <tr>  
            <td bgcolor="#ffffff"  style="color:#000000"><b>Evaluation Methods</b>  <p>{!cg12.Mode_of_Evaluation__c}</p> </td>
        </tr>
        <tr>  
            <td bgcolor="#ffffff"  style="color:#000000">Short term goals</td>
        </tr>
   <apex:repeat var="stg12" value="{!cg12.Short_Term_Goals__r}">
       <tr>   
           <td bgcolor="#ffffff"  style="color:#000000"> {!stg12.Name} - {!stg12.STG_Status__c}   </td>
       </tr>
       <tr>
           <td bgcolor="#ffffff"  style="color:#000000"><p>  <b>Description</b>  <p>{!stg12.STG_Description__c}</p></p> </td>
       </tr>
       <tr>
           <td bgcolor="#ffffff"  style="color:#000000"><p>  <b>Strategies</b><p>{!stg12.Strategies__c}</p></p></td>
       </tr>
    
   </apex:repeat>
   </table><p></p><p></p>
</apex:actionRegion>
</apex:repeat>  





<apex:repeat var="cgs11" value="{!Clinical_Goals}">    
<apex:actionRegion rendered="{!IF(AND(cgs11.Therapy_Type__c = 'Physiotherapy', cgs11.RecordType.Name = 'Summary of Outcomes'),True,False)}">
<h2>Physiotherapy - {!cgs11.Owner.Name}</h2>    
    <table  cellpadding="10" width="99%" border="1">
        <tr>   
            <td bgcolor="#ffffff"  style="color:#000000">{!cgs11.RecordType.Name} ({!cgs11.IP_Period__c})  </td>  
        </tr>  
        <tr>   
            <td bgcolor="#ffffff"  style="color:#000000"> <p>{!cgs11.Description__c}</p> </td>  
        </tr>
    </table><p></p><p></p>
</apex:actionRegion>
</apex:repeat>
     
<apex:repeat var="cg11" value="{!Clinical_Goals}">
<apex:actionRegion rendered="{!IF(AND(cg11.Therapy_Type__c = 'Physiotherapy', cg11.RecordType.Name = 'Long Term Goal'),True,False)}">
    <table  cellpadding="10" width="99%" border="1">
        <tr>
        <td bgcolor="#ffffff"  style="color:#000000"><strong>Goal Start Date: </strong>{!DAY(cg11.IP_Period_Start__c)}/{!MONTH(cg11.IP_Period_Start__c)}/{!YEAR(cg11.IP_Period_Start__c)} - <strong>{!cg11.RecordType.Name}</strong> - {!cg11.Name} </td>  
        </tr>
        <tr>   
            <td bgcolor="#ffffff"  style="color:#000000"><b>Description</b> <p>{!cg11.Description__c}</p> </td>  
        </tr>
        <tr>    
            <td bgcolor="#ffffff"  style="color:#000000"><b>Rationale</b> <p>{!cg11.Rationale__c}</p> </td>  
        </tr>   
        <tr>  
            <td bgcolor="#ffffff"  style="color:#000000"><b>Evaluation Methods</b>  <p>{!cg11.Mode_of_Evaluation__c}</p> </td>
        </tr>
        <tr>  
            <td bgcolor="#ffffff"  style="color:#000000">Short term goals</td>
        </tr>
   <apex:repeat var="stg11" value="{!cg11.Short_Term_Goals__r}">
       <tr>   
           <td bgcolor="#ffffff"  style="color:#000000"> {!stg11.Name} - {!stg11.STG_Status__c}   </td>
       </tr>
       <tr>
           <td bgcolor="#ffffff"  style="color:#000000"><p>  <b>Description</b>  <p>{!stg11.STG_Description__c}</p></p> </td>
       </tr>
       <tr>
           <td bgcolor="#ffffff"  style="color:#000000"><p>  <b>Strategies</b><p>{!stg11.Strategies__c}</p></p></td>
       </tr>
    
   </apex:repeat>
   </table><p></p><p></p>
</apex:actionRegion>
</apex:repeat>  


END


<apex:repeat value="{!Clinical_Goals}" var="sup" rows="1">
<br></br><br></br><br></br>
_____________________________<br></br>                                         
{!sup.Client__r.Supervisor__r.Name}<br></br>  
Clinical Supervisor<br></br>
</apex:repeat>
<br></br>
_____________________________<br></br>                                         
Benyamin Baer<br></br>  
Director Of clinical Services<br></br>  
 
   
 
</apex:page>