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
kk909kk909 

Navigation To Another Page From Table

Hi!

 

I have a table with data that needs to be redirected to other page when clicked.

 

Each row has links to other pages.

 

Please let me know how can I display  a specific detail page when I click a specific column.

 

Thanks..

Best Answer chosen by Admin (Salesforce Developers) 
TejTej

Try This.

 

<apex:column headerValue="Title" width="140">
     <apex:outputPanel >
         <a href="/apex/ICMyPage?Id={!record.id}"> {!record.Name} </a>
    </apex:outputPanel>
</apex:column>

All Answers

sandeep@Salesforcesandeep@Salesforce

Hi 

 

This is pretty simple to get redirected on other detail page from table. Please use following Apex:outputlink to implement.

<apex:outputLink value="/{!RecordId}" target="_blank">clickHere</apex:outputlnik>

 

Please mark this as solution if it is helpful and give me kudos.

kk909kk909
Hi! Sandeep.

The data is in table. So, First I should display the value in the table from SObject. I guess I could not use Record Id as Value, as I should display other values such as campaign name and few others.

My Requriement is similar to home page of "campaigns" in Sales App.

Please let me know even now, I can solve the problem using your solution.

Thank you.
TejTej

Try This.

 

<apex:column headerValue="Title" width="140">
     <apex:outputPanel >
         <a href="/apex/ICMyPage?Id={!record.id}"> {!record.Name} </a>
    </apex:outputPanel>
</apex:column>

This was selected as the best answer
kk909kk909

Hi ! Tej.

 

It was very simple. I need not use output panel for this. Your first post will solve my problem..

 

Thanks for the solution.