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
surya7628@gmail.com Ksurya7628@gmail.com K 

button code

Hi All,

I have created the vf page for report,earlier i have created the formula field(type is text) for this vf page.In that formula field i gave the below link with id this is working

Formula filed : HYPERLINK('https://c.ap2.visual.force.com/apex/NTReport2?id='+Id,'PDF')


But i need to use the above url in button (detail page button),i have tried below both urls it is not working

https://c.ap2.visual.force.com/apex/NTReport2?id=+'{!Order.Id}','PDF'

https://c.ap2.visual.force.com/apex/NTReport2?id=+Id,'PDF'


 
Sumit Kumar Singh 9Sumit Kumar Singh 9
Hello Surya,

Pls try this -
/apex/NTReport2?id={!Order.Id}
In the "Content Source" choose "URL" while creating the custom button. If you have have existing one, then you can modify it.

Thanks, 
Sumit Kuamr Singh