You need to sign in to do that
Don't have an account?
Vinay Banda
Visual force page not fetching record details
Hi All,
I've created simple page to show contact basic info. When I used preview and it is opening in context of Contact but I used record id to see values of specific recors. code not fetching any recors.
URL: https://c.ap2.visual.force.com/apex/ContactView?core.apexpages.request.devconsole=0032800000WyJgW
<apex:page title="Contact" standardController="Contact">
<apex:pageBlock title="Contact Summary">
<apex:pageBlockSection>
Name: {! Contact.FirstName } <br/>
Phone: {! Contact.LastName } <br/>
Email: {! Contact.owner.email } <br/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Please let me know what could be the issue.
I've created simple page to show contact basic info. When I used preview and it is opening in context of Contact but I used record id to see values of specific recors. code not fetching any recors.
URL: https://c.ap2.visual.force.com/apex/ContactView?core.apexpages.request.devconsole=0032800000WyJgW
<apex:page title="Contact" standardController="Contact">
<apex:pageBlock title="Contact Summary">
<apex:pageBlockSection>
Name: {! Contact.FirstName } <br/>
Phone: {! Contact.LastName } <br/>
Email: {! Contact.owner.email } <br/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Please let me know what could be the issue.
To see the details of particular record you need to give https://c.ap2.visual.force.com/apex/ContactView?id=0032800000WyJgW in visual force page URL.
Hope this helps you!
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
All Answers
To see the details of particular record you need to give https://c.ap2.visual.force.com/apex/ContactView?id=0032800000WyJgW in visual force page URL.
Hope this helps you!
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
In self training trailhead its given as "https://c.ap2.visual.force.com/apex/ContactView?core.apexpages.request.devconsole=0032800000WyJga".