• Balamy saviour
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I keep on getting Unknown Property Error. Any tips on how can I solve it?

Controller:
public class ActiveOpportunityLineItems {
    public List<OpportunityLineItem> lineItems {get; set;}
    	
    public List<OpportunityLineItem> findActiveItems() {
       lineItems = [SELECT Name From OpportunityLineItem WHERE Active__c = TRUE];
       return lineItems;   
    }
    
}

Component:
<apex:component controller="ActiveOpportunityLineItems" access="global">
	<apex:pageBlock title="Opportunity Line items">
       <apex:pageBlockTable value="{!findActiveItems.Opportunity}" var="opportunity">
         <apex:column value="{!opportunity.Name}"/>
      </apex:pageBlockTable>
   </apex:pageBlock>
</apex:component>
Error:
Unknown property 'ActiveOpportunityLineItems.findActiveItems'