+ Start a Discussion
RelaxItsJustCodeRelaxItsJustCode 

Having problems filtering visualforce page table, Kudos to anyone that helps

The following code compiles and then blows up on execution.  What I'm trying to do is filter out the lines that have a field Contract_Line_Item_Status__c = 'Do Not Renew'.

 

What ever I'm doing this VF page does not like the <apex:outputPanel tags.

 

Please let me know if you have any ideas on how to best resolve this.  Kudos to the person that helps me figure this one out.

 

<table border="1" style="border-color: #3B5E91" cellspacing="0" cellpadding="1" width="100%" id="table4">

<tr>
       <td bgcolor="#d7dee9" align="Left"><font face="Arial">Quantity</font></td>      
       <td bgcolor="#d7dee9" align="Center"><font face="Arial">APS Part No.</font></td>             
       <td bgcolor="#d7dee9" align="center"><font face="Arial">Product(s) Covered</font></td>
</tr>
<tr>
    
       <apex:repeat value="{!Contract.Service_Contract_Line_Items__r}" var="line">
       <apex:outputPanel rendered="{!IF(line.Contract_Line_Item_Status__c = 'Do Not Renew',false,true)}">
       
          <tr>
             <td align="Right">{!(ROUND(line.Quantity__c,0))}</td>
             <td align="Center">{!line.APS_Part_Number__c}</td>

             <td align="Left">{!line.Product_LU__r.name}</td>
          </tr>
       </apex:outputPanel>
       </apex:repeat>  
    
</tr>
</table>

 

Best Answer chosen by Admin (Salesforce Developers) 
RelaxItsJustCodeRelaxItsJustCode
Sorry this wasn't the solution, using the <apex:outputText tag did the job.

Thank you anyway.

All Answers

sguptasgupta
post the error message
sguptasgupta

problem is in your condition expression..

<apex:outputPanel rendered="{!IF(line.Contract_Line_Item_Status__c == 'Do Not Renew',false,true)}">

RelaxItsJustCodeRelaxItsJustCode
Sorry this wasn't the solution, using the <apex:outputText tag did the job.

Thank you anyway.
This was selected as the best answer