2

我在 XPiNC 中有一种方法(您可以添加该标签吗)来检查 Notes 客户端中是否启用了“计划的本地代理”?或者如何在 LotusScript 代理中执行此操作。检查代理是否处于活动状态很容易,但这只是等式的一部分

4

1 回答 1

3

请参阅NotesAgent 类的触发器和属性:IsEnabled

TRIGGER_AFTER_MAIL_DELIVERY (2) means "After new mail has arrived"
TRIGGER_BEFORE_MAIL_DELIVERY (6) means "Before new mail arrives"
TRIGGER_DOC_PASTED (3) means "When documents are pasted"
TRIGGER_DOC_UPDATE (5) means "After documents are created or modified"
TRIGGER_MANUAL (4) means "Action menu selection" or "Agent list selection"
TRIGGER_SERVERSTART (8) means "When the Domino server starts"
TRIGGER_NONE (0) is not used

TRIGGER_SCHEDULED (1) means "More than once a day," "Daily," "Weekly," "Monthly," or "Never"

编辑这个论坛帖子建议检查 Notes 客户端是否配置为允许运行计划代理可以这样完成:

if (Clng( Session.GetEnvironmentValue( "Preferences", True )) and &H8000000) > 0 then
    msgbox "scheduled agents allowed"
end if
于 2012-04-14T06:13:23.600 回答