You need to sign in to do that
Don't have an account?
Create a Visualforce page displaying new cases - Added help
I am about to rip my hair out, I have searched all the questions and answers I could find in the communit, and still can't get this to work. I think it is in the Apex Method, I am not sure what the code is there. and have not been able to find anything to reference to figure it out. Here is my code:
<apex:page controller="NewCaseListController" showHeader="false">
<apex:form >
<apex:pageBlock title="Cases List" id="cases_list">
<apex:pageBlockTable value="{! Cases }" var="cs">
<apex:outputLink value="/!{cs.id}">{!cs.id}</apex:outputLink>
<apex:repeat value="{!Cases}" var="case" id="theRepeat">
</apex:repeat>
<apex:column value="{! cs.CaseNumber }"/>
<apex:column value="{! cs.id }"/>
<apex:column value="{! cs.Status='New'}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

Please help me.
Thank you,
<apex:page controller="NewCaseListController" showHeader="false">
<apex:form >
<apex:pageBlock title="Cases List" id="cases_list">
<apex:pageBlockTable value="{! Cases }" var="cs">
<apex:outputLink value="/!{cs.id}">{!cs.id}</apex:outputLink>
<apex:repeat value="{!Cases}" var="case" id="theRepeat">
</apex:repeat>
<apex:column value="{! cs.CaseNumber }"/>
<apex:column value="{! cs.id }"/>
<apex:column value="{! cs.Status='New'}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Please help me.
Thank you,
https://developer.salesforce.com/forums/?id=906F0000000AzvMIAS
VISUALFORCE PAGE NewCaseList CUSTOM CONTROLLER NewCaseListController Please let us know if this will help u
public class NewCaseListController {
public static List<Case> getNewCases()
{
List<Case> cases = Database.query(
'SELECT Id, CaseNumber From Case WHERE Status=\'New\''
);
return cases;
}
}
When I preview it, it looks fine shows me the four open cases and I can click through to the details. VERY FRUSTRATING. Please help!