0

我在 Notes 文档上有一个复选框字段,用于标识流程中完成的步骤。如果用户在 TestDate 字段中输入一个值,我希望它在 Tasks 字段中选中“已测试”框。出于某种原因,如果已选中其他复选框,我无法弄清楚如何添加该值。

我尝试在验证中使用公式语言(@SetField)对其进行设置,将其作为 LotusScript QuerySave 中的后端字段更改并在 onChange 事件中使用 LotusScript。我确信这很简单,但今天我无法理解它。

4

3 回答 3

1

在 LotusScript 中,您应该能够执行以下操作:

set item = doc.getFirstItem("Tasks")
call item.AppendToTextList("Tested")
call doc.save(true)
于 2012-05-09T17:34:32.480 回答
0

您应该能够使用您指定的任何方法,但您需要保留现有值:

@SetField("Tasks"; Tasks:"Tested");
于 2012-05-09T16:59:01.630 回答
0

复选框:使用公式进行选择;

公式:

@SetField("checkbox";@GetField("QW"))

sub click (on button)
    Call ws.CurrentDocument.Document.ReplaceItemValue("QW",choices)

    Call ws.CurrentDocument.Refresh
end sub
于 2014-07-10T03:08:48.723 回答