【发布时间】:2016-06-12 07:39:45
【问题描述】:
我想在表单的字段中捕获代理的计划时间。该代理在每个星期五晚上运行。当代理运行时,该字段将更新其值作为代理的运行时间。我该怎么做?例如,本周五字段值为 04.03.2016,下周五字段值为 11.03.2016。
【问题讨论】:
标签: field lotus-notes agent
我想在表单的字段中捕获代理的计划时间。该代理在每个星期五晚上运行。当代理运行时,该字段将更新其值作为代理的运行时间。我该怎么做?例如,本周五字段值为 04.03.2016,下周五字段值为 11.03.2016。
【问题讨论】:
标签: field lotus-notes agent
在 LotusScript 中它看起来像这样。
set DateTime = new NotesDateTime(now)
call DateTime.AdJustDays(7)
DateTime.DateOnly=true
call NotesDocument.replaceItemValue("Field",DateTime)
【讨论】:
或者,对于我们这些喜欢单线的人:
调用 NotesDocument.ReplaceItemValue("Field",Evaluate("@Adjust(@Today; 0; 0; 7; 0; 0; 0)"))
【讨论】: