cancel
Showing results for 
Search instead for 
Did you mean: 

Get Icon based on Mimetype

Former Member
0 Kudos

Hi Folks,

I am looking for a standard method to derive the icon name for mimetype to be used with the FileUpload UI Element.

This Fileupload returns the Mimetype, i want to display this to the user in a table, each row of the table should contain the icon for filetype.

Please do not suggest hardcoding or endless IF-ELSEIF statements, beacuase to exhaust all the possible file extension it would take quite a while.

Basically the app will serve as an input point for the user to upload documents into teh backend , and since there are mulitple files, it would be great to show them,(graphically of course) what type of data is present is each file.

PS : something similar was requested for in the WD Java fourm and i think a solution was provided.

[url]/message/648254#648254 [original link is broken];url]

Best Regards,

Gaurav

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Question remains unanswered

Former Member
0 Kudos

No suggestions ??

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

please refer to the below link.

[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ec/bb08428dab5f24e10000000a1550b0/content.htm]

Check if the function module WDY_WB_VD_ICON_PICKER may help you.

Regards,

Priya

Former Member
0 Kudos

Thanks, I would like to query for icon name based on file extension, so i am loooking for a way for that...