function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
How can I display an attachment on Visualforce page that can be downloadable.
Thanks in advance!
I am sure what is your exact requirement. But in general you can provide a link for downloading attachment by Global $Action variable.
Eg:
<apex:outputLink value="{!URLFOR($Action.Attachment.Download,att.id)}"> Download Now! </apex:outputLink>
where attachment is your attachment record.
Big V
Hi Big V,
My requirement is also same. i want display my attachment in vf page
in output link with download and also View file also
As like gmail attachment
am using your code it raise an error like
Invalid parameter for function URLFOR
Try This
<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.id)}" target="_blank">{!attachment.name}</apex:outputLink>
Prem
I am sure what is your exact requirement. But in general you can provide a link for downloading attachment by Global $Action variable.
Eg:
where attachment is your attachment record.
Big V
Hi Big V,
My requirement is also same. i want display my attachment in vf page
in output link with download and also View file also
As like gmail attachment
am using your code it raise an error like
Invalid parameter for function URLFOR
Try This
<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.id)}" target="_blank">{!attachment.name}</apex:outputLink>
Prem