Sharepoint:基于另一个列表的计算列

发布于 2024-11-10 13:41:46 字数 281 浏览 1 评论 0原文

我可能正在寻找错误的方法来执行此操作,但我在这里:

我有一个 Sharepoint 列表(标题为“旅行”),其中包含计划到特定区域的旅行列表。我有第二个列表(“区域”),其中包含固定数量的项目,每个项目代表一个特定区域。区域有一个标题为“条件”的列,描述该特定区域的道路。

现在...鉴于行程中的某个项目包含对行程前往的区域项目的引用,我希望能够“查找”该区域项目的条件列并将其包含在行程视图中。问题是,如果我向 Trips 添加查找列,它只允许我从区域中选择标题列,这只是区域名称。

有什么想法吗?

I could be looking at the wrong way to do this, but here I go:

I have a Sharepoint list (titled "Trips"), which has a list of trips scheduled to particular zones. I have a second list ("Zones"), which has a fixed number of items, each item representing a particular zone. Zones has a column titled "Condition" describing the roads in that particular area.

Now... given that an item in Trips contains a reference to the Zone item where the trip is heading, I want to be able to "look up" the Condition column for that Zone item and include it in Trip views. Problem being, if I add a lookup column to Trips, it only allows me to select the title column from Zones, which is just the zone name.

Any thoughts?

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

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

发布评论

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

评论(1

忘你却要生生世世 2024-11-17 13:41:46

在 SharePoint 2010(及更新版本)中,您可以,但不能在 SharePoint 2007 中。

在 SharePoint 2007 中,您必须创建自定义输入表单,请查看http://weblogs.asp.net/jan/archive/2006/11/06/Custom-Edit-Forms-for-SharePoint-2007-Lists.aspx。您还可以通过创建自定义 Web 部件来添加它们,如果您需要这方面的帮助,请告诉我们。

在 Sp2010 中,事情要简单得多,您只需使用查找列类型(而不是计算列)。您应该让行程列表按照您的建议在区域列表中查找值,从区域列表中选择项目时,您可以通过选中“添加列”中的框自动从远程列表中的其他列获取值显示每个附加字段“部分。

我举了一个例子
我在区域列表中添加了一些项目

还有行程列表中的一些行程,从区域列表中选择查找列

结果,我的旅行、区域以及从区域列表中获取的区域状况

查找设置

祝你好运!

In SharePoint 2010 (and newer) you can but not SharePoint 2007.

In SharePoint 2007 you have to create a custom input form, check this out http://weblogs.asp.net/jan/archive/2006/11/06/Custom-Edit-Forms-for-SharePoint-2007-Lists.aspx. You can also add them by creating a custom web part, let us know if you need help with that.

In Sp2010 things are much simpler, you simply use the lookup column type (not by calculated columns). You should have the Trips list looking up values in the Zones list as you suggested, when selecting an item from the zones list you can automatically fetch values from other columns in the remote list by checking the boxes in the "Add a column to show each of these additional fields" section.

I made an example
I added some items in the Zones list

And a few trips in the trip list, selecting the lookup column from the zones list

And the result, my trip, the zone and the condition of the zone, which is picked up from the zones list

The settings for the lookup

Good luck!

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