http://mysrvr/sitecollec1/mypage1.aspx?ID = 680没有任何项目.它可能已被其他用户删除,或由项目添加事件接收器中的其他用户重命名 [英] No item exists at http://mysrvr/sitecollec1/mypage1.aspx?ID=680. It may have been deleted or renamed by another user in itemadded event receiver

查看:57
本文介绍了http://mysrvr/sitecollec1/mypage1.aspx?ID = 680没有任何项目.它可能已被其他用户删除,或由项目添加事件接收器中的其他用户重命名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Am writing an event receiver for which only the assignedto person or some special SharePoint groups are getting the access to the particular Item. this is written in my itemadded and itemupdated eventhandler methods.

但是,当我是无法访问文档库或splist中的此项的用户时,我会收到错误消息:

But when i am user who doesnt have access to this item in the document library or splist, i am getting the error:

"No item exists at ... It may have been deleted or renamed by another user"

我该如何缓解呢?我需要使用哪种错误处理机制来消除此错误并显示soem用户友好错误或任何其他有意义的方法.

how can i mitigate this ? What error handling mechanism i need to apply for removing this error and show soem user friendly error or any other meaningful approaches.

我可以显示一些用户友好的错误吗,例如"

Can i show some user friendly error like "you dont have access to this document/item" when an unauthorized user tries to access the item and redirect to the list view page or home page?

 < p>

 <p>

 

 

推荐答案

你好,

检查以下文章: SharePoint同步事件接收器,具有向用户界面发送消息并保存表单数据的功能.当然,您必须使事件接收同步才能使用此方法.检查有关如何执行的以下文章:SharePoint事件接收者: 使异步事件同步以避免保存冲突错误.

check the following article: SharePoint Synchronous Event Receiver with message to UI and saving form data. Of course you have to make your event receives synchronous in order to use this approach. Check the following posts about how to do that: SharePoint event receivers: Making Asynchronous event Synchronous to avoid save conflict error.


这篇关于http://mysrvr/sitecollec1/mypage1.aspx?ID = 680没有任何项目.它可能已被其他用户删除,或由项目添加事件接收器中的其他用户重命名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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