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
EntelxEntelx 

Filtering in the Apex:Repeat

<apex:repeat var="prod" value="{!relatedTo.OpportunityLineItems}">

I have an email template with apex:Repeat for my product line items. Is there a way to Filter some records

aalbertaalbert

Yes. It might help to include the snippet of visualforce syntax within the <apex:repeat>. What is the criteria you want to use to filter out some Opportunity Line Items?

 

Many of the Visualforce components include a "rendered' boolean attribute that you could specify an IF statement  that can help identify which records to display or hide.