2012-04-14 33 views

回答

3

見NotesAgent類的TriggerIsEnabled屬性:

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" 

編輯This forum post suggests檢查其中Notes客戶端配置爲允許運行預定代理程序可以這樣完成:

if (Clng(Session.GetEnvironmentValue("Preferences", True)) and &H8000000) > 0 then 
    msgbox "scheduled agents allowed" 
end if 
+0

那不是我的問題。 isEnabled也暴露給LotusScript。我想檢查的是:啓用客戶端來運行預定代理。如果代理程序已啓用,但沒有客戶端,它將不會運行 – stwissel 2012-04-14 09:14:37

+0

我明白了。用偏好分析的例子更新了我的答案。 – 2012-04-14 11:29:20

相關問題