Lotus Notes:如何在视图中显示“富文本格式"字段?对于现有文件 [英] Lotus Notes: How to show up Rich Text Field in a view? For existing documents

查看:444
本文介绍了Lotus Notes:如何在视图中显示“富文本格式"字段?对于现有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在表单定义中有一些RTF字段.它实际上只是文本.我想在视图中显示它,但是在添加新列时找不到该字段.

I have some Rich Text Fields in a form definition. It is really just Text. I want to show it in a view but cannot find the field when I add a new Column.

我进行了大量搜索,发现Rich Text无法直接显示在视图中.

I searched a lot and find out that Rich Text cannot be shown up directly in a view.

然后我发现这个想法有一个隐藏字段作为计算字段,其公式定义为 @Abstract([TextOnly]; 60400;","FieldName")

Then I found this idea to have a hidden field as a computed field with formula defined as @Abstract([TextOnly];60400;"","FieldName")

但这仅在创建新文档或对文档进行更改时有效. 我几乎有超过25k的文档,手动进行操作不切实际.

But this only works if a new document is created or changes are made for a document. I have almost over 25k documents and it is not practical to do that manually.

是否有要重新计算隐藏的计算字段?还是通过其他方式在视图中显示富文本字段?

Is there anyway to make the hidden computed field got recalculated? Or any other way to show a Rich Text Field in a view?

推荐答案

您可以使用以下代码编写一个遍历所有文档的Agent女巫:

You can write an Agent witch runs over all documents in view with the following code:



        Dim session as new notessession
    dim db as notesdatabase
    dim view as notesview
    dim doc as notesdocument

    set db = session.currentdatabase
    set view = db.getview("")
    set doc = view.getfirstdocument()
    while not doc is nothing
        Call doc.computewithform(true, false)
        Call doc.save(true,true)

        Set doc = view.getnextdocument(doc)
    wend

但是,运行该代理程序后,您将更改文档的最后修改日期.如果保存日期很重要,则可以将其写在其他字段中并显示出来.

But with running this agent you will change the last modified date of the documents. If it is important to save the date you can write it in an other field and display it.

这篇关于Lotus Notes:如何在视图中显示“富文本格式"字段?对于现有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆