Skip to main content

Posts

Showing posts from June, 2019

Tips and Tricks : Make apex:column value display conditionally

When try to make apex:column display conditionally there high possibility we try to code like below which will prompt Syntax error. Missing ')' .Unfortunately this is documented in any where so far. <apex:column headerValue= "Actual Approver" value= "{!IF(item.objectType=='Qualification',item.bid.Actual_Final_Approver__c,item.quote.Actual_Final_Approver__c)}" ></apex:column> apex:column cannot being rendered directly in value tag but we can render it different way like below <apex:column headerValue= "Actual Approver" > <apex:outputField rendered= "{!item.objectType=='Qualification'}" value= "{!item.bid.Actual_Final_Approver__c}" /> <apex:outputField rendered= "{!item.objectType=='Quote'}" value= "{!item.quote.Actual_Final_