You need to sign in to do that
Don't have an account?
Yukinon
Unknown Property Error VF Component
I keep on getting Unknown Property Error. Any tips on how can I solve it?
Controller:
Component:
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'
you need to replace the "{!findActiveItems.Opportunity}" with "{!lineItems}" in the componenet.
If this helps, please mark it as best answer.
thanks!!
Please use below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh