简体   繁体   English

SharePoint 2010 级联删除与多值查找列

[英]SharePoint 2010 cascade delete with multivalued lookup column

I have a sharepoint list which has a lookup column to fetch data from another list.我有一个 sharepoint 列表,它有一个查找列来从另一个列表中获取数据。 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.我希望此查找列允许多个值,但问题是 SharePoint 2010 在我选择允许列中的多个值时禁用“强制关系行为”复选框。 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.我知道我们可以创建一个 Visual Studio 工作流来实现这一点,但如果有更好的解决方案需要最少的定制甚至 SharePoint 设计师 2010,请分享。

Standard SharePoint lookup does not support it.标准 SharePoint 查找不支持它。 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 .您可以使用事件接收器开发自定义解决方案以删除相关项目或使用此插件: http://www.sparqube.com/sharepoint-lookup-column

Ria,里亚,

Can't do this OOTB but you can create a custom solution.无法执行此 OOTB,但您可以创建自定义解决方案。 Create an extra column where you track information about your lookups (eg, the ID of the related item).创建一个额外的列,您可以在其中跟踪有关查找的信息(例如,相关项目的 ID)。 Use an event receiver on the list and programmatically do the cascade delete.使用列表中的事件接收器并以编程方式执行级联删除。

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

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