使用SharePoint的数据视图,显示现有数据库中的数据[转载]
2008-11-07 14:50
387 查看
看到这篇文章不错,就转过来以备用.
有很多时候,或许需要在SharePoint站点上显示其他数据库中的一些数据,这个时候,你就需要使用Microsoft Office SharePoint Designer 2007的显示数据视图的功能来实现了。
首先用Microsoft Office SharePoint Designer 2007这个软件打开站点(题外话:FORM认证的站点目前还不支持Microsoft Office SharePoint Designer 2007连接修改),所以我只能通过windows认证的方式连接到站点了。同时,我希望在首页显示,form认证数据库中现有的注册用户信息。
1.打开你需要插入数据的页面, 在表格中插入一行。
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin1.png)
2.在新建的表格里面插入数据视图。
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin2.png)
3.点击数据源库-数据库连接-中的连接到数据库…..,再点击"配置数据库连接….";
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin3.png)
4.填写一些连接到数据库服务器的信息,提示:如果数据库和sharepoint在同一个服务器上,你可以在服务器名称中填入"."
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin4.png)
5.系统会有一个安全性的提示,在你没有配置SSO登陆的时候,都会存在这个问题。
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin5.png)
6.这个时候系统会开始连接SQL服务器
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin6.png)
7.连接成功后,开始选择相应的数据表,这个例子里面选择aspnetdb表中的aspnet_Users,点击完成。
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin7.png)
8.在这个页面里面可以先对数据库进行一次筛选和排序,看来功能是相当的强大阿!
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin8.png)
9.点击"显示数据"
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin9.png)
10.选择你需要显示的字段
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin10.png)
11.点击"多项目视图"
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin11.png)
12.OK啦!
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin12.png)
后面的就交给美工吧!
后来我对显示的数据按照LastActivitvDate进行降序排序,并修改了表格的边框等,最后显示效果如下:
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin13.png)
[原文地址]
有很多时候,或许需要在SharePoint站点上显示其他数据库中的一些数据,这个时候,你就需要使用Microsoft Office SharePoint Designer 2007的显示数据视图的功能来实现了。
首先用Microsoft Office SharePoint Designer 2007这个软件打开站点(题外话:FORM认证的站点目前还不支持Microsoft Office SharePoint Designer 2007连接修改),所以我只能通过windows认证的方式连接到站点了。同时,我希望在首页显示,form认证数据库中现有的注册用户信息。
1.打开你需要插入数据的页面, 在表格中插入一行。
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin1.png)
2.在新建的表格里面插入数据视图。
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin2.png)
3.点击数据源库-数据库连接-中的连接到数据库…..,再点击"配置数据库连接….";
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin3.png)
4.填写一些连接到数据库服务器的信息,提示:如果数据库和sharepoint在同一个服务器上,你可以在服务器名称中填入"."
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin4.png)
5.系统会有一个安全性的提示,在你没有配置SSO登陆的时候,都会存在这个问题。
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin5.png)
6.这个时候系统会开始连接SQL服务器
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin6.png)
7.连接成功后,开始选择相应的数据表,这个例子里面选择aspnetdb表中的aspnet_Users,点击完成。
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin7.png)
8.在这个页面里面可以先对数据库进行一次筛选和排序,看来功能是相当的强大阿!
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin8.png)
9.点击"显示数据"
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin9.png)
10.选择你需要显示的字段
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin10.png)
11.点击"多项目视图"
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin11.png)
12.OK啦!
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin12.png)
后面的就交给美工吧!
后来我对显示的数据按照LastActivitvDate进行降序排序,并修改了表格的边框等,最后显示效果如下:
![](http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin13.png)
[原文地址]
相关文章推荐
- 错误笔记(一)- XXX is not mapped [from XXX](ssh框架下,使用strust2标签显示数据库数据)
- 1 开发一个注重性能的JDBC应用程序不是一件容易的事. 当你的代码运行很慢的时候JDBC驱动程序并不会抛出异常告诉你。 本系列的性能提示将为改善JDBC应用程序的性能介绍一些基本的指导原则,这其中的原则已经被许多现有的JDBC应用程序编译运行并验证过。 这些指导原则包括: 正确的使用数据库MetaData方法 只获取需要的数据 选用最佳性能的功能 管理连
- JSP中如何 循环显示 数据库中的数据到list.jsp页面 (转载)
- 对SharePoint 2007数据库中一些数据表的使用
- [转载]VC6.0中使用Stream Object读取数据中流文件并显示Bmp,JPG等
- C#中使用GDI+实现饼状图和柱状图跟数据库联接显示数据的方法
- ListView显示数据库的数据-SimpleCursorAdapter的使用
- 使用表格显示数据库中的数据
- 使用XML、XSLT和XPath创建可排序、分页、重用的数据显示页面[转载]
- QML与C++交互:在qml中使用QSqlQueryModel显示数据库数据
- ArrayList显示数据库数据的使用
- SharePoint 2010 使用url参数过滤列表视图数据(使用get方法过滤列表数据)
- Atlas入门-将普通控件升级为Atlas控件/使用listView显示数据库数据[视频]
- 使用jQuery为数据视图添加图表显示
- 使用servlet,jdbc将mysql中数据显示在jsp页面中,且实现直接删除数据库数据
- QML与C++交互:在qml中使用QSqlQueryModel显示数据库数据
- 在SAP UI中使用纯JavaScript显示产品主数据的3D模型视图
- JQuery EasyUI 学习——Struts2与EasyUI DataGrid数据表格结合使用显示数据库数据
- TreeView在显示大容量数据库数据时的使用
- ListView显示数据库的数据-SimpleCursorAdapter的使用