You need to sign in to do that
Don't have an account?
Vinay Banda
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 records. code not fetching any records.
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 records. code not fetching any records.
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.
Hi Vinay,
You need to pass "id" param with the 15/18 char record id in the URL like this
https://c.ap2.visual.force.com/apex/ContactView?id=0032800000WyJgW
Hope your issue is resolved.