在lotus notes的视图的列里面插入图片的方法

本文介绍了如何在Lotus Notes视图的列中插入图片以提升审美效果和信息明确度。方法包括使用Notes内置图片ID和自定义图片,并提供公式示例。注意事项涉及图标数量限制和自定义图标名称的含义。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 在lotus notes的视图中,如果把列都设置成文本的话,可能会造成审美疲劳。
使用图片的话,不但可以节省空间(图标可比文字短多了),而且在有些时候意义更加明确。
所以适当的使用一些图表是非常不错的。

像我们的邮箱模板里面使用的图标就挺好的。


至于有些网友说可能会影响性能的问题,我没有测试过,也没有调查过,就暂时不发表关于这方面的评论了。

以下方法是来自于Domino Designer的帮助文档[Lotus Domino Designer 7 Help],这篇帮助文档的名字是
[Displaying an icon in a column],不过是英文的而已。

视图中显示的图表有两部分来源,
一部分是notes内置的图片,这些图片是可以直接通过使用一个数字的id来调用的。
另外一部分就是用户自定义的图片,可以使用GIF,BMP和JPEG格式,把这些图片放到notes DB的[共享资源]->[图像]下面即可。
使用的时候需要使用图片的整个名字,如"hello.gif"。

要在列里面显示图标的话,好像只能用公式。
@If(condition;(icon when true);(icon when false))

在@If中的三个参数中,第一个参数为判断条件,第二个参数为条件为真时的图标,第三个条件为条件为假时的图标。
如@If(@Attachments;5;0),表示如果有附件的话,显示数字5对应的图标,否则显示空白。(数字0对应的图片为空白)
如果是自定义的图标的话,用后面的方式,要用引号把图标的名字引起来,@If(@Attachments;"test1.gif";"test2.gif")

notes预定义的图片:
rel="File-List" href="file:///D:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/msoclip1/01/clip_filelist.xml"> rel="Edit-Time-Data" href="file:///D:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/msoclip1/01/clip_editdata.mso">
用行的数字组合上列的数字就是每一个图标所对应的数字,如第一列从上往下依次是0-9,第二列就是10-19。。。,最后一列
是180-183。

最后是一些重要信息的摘抄:
Use 0 as the "false" case when you want to leave the column blank. The formula above returns 0 when the document has no attachments, so nothing is displayed. A column can display multiple icons, so in this example you might replace the 0 with a different icon value, or use nested If statements to establish conditions for displaying various icons. A column can display up to 10 different icons. All of the icons must be predefined icons. Domino cannot display predefined icons and custom icons in the same column.

The following are some guidelines to consider when using view icons in an application:
If you designate an existing view icon by number, the default icon description displays.
When creating custom icons for use in view columns, assign meaningful image names because the names will be used as the hover text.
If there are multiple icons in a column, hovering the mouse pointer over the icons displays as many icon descriptions as will fit across the user's screen.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值