function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SF Buzz VutukuriSF Buzz Vutukuri 

Display case recordtypename and the casenumber in the visualforce table

How to display recordtypename of the case along with other case fields in the visualforce page, can some one hlep me please.
Best Answer chosen by SF Buzz Vutukuri
hitesh90hitesh90
Hi Vutukuri,

See following sample code for your requirement.

Visualforce Page:
<apex:page standardController="Case" recordSetVar="cases">
    <apex:sectionHeader title="" subtitle="Cases"/>
    <apex:pageblock>
        <apex:pageBlockTable value="{!Cases}" var="cs">
            <apex:column value="{!cs.CaseNumber}"/>
            <apex:column value="{!cs.Subject}"/>
            <apex:column headerValue="RecordType Name">
                <apex:outputLabel value="{!cs.RecordType.Name}"></apex:outputLabel>
            </apex:column>
        </apex:pageBlockTable>
    </apex:pageblock>
</apex:page>

Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/

All Answers

hitesh90hitesh90
Hi Vutukuri,

See following sample code for your requirement.

Visualforce Page:
<apex:page standardController="Case" recordSetVar="cases">
    <apex:sectionHeader title="" subtitle="Cases"/>
    <apex:pageblock>
        <apex:pageBlockTable value="{!Cases}" var="cs">
            <apex:column value="{!cs.CaseNumber}"/>
            <apex:column value="{!cs.Subject}"/>
            <apex:column headerValue="RecordType Name">
                <apex:outputLabel value="{!cs.RecordType.Name}"></apex:outputLabel>
            </apex:column>
        </apex:pageBlockTable>
    </apex:pageblock>
</apex:page>

Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
This was selected as the best answer
SF Buzz VutukuriSF Buzz Vutukuri
recordtype.name is working fine thank you very much.