How to add a download icon in the list view of a table?

raskill
Kilo Contributor

Hi Community,

I have a requirement wherein I have to add a download icon to all the rows in the "All managed documents" listing.

Like the image listed below,

find_real_file.png

On clicking this icon, I should be able to download the corresponding document, any help on how to achieve this is appreciated!

 

Thanks,

Raskill

1 ACCEPTED SOLUTION

Ajaykumar1
Tera Guru

Hi,

You can add an icon by using field styles.

  1. Navigate to Field styles
  2. Create a New record
  3. Select table as sys_attachment
  4. Select the field name(I selected File name) before which you want to add an icon
  5. In Value field add javascript:true
  6. In style field add following code :  

                     background-image: url('images/icons/download.gif');
                     background-repeat: no-repeat;
                     background-position: 98% 5px;
                     padding-right: 30px;

       7. Update.

Please see below result.

find_real_file.png

 

Mark If Correct/Helpful.

Regards,
Ajay

 

 

 

 

View solution in original post

7 REPLIES 7

On clicking this icon, Are you able to download the attachment 

Hi!

I know it was some time ago, but do you know maybe how to put the icon AFTER the text in the cell?

Thank you!

Best,
Zsolt

sowndharyam
Tera Contributor

Hi Ajay,

Similarly can we add a icon to a related list under incident form based on condition (example: I want a star icon to a impacted ci related list of incident form when their service provider i.e., company is based out of certain location)

Thanks in advance