Lotus Notes:是否可以创建一个视图,以将收件箱以外的所有文件夹中的文档排除在外? [英] Lotus Notes: Is it possible to create a view that excludes documents in all folders other than Inbox?

查看:61
本文介绍了Lotus Notes:是否可以创建一个视图,以将收件箱以外的所有文件夹中的文档排除在外?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道您可以排除某些文件夹-但您必须命名它们.我需要一个视图以仅显示收件箱中的文档,而不必在每次创建新文件夹时都进行更新.

I am aware that you can exclude certain folders - but you have to name them. I need a view to show only the documents in the inbox, that doesn't need updating everytime we create a new folder.

任何帮助将不胜感激!

:)

推荐答案

不可能直接进行.没有公式可以帮助您构建select语句以获取仅在收件箱"中的文档.但是,您可以安排一个代理程序(可能每5-10分钟运行一次),该代理程序将更新文档并标记它们(如果它们在收件箱中).然后,您只需要选择设置了该标志的文档即可.

It is not possible directly. There are no formulas that would help you build a select statement to get documents that are only in the Inbox. However, you could have an agent run on a scheduled basis (maybe every 5-10 minutes) that would update documents and flag them if they are in the inbox. Your view would then just need to select documents that have that flag set.

已更新,如umeli所指出的,当文档从收件箱中移出时,该标志需要取消设置.这是修改后的脚本:

Updated As umeli pointed out, the flag needs to be unset when documents are moved out of the Inbox. Here's a modified script:

例如:

Dim s as New NotesSession
Dim db as NotesDatabase
Dim view as NotesView
Dim doc as NotesDocument
Dim allEntriesInbox as NotesViewEntryCollection
Dim allEntriesFlagged as NotesViewEntryCollection    

Set s = New NotesSession
Set db = s.CurrentDatabase
Set view = db.GetView("($Inbox)")
Set viewFlagged = db.GetView("IsInInboxView")

Set allEntriesInbox = view.AllEntries
Set allEntriesFlagged = viewFlagged.AllEntries

allEntriesFlagged.StampAll("IsInInbox", "")
allEntriesInbox.StampAll("IsInInbox, "1")

您的视图(在此示例中为"IsInInboxView")的选择公式应为IsInInbox = "1"

Your view (named "IsInInboxView" in this example) should have a selection formula of IsInInbox = "1"

这篇关于Lotus Notes:是否可以创建一个视图,以将收件箱以外的所有文件夹中的文档排除在外?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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