+ Start a Discussion
atulit27atulit27 

How to render table in visualforce page by comparing two fields of an object?

 

I am creating a visualforce page and there is rable whihc needs to be rendered according to some condition I am writing the code as:

 

  <apex:outputPanel rendered="{!IF(ISEQUAL(Bil__c.Agent__c, Bill_c.Dealer__c},'true','false')}">

 

but its giving an error.

andhra123andhra123

Try this

 

<apex:outputPanel rendered="{!IF(Bil__c.Agent__c = Bill_c.Dealer__c,true,false)}">

Duncan_IdahoDuncan_Idaho

You're closing your ISEQUAL function with a curly bracket instead of a parentheses.

atulit27atulit27

actually its a typin mistake its gettin close by parenthesis only...