Skip to content

Instantly share code, notes, and snippets.

@sfdcfanboy
Created April 10, 2017 08:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sfdcfanboy/e37116a8a9f6999658af6594c07d34c8 to your computer and use it in GitHub Desktop.
<apex:component access="global" controller="OppsWithMatches">
<apex:attribute name="accountIdValue" type="String" description="This is the Id of the account" assignTo="{!accountId}" access="global" />
<table class="table">
<thead>
<tr>
<th>Opportunity Name</th>
<th>Opportunity Description</th>
<th>Opportunity Amount</th>
</tr>
</thead>
<tbody>
<apex:repeat value="{!Opps}" var="pos">
<apex:repeat value="{!pos.Matches__r}" var="match">
<tr>
<td>{!pos.Name}</td>
<td>{!match.Name}</td>
<td>{!match.Email__c}</td>
</tr>
</apex:repeat>
</apex:repeat>
</tbody>
</table>
</apex:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment