You need to sign in to do that
Don't have an account?
manjunath vivek
I am not able to retrieve the fields from contact.
I am not able to retrieve the fields from contact,can some one help me on this?
<apex:page standardController="contact" recordSetVar="contact">
<apex:pageBlock title="Viewing Contacts">
<apex:form id="theForm">
<apex:pageBlockSection >
<apex:pageBlockTable value="{!contact}" var="c" id="List">
{!c.name}
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:form>
</apex:pageBlock>
</apex:page>
<apex:page standardController="contact" recordSetVar="contact">
<apex:pageBlock title="Viewing Contacts">
<apex:form id="theForm">
<apex:pageBlockSection >
<apex:pageBlockTable value="{!contact}" var="c" id="List">
{!c.name}
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:form>
</apex:pageBlock>
</apex:page>
There is a confusion between "contact" for standardController and recordSetVar.
recordSetVar should be "contacts" then pageBlockTable should refer to "contacts" too.
Hope this helps,
Fred
If this answer helped you solve your problem, please, mark the question as Solved and kindly select the best answer ;)
Thanks,
Fred