Sunday, March 10, 2013

Displaying the Records in various ways

Visualforce Page:

<apex:page standardController="Account" recordSetVar="accs" showHeader="false" >
<apex:form >
<apex:pageblock >
<apex:pageBlockTable value="{!accs}" var="a">
<apex:column value="{!a.name}"/>
<apex:column value="{!a.rating}"/>
<apex:column value="{!a.type}"/>
</apex:pageBlockTable>
<!--<apex:dataTable value="{!accs}" var="a">
<apex:column value="{!a.name}"/>
<apex:column value="{!a.rating}"/>
<apex:column value="{!a.type}"/>
</apex:dataTable>-->
<!--<apex:dataList value="{!accs}" var="a" type="circle">
{!a.name},{!a.rating}
</apex:dataList>-->
<!--<apex:repeat value="{!accs}" var="a">
{!a.name}<br/>
</apex:repeat>-->
</apex:pageblock>
</apex:form>
<!--<apex:enhancedList type="Account" height="300" rowsPerPage="100"/>-->
</apex:page>

No comments:

Post a Comment