【问题标题】:Automatic field value update every week in Lotus NotesLotus Notes 中每周自动更新字段值
【发布时间】:2016-06-12 07:39:45
【问题描述】:

我想在表单的字段中捕获代理的计划时间。该代理在每个星期五晚上运行。当代理运行时,该字段将更新其值作为代理的运行时间。我该怎么做?例如,本周五字段值为 04.03.2016,下周五字段值为 11.03.2016。

【问题讨论】:

    标签: field lotus-notes agent


    【解决方案1】:

    在 LotusScript 中它看起来像这样。

    set DateTime = new NotesDateTime(now)
    call DateTime.AdJustDays(7)
    DateTime.DateOnly=true
    call NotesDocument.replaceItemValue("Field",DateTime)
    

    【讨论】:

      【解决方案2】:

      或者,对于我们这些喜欢单线的人:

      调用 NotesDocument.ReplaceItemValue("Field",Evaluate("@Adjust(@Today; 0; 0; 7; 0; 0; 0)"))

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多