Issue:
Want to have application (e.g. PDF or DOC) link icons in column on web.
Solution:
1. Import as Image Resources the icons attached below.
![iconxls.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.440!OpenElement&FieldElemFormat=gif) ![iconbinary.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.DE8!OpenElement&FieldElemFormat=gif) ![icondoc.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.189C!OpenElement&FieldElemFormat=gif) ![icondvi.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.22D2!OpenElement&FieldElemFormat=gif) ![iconflw.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.2CBE!OpenElement&FieldElemFormat=gif) ![iconimage.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.3682!OpenElement&FieldElemFormat=gif) ![iconmdb.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.4128!OpenElement&FieldElemFormat=gif) ![iconpdf.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.4BB2!OpenElement&FieldElemFormat=gif) ![iconppt.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.55A4!OpenElement&FieldElemFormat=gif) ![iconps.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.5F74!OpenElement&FieldElemFormat=gif) ![iconrtf.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.68FE!OpenElement&FieldElemFormat=gif) ![iconsvwstw-oo-write.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.72AA!OpenElement&FieldElemFormat=gif) ![iconsxcstc-oo-calc.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.7EA0!OpenElement&FieldElemFormat=gif) ![iconsxdstd-oo-draw.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.8A3E!OpenElement&FieldElemFormat=gif) ![iconsxisti-oo-impress.gif](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.962E!OpenElement&FieldElemFormat=gif)
2. Add the following code to two new computed fields on the form.
a. AttachName
tmpnum:=@Attachments;
@If(tmpnum=0; "";
tmpnum=1; @AttachmentNames;
@Subset(@AttachmentNames; 1))
b. AttachIcon
tmp:=@LowerCase(@Right(P_Attachment1Name; "."));
@If(@IsError(tmp); ""; tmp=""; "";
tmp="xls"; "iconxls.gif";
tmp="sxi" | tmp="sti"; "iconsxisti-oo-impress.gif";
tmp="sxd" | tmp="std"; "iconsxdstd-oo-draw.gif";
tmp="sxc" | tmp="stc"; "iconsxcstc-oo-calc.gif";
tmp="svw" | tmp="stw"; "iconsvwstw-oo-write.gif";
tmp="rtf"; "iconrtf.gif";
tmp="ps"; "iconps.gif";
tmp="ppt"; "iconppt.gif";
tmp="pdf"; "iconpdf.gif";
tmp="mdb"; "iconmdb.gif";
tmp="gif" | tmp="jpg" | tmp="png" | tmp="tif" | tmp="tiff" | tmp="bmp"; "iconimage.gif";
tmp="swf" | tmp="fla"; "iconflw.gif";
tmp="dvi"; "icondvi.gif";
tmp="doc"; "icondoc.gif";
"iconbinary.gif")
3. Add this code to view column, using custom icon image.
Note: Domino 6.x and higher only. For 5 you will need to write relative URL to include path.
Note:
Build-in column icons from the R8.5 and earlier Designer Help
![](/SupportRef.nsf/e6b464faa52c14d1852567d90082c48f/e72c3f834ecdf55e8525713a0064fc9f/Body/0.A588!OpenElement&FieldElemFormat=jpg)
Use the number 0 for empty/blank.
Web path: /icons/vwicn123.gif
previous page
|