使用多值查找列的 SharePoint 2010 级联删除
我有一个共享点列表,其中有一个查找列用于从另一个列表中获取数据。我希望此查找列允许多个值,但问题是当我选择允许列中存在多个值时,SharePoint 2010 会禁用“强制关系行为”复选框。我希望该项目在从父列表中删除时也从该列表中删除。在最短的时间内实现这一目标的最简单的方法是什么?我知道我们可以创建一个 Visual Studio 工作流来实现此目的,但如果有需要最少自定义甚至 SharePoint 设计器 2010 的更好的解决方案,请分享。
I have a sharepoint list which has a lookup column to fetch data from another list. I want this lookup column to allow multiple values but the problem is that SharePoint 2010 disables the "Enforce Relationship behavior" checkbox when i choose to allow multiple values in the column. I want the item to be deleted from this list as well when it is deleted from the parent list. What would be the least complex way to achieve this in the minimum time. I know that we can create a Visual Studio Workflow to achieve this but if there is a better solution which requires least customization or even SharePoint designer 2010 please share.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
标准 SharePoint 查找不支持它。您可以使用事件接收器开发自定义解决方案来删除相关项目或使用此附加组件:http:// /www.sparqube.com/sharepoint-lookup-column。
Standard SharePoint lookup does not support it. You can develop custom solution using event receivers to delete related items or or use this add-on: http://www.sparqube.com/sharepoint-lookup-column.
Ria,
无法执行此 OOTB,但您可以创建自定义解决方案。创建一个额外的列,用于跟踪有关查找的信息(例如,相关项目的 ID)。使用列表上的事件接收器并以编程方式执行级联删除。
Ria,
Can't do this OOTB but you can create a custom solution. Create an extra column where you track information about your lookups (e.g., the ID of the related item). Use an event receiver on the list and programmatically do the cascade delete.