You need to sign in to do that
Don't have an account?
Arul Bernard I 14
How to use command link in pdf page using visualforce page?
I am using "renders - pdf". In that pdf page, I'm using command link and action is not working on the page. How to overcome this issue?
According to the Visualforce docs, apex:commandLInk is unsafe to use when generating a PDF, which usually means it doesn't work.
apex:outputLink is documented as safe to use, so you could provide a link back the previous page that way. You won't be able to post back to the server though.
Thanks!
<apex:form >
<apex:pageblock id="account" title="Part" >
<apex:pageblockTable value="{!attch}" var="a" >
<apex:column >
<apex:outputLink title="sample" value="{!URLFOR($Action.Attachment.Download, a.Id)}">{!a.Name}</apex:outputLink>
</apex:column>
</apex:pageblockTable>
</apex:pageblock>
</apex:form>
Take reference from this sample code:
Let me know if it helps.
Thanks
It's fine. I have done with vf and class. but while I run the program it's not getting into page block table. Is there any other way overcome
To get the data in a tabular form you will have to add your custom css to the VF page. You can use apex:datatable and add your css styling to that.
Thanks