跨 Sharepoint 站点移动数据视图
我们有一个生产 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以执行以下操作:
它对我有用,尽管我'我仍在努力处理一些复杂的表单,这些表单使用下拉列表,根据其他字段在数据库中查找其值。为此,我使用自定义数据源,并且在原始站点上它们可以工作......但尚未成功地将其复制到新站点。
You can do the following:
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.