SharePoint 2010:是否可以在没有列表实例的情况下声明列表关系?

发布于 2024-10-03 07:23:28 字数 503 浏览 0 评论 0原文

首先,我必须为可能误导性的问题辩解:我读到这是不可能的,所以问题实际上是:这是真的吗?如果是,是否还有另一种可能性来完成这种关系行为?但让我们描述一下我的情况:

我正在开发一个小型 SharePoint 2010 解决方案,并且不确定如何部署某些关系。我想仅借助包和功能来部署所有内容,这意味着我无法使用 SharePoint UI。这就是我想做的:

我正在设计几种内容类型,例如ReportEntry。我使用 XML 定义来设计它们。然后,我构建列表定义来描述例如 ReportList 处理 Report 类型的项目。现在我陷入困境:我想声明每个条目都属于一个报告。因此,我将查找字段添加到 Entry 的内容类型定义中,但是当我部署其内容类型时,查找字段需要列表实例。

我想在不需要这些实例的情况下声明这种关系。用户应该能够决定他们想要为自己添加哪些列表。是否有在没有列表实例的情况下声明这种关系的最佳实践?

First of all I have to excuse for the maybe misleading question: I read that it's not possible, so the question actually is: Is this true and if yes, is there another possibility to accomplish this relation-behavior? But let's describe my situation:

I'm developing a small SharePoint 2010 solution and am not sure how to deploy some relations. I want to deploy everything with only the help of packages and features, that means I cannot use the SharePoint UI. That's what I want to do:

I'm designing several content types, e.g. Report and Entry. I'm using XML-Definitions to design them. Then I build list definitions that describe that e.g. the ReportList handles items of the type Report. And now I'm stuck: I want to declare that every Entry belongs to one Report. Therefore I'm adding a lookup field to the definition of the content type for Entry, but lookup fields need list instances when I deploy their content types.

I would like to declare the relation without a need of these instances. Users should have the ability to decide which lists they want to add for themselves. Is there a best practice for declaring such relation without having list instances?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱已欠费 2024-10-10 07:23:28

请遵循以下文章。它将帮助您创建带有列表的查找列。定义是可能的,因为它在博客网站中使用。 查找站点列

Follow the following article. It will be a help for you creating lookup columns with list. Definition is possible as it is used in the blog site. Lookup Sitecolumn.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文