I may be way off the mark but gave it a go.
Any tips to get this working would be great!
<apex:page standardController="Opportunity">
<apex:pageBlock title="Opportunity Summary">
<apex:pageBlockTable value="{!Opportunity}" var="opp">
<apex:column title="Customer(s)"/>
<apex:column title="Guarantor(s)"/>
<apex:column title="Lender"/>
<apex:column title="Lender ID"/>
<apex:column title="Broker"/>
<apex:column title="Broker Code"/>
<apex:column title="Loan Amount"/>
<apex:column title="Close Date"/>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!Opportunity}" var="opp1">
<apex:column value="{!opp1.Applicant_1__c}"/>
<apex:column title="Guarantor 1"/>
<apex:column value="{!opp1.Lender__c}"/>
<apex:column value="{!opp1.Account.Lender_ID__c}"/> <!-- Get customer field on Account object -->
<apex:column value="{!opp1.User.FullName}"/> <!-- Get name of Opportunity Owner -->
<apex:column value="{!opp1.User.AFG_Code__c}"/> <!-- Get custom field on User object -->
<apex:column value="{!opp1.Amount}"/>
<apex:column value="{!opp1.CloseDate}"/>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!Opportunity}" var="opp2">
<apex:column value="{!opp2.Applicant_2__c}"/>
<apex:column title="Guarantor 2"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Current Error Message: Invalid field USER for sObject Opportunity.
I am sure there are more errors.
2 respuestas
These lines should be...
<apex:column value="{!opp1.Owner.FullName}"/> <!-- Get name of Opportunity Owner -->
<apex:column value="{!opp1.Owner.AFG_Code__c}"/> <!-- Get custom field on User object -->