Skip to main content
Serena Wu (IBM) a posé une question dans #Trailhead Challenges

I'm trying the following code to use the apex:outputLink component to link to the respective record detail page. But it alert me that  my page does not bind to the record ID value in order to link to the record detail page. Seeking for help. Thanks in advance.

<apex:outputLink value="{! URLFOR('https://brave-bear-bwe9a1-dev-ed.lightning.force.com/lightning/r/Account/')+a.Id+'/view' }"> Details </apex:outputLink>                       

2 réponses
  1. 3 mars 2022, 06:59

    Thanks your answer Keiji.

    The following code has fixed the problems.

    <apex:outputLink value="/{!a.Id}"> {!a.name} </apex:outputLink>

0/9000