You need to sign in to do that
Don't have an account?
Ali Hassan 4
TRailhead Using Standard Controllers Error
Hi all,
THis my code
<apex:page standardController="Contact" >
<apex:pageBlock title="Contact View">
<apex:pageBlockSection>
First Name : {! Contact.FirstName } <br/>
Last Name : {! Contact.LastName } <br/>
Email: {! Contact.Email } <br/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
But keep getting this Error
The page does not include a bound owner's email variable for the Contact record
I am not really sure what i am doing wrong
THis my code
<apex:page standardController="Contact" >
<apex:pageBlock title="Contact View">
<apex:pageBlockSection>
First Name : {! Contact.FirstName } <br/>
Last Name : {! Contact.LastName } <br/>
Email: {! Contact.Email } <br/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
But keep getting this Error
The page does not include a bound owner's email variable for the Contact record
I am not really sure what i am doing wrong
All Answers
<apex:pageBlock title="contact summary">
<apex:pageblocksection>
first name :{!contact.firstname} <br/>
last name :{!contact.lastname} <br/>
email :{!contact.owner.email}<br/>
</apex:pageblocksection>
</apex:pageBlock>
</apex:page>
Please refer the codes written above . I am able to complete the challenge
The big one for me is why is contact.owner.email able to work? Shouldn't it be Contact.OwnerId.SenderEmail ?
My thinking is its finding the ownerid and linking it to the user database and then finding the email field inside there?