Files or images attached in a transaction can be viewed through Iview hyperlink
It uses two columns to achieve functionality.
- Column1 - display the hyperlink ( it’s the regular Iview column. Eg: Attachment as column name)
- Column2 - have path and file details (column name should be as first ColumnName_hlink (eg: Attachment_hlink)
Note: There is no specific order in the columns. They can appear anywhere.
Attachment_hlink can have the below details.
- @r:= -> Recordid
- @p:= -> Pathname
- @t:= -> Tablename
- @f:= -> Filename
If defined as image field that is storing as blob in table, use like@r=:recordid@t:tablenameIf defined as image field along with AxpImagePath variable, use like @r:=recordid@p:=pathnameIf defined as grid attachment with dcname_image along with AxpImagePath variable, use @r:=recordid@p:=pathname@f:=list of files(comma separated)If defined as grid attachment with dcname_image along with dcname_imagepath, use @p:=pathname@f:=filename
@p=e:axpertimg\details\cust\sup\item @f=file1.bmp,file2.txt ^@p=e:\axpertimg\product\cust\sup\item @f=pfile1.bmp, pfile2.doc