You need to sign in to do that
Don't have an account?
RelaxItsJustCode
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>
Thank you anyway.
All Answers
problem is in your condition expression..
<apex:outputPanel rendered="{!IF(line.Contract_Line_Item_Status__c == 'Do Not Renew',false,true)}">
Thank you anyway.