Skip to main content
Hello!

 

Can I use a pageBlockTable to list all custom object records that meet a certain criteria?  For example, I would like to list all buyer's where Custom_Field_A = "1234"

 

Is this possible?

 

Here is my table: 

 

 

<apex:page standardController="Buyer__c">

<apex:pageBlock title="Buyer Activity">

<apex:pageBlockTable value="{!Buyer__c.Name}" var="Buyer Name">

<apex:column value="{!Buyer__c.CMPTXT__c}"/>

</apex:pageBlockTable>

</apex:pageBlock>

</apex:page>

 

 
4 Antworten
  1. 17. Feb. 2015, 20:30
    I am happy to take it forward! Alright. So have come here from a List View

    I guess. Is that right ? Well you can try this:

    <apex:page standardController="Buyer__c" recordSetVar="Buyers">

    <apex:pageBlock title="Buyer List">

    <apex:pageBlockTable value="{! Buyers }" var="by">

    <apex:column value="{! by.Name }" rendered="{! by.Custom_Field__A = '1234'}"/>

    <apex:column value="{! by.CMPTXT__c }" rendered="{! by.Custom_Field__A = '1234'}"/>

    <apex:column value="{! by.Current_Balance__c }" rendered="{! by.Custom_Field__A = '1234'}"/>

    <apex:column value="{! by.Call_Dur__c }" rendered="{! by.Custom_Field__A = '1234'}"/>

    </apex:pageBlockTable>

    </apex:pageBlock>

    </apex:page>

0/9000