Skip to main content
John Neff (Ring2Media) a posé une question dans #Visualforce
Hello!

I am using apex:repeat to display a list of records in a table like so:

 <apex:repeat value="{!relatedTo.Vendor_Addeda__r}" var="lineItem">

Is there a way that I can limit the records displayed in my table to ones where Status__c = "New"?

How would I accomplish this?
4 réponses
  1. 14 avr. 2015, 16:12
    Thank you Sandeep - for some reason I just can not seem to make this work. 

    Here is what I have: 

     

    <apex:repeat value="{!relatedTo.Vendor_Addeda__r}" var="lineItem">

    <apex:outputPanel rendered="{!If(lineItem.BOStatus__c=='New',true,false)} " >

    <tr>

    <td>

    {!lineItem.BOStatus__c}

    </td>

    <td>

    {!lineItem.Campaign_Product__c}

    </td>

    <td>

    ${!lineItem.Price_per_Call__c}0 {!lineItem.Payout_Type__c}

    </td>

    <td>

    {!lineItem.Length__c}/{!lineItem.Format__c}

    </td>

    <td>

    {!lineItem.Unique_ISCI__c}

    </td>

    <td>

    {!lineItem.DNIS__c}

    </td>

    <td>

    {!lineItem.Dub_House__c} / {!lineItem.Dub_House_Phone__c}

    </td>

    <td>

    M-SU ROS

    </td>

    </tr>

    </apex:outputPanel>

    </apex:repeat>

    But my  table is yielding no results when I compile this. 

    I  altered the formula behind BOStatus__c so that it returns just a static value of "New" for all records and I am still coming up empty.  What am I misisng?

     
0/9000