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
SFDC Forum 007SFDC Forum 007 

repeat tag issue

Hi,

 

 Please help me out with my issue

 

I have a call report object where call plan is attached to it, whre the corresponding accounts are displayed in a pdf, but my issue wen i create a new call report on today's date along with the existing call report created on todays date , the accounts are getting displayed twice with the same name , where i want it to be displayed only once.

 

// vf page

 

<apex:page standardController="Call_Report__c" renderAs="PDF" showHeader="false" standardStylesheets="false" extensions="CallReportExtn" >
<html>
    <head>  
<style type="text/css">
    
    @page {
                 
                margin-left:45px;
                margin-right:45px;
                margin-top:100px;
                margin-bottom:87px;
                @top-center {                   
                    content: element(header);
                    height:70px;
                    vertical-align:top;               
                      
                }
                                     
               @bottom-right{
                    content:"Page"  counter(page) "&nbsp; Of &nbsp;" counter(pages);
                    font-family:Arial Unicode MS;
                    font-size:14px;
                    color:#999999;         
                }
               
                       
           }                       
         
            div.header {                                          
                position: running(header);
                padding-top:35px;
                padding-left:0px;
                padding-bottom:70px;
                
                          
             }
             table.bodycontent{
                 position:absolute;                                 
                 left:0px;                               
                 width:725;
                 padding: 0px;
                 margin: 0px;
                 border-style: none;
                 border-width: 0px;
                 border-spacing: 0px;
                 border-collapse: collapse;
                 
             }
             div.dtlcontent{
                 position:relative;
                 top:100px;
                 left:0px;
                 right:-5px;
             }
             div.prdcontent{
                 position:relative;
                 top:100px;
                 left:0px;
                 right:-5px;
             }
             div.tccontent{
                 position:relative;
                 top:440px;
                 left:0px;
                 right:-5px;
             }
             div.tccontentgp{
                 position:relative;
                 top:440px;
                 left:0px;
                 right:-5px;
             }
             table.custtable{
                 padding:0px;                 
                 margin: 0px;
                 border-style: none;
                 border-width: 0px;
                 border-spacing: 0px;
                 border-collapse: collapse;
             }
             table.custtabletc{
                 padding:0px;                 
                 margin: 0px;
                 border-style: none;
                 border-width: 0px;
                 border-spacing: 0px;
                 border-collapse: collapse;
             }
                         
            
            div.footer {
                padding-top:50px;
                padding-bottom:25px;
                padding-left:-5px;
                
                position: running(footer);                                   
            }
                        .bodys{
                            width:770px;
                            height:850px;
                            padding:0px;
                            margin:0px;
                        }
                        .callSch{
                            font-family:Arial Unicode MS;
                            font-size:14px;
                            color: #118888;
                            padding-left:10px
                        }
                        .custlbl{
                        font-family:Arial Unicode MS;
                        color:#000000;
                        font-size:14px;
                        padding-left:10px;
                        }
                        .prdlbl{
                        font-family:Arial Unicode MS;
                        color:#000000;
                        font-size:14px;
                        }
                        .prdlbl13{
                        font-family:Arial Unicode MS;
                        color:#000000;
                        font-size:14px;
                        width:130px;
                        }
                        .prdlb2{
                        font-family:Arial Unicode MS;
                        color:#000000;
                        font-size:14px;
                        width:160px;
                        }
                        .prdlbl4{
                        font-family:Arial Unicode MS;
                        color:#000000;
                        font-size:14px;
                        width:190px;
                        }
                        .prdlblgp13{
                        width:15px;
                        }
                        .prdlblgp2{
                        width:30px;
                        }
                        .prdlblgp4{
                        width:10px;
                        }
                        .detaillbl{
                        font-family:Arial Unicode MS;
                        font-weight:bold;
                        color:#000000;
                        font-size:14px;
                        }
                        .custrowspace{
                        height:10px;
                        }
                        .custline{
                        line-weight:1px;
                        color:#D8D8D8;
                        border-bottom: 0px #FFFFFF;
                        }
                        .accline{
                        line-weight:1px;
                        color:#118888;
                        border-bottom: 0px;
                        }
                        .prdline1{
                        line-weight:1px;
                        color:#E4E4E4;
                        border-bottom: 0px;
                        }
                        .custtext{
                        font-family:Arial Unicode MS;
                        font-size:14px;
                        line-height:1.5;
                        color:#5F5F5F;
                        
                        }
                        .prdtext{
                        font-family:Arial Unicode MS;
                        font-size:14px;
                        line-height:1.83;
                        color:#5F5F5F;
                        }
                        .tctext{
                        font-family:Arial Unicode MS;
                        font-size:14px;
                        color:#000000;
                        }
                        .tcpara{
                        font-family:Arial Unicode MS;
                        font-size:14px;
                        line-height:1.5;
                        color:#000000;
                        }
                        .tcparagp{
                        height:30px;
                        }
                        
                         
                        textarea {
                    background-color: blue;
                    color: #0000FF;
                   font-size: 14px;
                       }

                       
                        

                        </style>
                        </head>
                        <body class="bodys">
                            <div class="header">   
                                <apex:outputLabel styleClass="callSch" >Call Schedule :</apex:outputLabel>
                                <apex:outputText styleClass="callSch" value="{0,date,dd MMM yyyy}">
                                     <apex:param value="{!NOW()}" />
                                </apex:outputText>
                            </div>
                            
                            
                            <table width="100%" height="100%" class="bodycontent" >
                                
                                <tr style="background-color:#FFFFFF">
                                        <td colspan="5" style="padding:0px;font-size: 14px ;background-color:#FFFFFF">                                    
                                              <table width="100%" height="100%" class="custtable" >                                                
                                                <apex:repeat value="{!pdfWrapperList}" var="ba">
                                               
                                                <tr>
                                                      <td><b>Name</b></td>
                                                     <!-- <td><b>Time</b></td>-->
                                                      <td><b>Address</b></td>
                                                      <td><b>Post Code</b></td>
                                                      <td><b>Phone</b></td>
                                                      <td><b>Rep Event</b></td>
                                                      <td><b>Type</b></td>
                                                      <td><b>Segmentation</b></td>
                                                      <td><b>Patients</b></td>
                                                      <td><b>Seats</b></td>
                                                      
                                                      
                                                 </tr>
                                                 <!--<apex:repeat value="{!pdfWrapperList}" var="ba"> -->
                                                      <tr>
                                                      
                                                      
                                                  <!--  <td width ="50%" align="center">
                                                    <font face="verdana" color="#0000FF">-->
                                                   <td>
                                                   <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                   
                                                    {!ba.cr.Account__r.Name}
                                                    </textarea>
                                                  
                                                   <!-- </font>-->
                                                    </td>
                                                    
                                                    
                                                    
                                                     <!-- <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                          <!--<apex:outputText value="{0,date,hh:mm}">-->
                                                               <!--<apex:param value="{!ba.cr.Date__c}" />-->
                                                         <!-- </apex:outputText> -->
                                                            <!--</textarea>
                                                      </td>-->
                                                       
                                                      <td>
                                                      <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.BillingStreet},{!ba.cr.Account__r.BillingCity},{!ba.cr.Account__r.BillingState},{!ba.cr.Account__r.BillingCountry}
                                                       </textarea>
                                                       </td>
                                                       
                                                      <td>
                                                      <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.BillingPostalCode}</textarea></td>
                                                      <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.Phone}
                                                      
                                                      
                                                      </textarea></td>
                                                      
                                                     <td><textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                     Rep Event
                                                     </textarea>
                                                     </td>
                                                      
                                                     
                                                      <td> <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.Type}
                                                      </textarea>
                                                      </td>
                                                      <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                      {!ba.cr.Account__r.Segment_status__c}
                                                      </textarea>
                                                      </td>
                                                      <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                          <apex:outputText value="{0,number,0}">
                                                                 <apex:param value="{!ba.cr.Account__r.Total_Number_Of_Patients__c}" />
                                                           </apex:outputText>
                                                          </textarea>
                                                      </td>
                                                      <td>
                                                       <textarea style="background: #FFFFFF; font-size: 14px; color: #0000FF;" cols="20" rows="10">
                                                          <apex:outputText value="{0,number,0}">
                                                                 <apex:param value="{!ba.cr.Account__r.No_of_Seats__c}" />
                                                           </apex:outputText>
                                                          </textarea>
                                                      </td>
                                                     
                                                 </tr>
                                                 
                                             
                                                   <apex:repeat value="{!ba.pernAcctList}" var="pa">                                               
                                                 
                                                 
                                                 <tr>
                                               
                                                  
                                                     <td><b>{!pa.paName}</b></td>
                                                     
                                                      <td><b>{!pa.paJobTitle}</b></td>
                                                      
                                                      
                                                       

                                                    
                                               
                            </table>                              
                        
                              
                        </body>
            </html>


           </apex:page>

 

 

 

Please helpme with my issue

 

 

 

 

 

 

Thanks in Advance