• Leon Solleveld
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
I would like to pass the variable 'company' to the second repeat function so i can use the variable in the second query of the controller. Is that possible?

<apex:repeat value="{!company }" var="co" >
   <apex:variable value="{!co.Name__c}" var="comp" />
      <apex:repeat value="{!customer}" var="cu"  >
      

Class:
comp = ApexPages.currentPage().getParameters().get('comp'); 
company = [Select Name  FROM Company];
customer = [Select Name FROM Customer where Company =:comp];