You need to sign in to do that
Don't have an account?
Customer Portal Cases
Hi, we are trying to create a VF page to list the logged in customer portal user's cases and allow them to see each case. The below code lists the cases when I am logged in with my user, but when I log in as on of the customer portal users, it does not list any cases. Any ideas why? The customer portal is all set up correctly and the user profile is set for full permission on the Case object.
<apex:page standardstylesheets="false" showHeader="false" sidebar="false" standardController="Case" recordSetVar="cases">
<div class="box_header title_box" style="color: #fff;padding: 5px 5px;font-size: 15px; font-weight:bold">My Open Cases
</div>
<base target="_parent"/>
<apex:pageBlock title="Viewing Cases">
<apex:form id="theForm">
<table width="100%" >
<tr><td align="center" width="25%" class="heading">Case Number</td><td align="center" width="25%" class="heading">Subject</td><td align="center" width="25%" class="heading">Status</td><td align="center" width="25%" class="heading">Last Updated</td></tr>
<apex:repeat var="c" value="{!cases}">
<tr>
<td align="center" width="25%" class="case_text content">
<a href="/{!c.Id}">{!c.CaseNumber}</a>
</td>
<td align="center" width="25%" class="case_text content">
<apex:outputText value="{!c.Subject}" escape="false" />
</td>
<td align="center" width="25%" class="case_text content">
<apex:outputText value="{!c.Status}" escape="false" />
</td>
<td align="center" width="25%" class="case_text content">
<apex:outputText value="{0,date,MMMMM dd, yyyy 'at' hh:mm a z}" escape="false">
<apex:param value="{!c.ClosedDate}" />
</apex:outputText>
</td>
</tr>
<tr><td colspan="4" style=" border-bottom-style: dashed; border-bottom-color:#FFA500; border-bottom-width: 1px;"></td></tr>
</apex:repeat>
</table>
</apex:form>
</apex:pageBlock>
</apex:page>
Checked the logs, nothing stands out to me...