function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Felicia Levine AbramsonFelicia Levine Abramson 

Filtered and Sortable VF Data Table

I want to make a filtered and sortable VF table, and so far I think I am on the right track of pulling in the fields I want. We want to show all contacts on an account who have either our Bit9 Certification or Carbon Black Certification field filled in. I've tried some other additions to below but keep getting error messages or it doesn't work.

Note: I am not a developer, just an advanced admin, so this could be pretty basic and I'm just missing the solution.
<apex:page standardController="Account">
   <apex:pageBlock title="Account's Certifications">
      <apex:pageBlockTable value="{!account.Contacts}" var="contact">
         <apex:column value="{!contact.Name}"/>
         <apex:column value="{!contact.Bit9_Certification__c}"/>
         <apex:column value="{!contact.Carbon_Black_Certification__c}"/>
      </apex:pageBlockTable>
   </apex:pageBlock>
</apex:page>

 
Felicia Levine AbramsonFelicia Levine Abramson
I also found this bit of code but not sure how to make it work, with or statements:
 
<apex:repeat value="{!relatedTo.Opportunities}" var="o">
      <apex:outputPanel rendered="{!NOT(o.stagename='Closed Won')}">
          <tr>
           <td> {!o.name}      </td>
           <td> {!o.stagename} </td>
          </tr>
       </apex:outputPanel>
  </apex:repeat>