SharePoint 2013-快速编辑 [英] SharePoint 2013 -Quick Edit

查看:50
本文介绍了SharePoint 2013-快速编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SharePoint 2013在快速编辑视图中-i中有一个选择列"Complete".带有选项是"/否"的选项.我们的默认视图仅显示带有否"的项目.价值.用户将通过将其更改为是"来对其进行处理.一旦是 更改后,其他用户就看不到它了,因此只有一个用户可以处理该特定项目.

SharePoint 2013 In quick edit view-i have a choice column "Complete" with options "yes"/"No". Our default view shows only items with "NO" value. The user will work on it by changing it to "Yes". Once it is changed, it should not be visible to others, so that only one user will be working on that particular item. 

但是如果2个用户同时打开了此列表. SP将允许两个用户通过将其更改为是"来分配相同的事件编号.版本历史中有两个条目.

But if 2 users have this list opened at same time. SP will allow both users to assign same incident number by changing it to "YES". VErsion history has both entries.

我只允许一个用户更新该列.它不应允许任何其他用户对其进行编辑.

I want to allow only one user to update that column.once its changed to "Yes" it should not allow any other user to edit it.

有任何建议吗?

推荐答案

史密斯瑞姆,

如果我正确理解了您的问题,则要阻止其他用户编辑列表项(如果有人已经在编辑它).没有OOB方法可以实现此目的.可以使用某种可能的锁(例如JQuery之类的自定义代码)来完成 在列表本身中,但该策略存在两个重要缺陷:

1.考虑到第一个用户单击链接以切换到编辑模式,因此我们锁定了列表项.如果用户只是关闭浏览器而不进行进一步操作(或者网络故障,系统崩溃或计算机死机),则该项目将保持锁定状态, 并且其他所有人都将无法编辑它,直到我们以某种方式释放它(通常是在超时后,或者通过在Web部件之外修补它).

2.仅当用户打开编辑属性"时,JQuery才有用.页.如果我们在快速编辑视图中进行更改,它将无法正常工作.

根据您的情况,建议您关闭此列表的快速编辑功能.用户必须点击修改属性"编辑列表项.这次,SP仅允许一个用户通过将其改变为是"来分配相同的事件编号.另一个使用者 保存更改后,将会收到冲突错误.

If I understand your question correctly, you want to prevent other users from editing a list item if someone is already editing it. There is not a OOB method to achieve this. That can be done using some kind of lock(custom code like JQuery), possibly stored in the list itself, but that strategy suffers from two important flaws:

1. Consider that the first user clicks the link to switch to edit mode, and we lock the list item. If the user just closes his browser without proceeding any further (or his network fails, or his system crashes, or his computer dies), the item will remain locked, and everybody else will be prevented from editing it until we release it somehow (usually after some timeout, or by tinkering with it outside of the web part).

2. JQuery is useful only when user open the "edit properties" page. It won't work if we make changes in the quick edit view.

For your situation, I suggest you close the quick edit function for this list. User must click "edit properties" to edit the list item. This time, SP only allow one user to assign same incident number by changing it to "YES". Another User will receive a conflict error when he save his change.

最诚挚的问候,

艾伦·贝


这篇关于SharePoint 2013-快速编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆