+ Start a Discussion
KB KimKB Kim 

a table in visualforce

I need a table with all the custom fields in case standard object.
This code does not actuall create a table. what am I missing?

<apex:page standardController="case" recordsetVar="coil">
    <apex:pageBlock Title="Coil Information">
         <apex:pageBlockTable value="{!coil}" var="a">
            <apex:column value="{!a.Claim_Case_Number__c}"/>
            <apex:column value="{!a.Coil_Cost__c}"/>
            <apex:column value="{!a.Coil_ID__c}"/>
            <apex:column value="{!a.CSV__c}"/>
            <apex:column value="{!a.ACC__c}"/>
                    
         </apex:pageBlockTable>
       
    </apex:pageBlock>
</apex:page>
Best Answer chosen by KB Kim
Himanshu ParasharHimanshu Parashar
open any existing case. your url will be like this.
 
na2.salesforce.com/a0N550000001a0t

copy a0N550000001a0t (record id) and paste as shown below

 
/apex/yourpagename?id=RECORDID

 

All Answers

Himanshu ParasharHimanshu Parashar
are you passing id in the url ?
KB KimKB Kim
No I didn't how can I do it? I am new to Salesforce..
Himanshu ParasharHimanshu Parashar
open any existing case. your url will be like this.
 
na2.salesforce.com/a0N550000001a0t

copy a0N550000001a0t (record id) and paste as shown below

 
/apex/yourpagename?id=RECORDID

 
This was selected as the best answer