跨网站集边界的 SharePoint 查找列
基本情况是,我有一个网站上存在的公司联系人列表,我想分享。 联系人是从该网站内的列表引用的,我还希望能够从另一个网站集中的列表引用它们。 查找列只能从网站内的列表中查找值,但这是我想要跨网站集的功能。
对于这种需求有通用的解决方案吗?
The basic situation is that I have a list of company contacts that exist in one site that I would like to share. The contacts are referenced from a list within that site, and I would also like to be able to reference them from a list in another site collection. Lookup columns can only lookup values from a list within a site, but this is the functionality that I would like across site collections.
Is there a common solution to this sort of requirement?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为此,您将需要自定义代码,但由于数量很少并且这是堆栈溢出,我认为这不会成为问题。 您将需要制作自己的列表视图 Web 部件,使用 ListViewByQuery 查询列表。 可以在此处找到示例: http://blogs.msdn.com/b/ramg/archive/2009/04/21/implementing-a-simple-cross-site-collection-list-view-webpart .aspx
You will need custom code for this, but since the amount is minimal and this is Stack Overflow I assume that won't be a problem. You will want to make your own listview web part that queries the list using ListViewByQuery. An example can be found here: http://blogs.msdn.com/b/ramg/archive/2009/04/21/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
SharePoint GUI 仅支持当前站点中的查找列。 但是,如果您以编程方式创建普通查找,或者使用许多 免费跨网站查找列,您可以跨同一网站集中的网站进行指向。 我认为这不会帮助您进行“跨网站集”查找,但如果您可以将要求更改为同一网站集中的多个网站并打破权限,它将解决您的问题。
The SharePoint GUI only supports lookup columns in the current site. But if you create a normal lookup programmatically, or use one of many free cross-site lookup columns you can point across sites in the same site collection. I don’t think this will help you with "cross site collection"-lookups, but in case you can change your requirement to multiple sites in the same site collection and break permissions instead, it will solve your problem.
有很多解决方案可以解决跨站Lookup,包括第三方工具和代码。 但跨网站集查找解决方案对我来说很奇怪。
我用谷歌搜索了这个博客,也许它对你有用。http://sharepointsolutions.blogspot.com/2006/11/free-custom-cross-site-lookup-column.html
There are lot of solutions which can solve cross-site Lookup, including third party tools and code. But cross-site collection lookup solution is strange to me.
I googled out this blog tough, maybe it useful to you.http://sharepointsolutions.blogspot.com/2006/11/free-custom-cross-site-lookup-column.html