跨 Sharepoint 站点移动数据视图

发布于 2024-08-10 05:46:10 字数 517 浏览 5 评论 0原文

我们有一个生产 SharePoint 网站,它大量使用自定义数据库。我们在一个单独的盒子上有一个开发站点,我们在那里开发所有的东西,然后在它们准备好供客户使用时将它们转移到实时站点。

我们有许多页面使用数据视图来显示数据库中的信息。大多数实际的可编程性是通过数据库本身中的存储过程和 UDF 完成的。我们遇到的问题之一是,当我们尝试将这些自定义页面从一个站点移动到另一个站点时(即使在同一 SharePoint 安装中),数据视图会损坏。据我所知,数据视图通过 GUID 与数据连接相关联。我们可以在新站点上手动设置所有这些连接,但是数据视图 Web 部件中没有选项可以更改数据视图的关联连接。

目前,这几乎阻止我们在单独的站点上进行开发。执行命令行 SharePoint 导出/导入是实现此目的的一种包罗万象的方法。然而,忽略此操作的有限选项,它充其量是不可靠的。我们的第一次尝试遗漏了一些内容(例如自定义 aspx 页面)。当我们开始在 SharePoint 网站上创建更复杂的自定义时,导出功能完全停止工作,只返回神秘的错误。

还有其他人找到了做到这一点的好方法吗?

We have a production SharePoint site that uses a custom database quite a bit. We have a dev site on a separate box where we develop all of our things then move them over to a live site when they are ready for our customers.

We have many pages that use data views to show information from the database. Most of the actual programmability is done with stored procedures and UDF's in the database itself. One of the problems we are having is that when we try to move these custom pages over from one site to another (even if within the same SharePoint installation), the data views become broken. As far as I can tell, the data views are associated with data connections via a GUID. We can go in and set up all of these connections by hand on the new site, however there is no option in the data view webpart to change the data view's associated connection.

At present, this pretty much prevents us from developing on a separate site at all. Doing a command-line SharePoint export/import is an all-inclusive way of accomplishing this. However, ignoring the limited options for this operation, it is at best unreliable. Our first attempts left out some of the content (like custom aspx pages). As we began to create more complex customizations on the SharePoint site, the export function stopped working altogether only to return cryptic errors.

Has anyone else found a good way to do this?

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

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

发布评论

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

评论(1

满意归宿 2024-08-17 05:46:10

您可以执行以下操作:

  1. 在目标共享点上创建一个新页面,并包含一个空数据视图
  2. 将旧代码复制/粘贴到新页面中
  3. 将旧数据视图的 webpart id 替换为新数据视图

它对我有用,尽管我'我仍在努力处理一些复杂的表单,这些表单使用下拉列表,根据其他字段在数据库中查找其值。为此,我使用自定义数据源,并且在原始站点上它们可以工作......但尚未成功地将其复制到新站点。

You can do the following:

  1. Create a new page on the destination sharepoint and include an empty data view
  2. copy/paste the old code into the new page
  3. Replace the webpart id of the old dataview with the new one

It worked for me, although I'm still struggling with some complex forms that use drop-down lists that lookup their values in the database depending on other fields. For that I use custom datasources and on the original site they work... but haven't had success in copying it to the new one.

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