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
Gaurav AgnihotriGaurav Agnihotri 

Output link not working

Gurus, 
I have a very simple VF page. the output link on this page is not working.
Here is the VF page
<apex:page standardController="Quote" extensions="ReevaluateLimit"  sidebar="false">
  <h1>Reevaluate Limit</h1>
<apex:pageBlock >
<apex:pageBlockSection columns="1">
  <!-- Begin Default Content REMOVE THIS -->

  Only 18 Quote Items can be reevaluated.
  <apex:outputText value="/{!sQuoteId}"/>
   <apex:outputlink title="Back to Quote" value="/{!sQuoteId}"></apex:outputlink>
  <!-- End Default Content REMOVE THIS -->
 </apex:pageBlockSection>
 </apex:pageBlock>
</apex:page>

Below is the class
public class ReevaluateLimit {
 public Id sQuoteId {get;set;}
 public ReevaluateLimit(ApexPages.StandardController controller){
  sQuoteId=ApexPages.currentpage().getparameters().get('Id');
 }
}

I am able to get value of Id and it is displayed correctly on  apex:outputText

I just want to put a link on top of the page back to Quote

Regards, 
Gaurav

 
Best Answer chosen by Gaurav Agnihotri
Neetu_BansalNeetu_Bansal
Hi Gaurav,

In apex:outputLink title is used as: The text to display as a tooltip when the user's mouse pointer hovers over this component.
Update your code as below:
<apex:page standardController="Quote" extensions="ReevaluateLimit"  sidebar="false">
  <h1>Reevaluate Limit</h1>
<apex:pageBlock >
<apex:pageBlockSection columns="1">
  <!-- Begin Default Content REMOVE THIS -->

  Only 18 Quote Items can be reevaluated.
  <apex:outputText value="/{!sQuoteId}"/>
   <apex:outputlink title="Back to Quote" value="/{!sQuoteId}">Back to Quote</apex:outputlink>
  <!-- End Default Content REMOVE THIS -->
 </apex:pageBlockSection>
 </apex:pageBlock>
</apex:page>
Let me know, if you need any other help

Thanks,
Neetu

All Answers

kaustav goswamikaustav goswami
Here is the rectified code:
 
<apex:page standardController="Quote" extensions="ReevaluateLimit"  sidebar="false">
  <h1>Reevaluate Limit</h1>
<apex:pageBlock >
<apex:pageBlockSection columns="1">
  <!-- Begin Default Content REMOVE THIS -->

  Only 18 Quote Items can be reevaluated.
  <apex:outputText value="/{!sQuoteId}"/>
   <apex:outputlink title="Back to Quote" value="/{!sQuoteId}">Back To Quote</apex:outputlink>
  <!-- End Default Content REMOVE THIS -->
 </apex:pageBlockSection>
 </apex:pageBlock>
</apex:page>

Check the apex:outputLink.

Thanks,
Kaustav
Neetu_BansalNeetu_Bansal
Hi Gaurav,

In apex:outputLink title is used as: The text to display as a tooltip when the user's mouse pointer hovers over this component.
Update your code as below:
<apex:page standardController="Quote" extensions="ReevaluateLimit"  sidebar="false">
  <h1>Reevaluate Limit</h1>
<apex:pageBlock >
<apex:pageBlockSection columns="1">
  <!-- Begin Default Content REMOVE THIS -->

  Only 18 Quote Items can be reevaluated.
  <apex:outputText value="/{!sQuoteId}"/>
   <apex:outputlink title="Back to Quote" value="/{!sQuoteId}">Back to Quote</apex:outputlink>
  <!-- End Default Content REMOVE THIS -->
 </apex:pageBlockSection>
 </apex:pageBlock>
</apex:page>
Let me know, if you need any other help

Thanks,
Neetu
This was selected as the best answer
Gaurav AgnihotriGaurav Agnihotri
Thanks, Neetu and Kaustav. Appreciate your help.