【发布时间】:2010-07-26 14:37:48
【问题描述】:
我在 Sharepoint 中列出了新列“第一行批准者”。 此列的类型为“个人或组”,“允许多选”设置为“是”。
如何在运行时(从工作流)获取和修改此列的值?
【问题讨论】:
标签: sharepoint sharepoint-2007
我在 Sharepoint 中列出了新列“第一行批准者”。 此列的类型为“个人或组”,“允许多选”设置为“是”。
如何在运行时(从工作流)获取和修改此列的值?
【问题讨论】:
标签: sharepoint sharepoint-2007
假设您已将 WorkflowProperties 绑定到类..
SPFieldUserValueCollection f= new SPFieldUserValueCollection(WorkflowProperties.Web,WorkflowProperties.ListItem["First line approvers"] + "");
然后您可以遍历集合/修改集合并通过以下方式保存更改:
WorkflowProperties.ListItem["First line approvers"] = f.ToString(); //You might not need the to string here, I can't remember.
【讨论】: