function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Boudewijn TimmersBoudewijn Timmers 

Standard List Controler challenge

Hi all,
I am using below code to do the challenge for the List Controler section in the trailhead. The code works as expected but I get an error stating "Challenge Not yet complete... here's what's wrong:
The page does not bind to the record ID value (in order to link to the record detail page)"

The page works however as expected. What is going wrong here?
my code:
<apex:page standardController="Account" recordSetVar="accounts">
    <apex:repeat value="{!accounts}" var="a">
            <ul>
                <li><apex:outputLink value="{!URLFOR('/'+a.ID)}">Bekijk account {!a.Name}</apex:outputLink></li>
            </ul>
	</apex:repeat>
</apex:page>

 
Best Answer chosen by Boudewijn Timmers
Boudewijn TimmersBoudewijn Timmers
found the solution. I replaced
<li><apex:outputLink value="{!URLFOR('/'+a.ID)}">Bekijk account {!a.Name}</apex:outputLink></li>
by
<li><apex:outputLink value="/{!a.id}" >Bekijk account {!a.Name}</apex:outputLink></li>   
		</apex:repeat>
So probably !URLFOR prevented the challenge from being accepted.

All Answers

Boudewijn TimmersBoudewijn Timmers
Is there anybody that can help me out here?
Boudewijn TimmersBoudewijn Timmers
found the solution. I replaced
<li><apex:outputLink value="{!URLFOR('/'+a.ID)}">Bekijk account {!a.Name}</apex:outputLink></li>
by
<li><apex:outputLink value="/{!a.id}" >Bekijk account {!a.Name}</apex:outputLink></li>   
		</apex:repeat>
So probably !URLFOR prevented the challenge from being accepted.
This was selected as the best answer