简体   繁体   English

有没有办法更改 SharePoint 列表中的整个列值

[英]Is there a way to change an entire columns value in a SharePoint list

I have a simple SharePoint list which consists of 2 columns, username and a Boolean Yes/No expression.我有一个简单的 SharePoint 列表,其中包含 2 列,用户名和 Boolean 是/否表达式。 It is used for users to acknowledge that they have read a document.它用于用户确认他们已阅读文档。 I would like to create a button that would set all users Boolean expression back to 'No' when the document is amended/updated.我想创建一个按钮,在修改/更新文档时将所有用户 Boolean 表达式设置回“否”。 Is there a way to do this?有没有办法做到这一点?

I am very new to SharePoint and have not had a lot of experience with JavaScript.我对 SharePoint 非常陌生,并且对 JavaScript 没有太多经验。 Thanks in advance for any help!提前感谢您的帮助!

SharePoint does not provide a way to confirm that the user whether has read the document. SharePoint 不提供确认用户是否已阅读文档的方法。

As a workaround, you could add a workflow to update the list value,Users can start the workflow after reading the document.作为一种解决方法,您可以添加一个工作流来更新列表值,用户可以在阅读文档后启动工作流。

Can you please explain two columns that you have added are part of the same document library, Or document & two columns in separate list.您能否解释一下您添加的两个列是同一文档库的一部分,或者文档和两个列在单独的列表中。

If you have idea of JavaScript, then you can write CSOM Javascript code to implement the above scenario.如果您有 JavaScript 的想法,那么您可以编写 CSOM Javascript 代码来实现上述场景。 you can also make use of SharePoint REST Calls.您还可以使用 SharePoint REST 调用。

If you have idea of C#, then you can write even receivers to clear off the boolean values based on Document State Changes.如果您知道 C#,那么您可以根据文档 State 更改编写偶数接收器以清除 boolean 值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM