You need to sign in to do that
Don't have an account?
Neel Shah 12
Trailhead Creating and using Custom Controllers Challenge Issue is not resolving
Hello All,
I have written the following code but it still gives me error.
May i know the mistake i am doing and how can i rectify ?
Error:
The outputLink component on the 'NewCaseList' page isn't binding to the ID of a case.
Code:
VF Code:
Controller:
Output :
Thanks in advance.
I have written the following code but it still gives me error.
May i know the mistake i am doing and how can i rectify ?
Error:
The outputLink component on the 'NewCaseList' page isn't binding to the ID of a case.
Code:
VF Code:
<apex:page controller="NewCaseListController"> <apex:pageBlock title="New Case List" id="case_list" > <apex:pageBlockTable value="{!NewCases}" var="ct"> <apex:column headervalue="Case Link"><apex:outputLink value="/{!ct.id}">{!ct.id}</apex:outputLink> </apex:column> <apex:column value="{!ct.CaseNumber}"> </apex:column> <apex:column value="{!ct.Status}"/> <apex:repeat var="case" value="{!NewCases}"> </apex:repeat> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
Controller:
public class NewCaseListController { List<Case> results = new List<case>(); public List<Case> getNewCases() { results =[SELECT ID, CaseNumber, status FROM Case where status='New' LIMIT 10 ]; return results; } }
Output :
Thanks in advance.
Trailhead Help (https://trailhead.salesforce.com/en/help?support=home)can provide assistance for situations where Trailhead does not appear to be functioning correctly. You can reach out to them if this is the case.
Please close the thread by selected as Best Answer so that we can keep our community clean
Thanks,