+ Start a Discussion
BylithiumBylithium 

VF Page List View

I have created a page which gives a list view of the case...but my issue is I am not able to get a detailed view of the case as the reciords displayed are not clickable to view in detail, I know this is a stand feature and you might ask me why I want to create a new vf page as this is already availble.

 

I have a req where I owuld be adding add features..

 

<apex:page standardController="Case" recordSetVar="cases"  tabstyle="account" sidebar="false" extensions="selectedSizeWorkaround" id="muopp">
<apex:form >
<apex:pageBlock title="Hello {!$User.FirstName}">
You are viewing the case management screen<p/>
<apex:selectList value="{!filterid}" size="1">
<apex:selectOptions value="{!listviewoptions}"/>
</apex:selectList>
<apex:commandButton action="{!list}" value="Go" id="Button"/>
<apex:commandButton action="{!create}" value="Create" id="theButton"/>
</apex:pageblock>
</apex:form>
<apex:form >
  <apex:pageBlock title="Case List">
      <apex:pageBlockTable value="{!cases}" var="c">
      <apex:column value="{!c.casenumber}"/>
      <apex:column value="{!c.type}"/>
      <apex:column value="{!c.status}"/>
      <apex:column value="{!c.priority}"/>
      <apex:column value="{!c.subject}"/>
     
    </apex:pageBlockTable>
    <apex:commandbutton action="{!previous}" value="Previous"/>
    <apex:commandbutton action="{!next}" value="Next"/>
  </apex:pageBlock>
</apex:form>
<apex:form id="muform">
<apex:pageMessage summary="Record Set Size: {!myRecordsSize}" severity="info" id="mupmr"/>
</apex:form>
</apex:page>

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

Rather than simply outputting the fields from the case object, you'll need to make one of your columns use an apex:outputLink or similar that points to the view page for the case in question.  Something like the following:

 

 

<apex:column headerValue="Case No">
  <apex:outputLink value="/{!c.id}">{!c.casenumber}</apex:outputLink>
</apex:column>

 

 

All Answers

bob_buzzardbob_buzzard

Rather than simply outputting the fields from the case object, you'll need to make one of your columns use an apex:outputLink or similar that points to the view page for the case in question.  Something like the following:

 

 

<apex:column headerValue="Case No">
  <apex:outputLink value="/{!c.id}">{!c.casenumber}</apex:outputLink>
</apex:column>

 

 

This was selected as the best answer
BylithiumBylithium

Thanks a lot..it solved the query