All,
I am trying to create a visual display of a list of contacts that are considered "High" influence. There is a pick-list field within the contact object that can be set to this value. I am using apex:repeat to create the list and would like to use "rendered =" to filter out the unimportant contacts.
<apex:repeat value="{!Account.Contacts}" var="con" rows="6">
<tr>
<td class = "entry"><apex:outputField value="{!con.Name}" rendered=" {!con.Influence__c = 'High'}" styleClass="entry"/></td>
<td class = "entry"><apex:outputField value="{!con.Title}" rendered=" {!con.Influence__c = 'High'}"/></td>
<td class = "entry"><apex:outputField value="{!con.Owner.Name}" rendered=" {!con.Influence__c = 'High'}"/></td>
</tr>
</apex:repeat>
For some reason it displays no values, even though I know there to be some. When I remove the "rendered" attribute, it works.
I appreciate any help that can be given.
{!con.Influence__c}
and{!con.Influence__c = 'High'}
to verify that they are the values you are expecting.<apex:outputPanel layout="none" rendered="{!con.Influence__c = 'High'}">