Skip to main content Stream TDX Bengaluru on Salesforce+. Start learning the critical skills you need to build and deploy trusted autonomous agents with Agentforce. Register for free.
Lukasz Piziak (Hosetech Ltd) 님이 #Visualforce에 질문했습니다
Hi,

How I can change my record name PRO-00139 as a hyperlink on my pageBlockTable to be able to click on this name and open record?

I'm really new to the Visualforce page and any help would be appreciated.

How to add Hyperlink in Visualforce page on BlockTable?
답변 4개
  1. 2015년 10월 17일 오후 3:06
    Hi Lukasz,

    You can use something link this -

     

    <apex:page standardController="Account">

    <apex:pageBlock >

    <apex:pageBlockTable value="{!Account}" var="acc">

    <apex:column headerValue="Name">

    <apex:outputLink value="/{!acc.id}" target="_blank">

    Name

    </apex:outputLink>

    </apex:column>

    </apex:pageBlockTable>

    </apex:pageBlock>

    </apex:page>

    Please change the value 'target' based on your requirement whether to open the new page in the same window or in a new tab.This target value '_blank' will open the new page in a new tab.

    Please let me know if it helps.

    Regrads,

    Shashi

     
로딩 중
0/9000