You need to sign in to do that
Don't have an account?
Bareera Noor
Trailhead Module: Learn Visual force Basics
I wrote this code according to the instructions given in the "Use Standard List Controllers"
<apex:page standardController="Contact" recordSetVar="contacts">
<apex:pageBlock title="Contacts List">
<!-- Contacts List -->
<apex:pageBlockTable value="{! contacts }" var="ct">
<apex:column value="{! ct.FirstName }"/>
<apex:column value="{! ct.LastName }"/>
<apex:column value="{! ct.Email }"/>
<apex:column value="{! ct.Account.Name }"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
But when In click the preview button I am not getting the desired output. My contactlist is not showing any fields.
<apex:page standardController="Contact" recordSetVar="contacts">
<apex:pageBlock title="Contacts List">
<!-- Contacts List -->
<apex:pageBlockTable value="{! contacts }" var="ct">
<apex:column value="{! ct.FirstName }"/>
<apex:column value="{! ct.LastName }"/>
<apex:column value="{! ct.Email }"/>
<apex:column value="{! ct.Account.Name }"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
But when In click the preview button I am not getting the desired output. My contactlist is not showing any fields.
Make sure you have some (min. 1 ) contact records in your org.
let me know if it helps you
thanks