You need to sign in to do that
Don't have an account?
Abhishek Mallik
Issue in Visualforce standard list controller trail challenge
Hi,
I am trying to solve a trail challeng on Visualforce standard list controller (Visualforce standard list controller trail (https://trailhead.salesforce.com/content/learn/modules/visualforce_fundamentals/visualforce_standard_list_controllers)). I have written the following code for the same:
Here while checking, I am getting following error:
The page does not bind to the record ID value (in order to link to the record detail page)
I am trying to solve a trail challeng on Visualforce standard list controller (Visualforce standard list controller trail (https://trailhead.salesforce.com/content/learn/modules/visualforce_fundamentals/visualforce_standard_list_controllers)). I have written the following code for the same:
<apex:page standardController="Account" recordSetVar="accounts"> <apex:pageBlock> <apex:repeat value="{! accounts }" var="a"> <li><apex:outputLink value="{! a.id}"></apex:outputLink> </li> </apex:repeat> </apex:pageBlock> </apex:page>
Here while checking, I am getting following error:
The page does not bind to the record ID value (in order to link to the record detail page)
Greetings to you!
For each record, the repeater uses the apex:outputLink component to link to the respective record detail page. Please try below code:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas