从零开始的生活是充实的!
SharePoint搞到牛叉!
摘要: 1. Using the SharePoint 2010 Client Object Model - Part 5 The previous posts in this series have been pretty list-centric. In this posting we’re going to delve down a different path in exploring the client object model and talk about security. The client OM actually provides great support for workin 阅读全文
posted @ 2011-04-06 21:32 Yunliang Yu 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 1. Using the SharePoint 2010 Client Object Model - Part 4 In the first three parts of this series we’ve gone through quite a bit of code that shows how to retrieve data from lists. In this post, we’re going to show how to actually create a list and manage fields.In the client object model you’ll see 阅读全文
posted @ 2011-04-06 21:31 Yunliang Yu 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1. Using the SharePoint 2010 Client Object Model - Part 3 In the first two parts of this posting I described the pattern you can use to retrieve data with the client object model (“client OM”). I showed how to use the same pattern to retrieve both a set of lists, as well as data contained within a s 阅读全文
posted @ 2011-04-06 21:30 Yunliang Yu 阅读(289) 评论(0) 推荐(0) 编辑
摘要: In part 1 of this post, I described some general features of the new client object model (“client OM”) that is included with SharePoint 2010. I also walked through a pattern for retrieving a collection of all of the lists in a web using that object model. In this posting, we’ll extend our example fu 阅读全文
posted @ 2011-04-06 21:28 Yunliang Yu 阅读(233) 评论(0) 推荐(0) 编辑
摘要: SharePoint 2010 introduces a new client side object model (hereafter referred to as the “client OM”) for retrieving data. It supports a subset of functionality contained in the server side object model, but generally speaking gives you ready access to the data in your SharePoint site using standard 阅读全文
posted @ 2011-04-06 21:27 Yunliang Yu 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 创建 SharePoint 顺序工作流项目首先,在 Visual Studio 中创建一个顺序工作流项目。 顺序工作流是一系列步骤,这些步骤按顺序执行,直到最后一项活动完成。 在此过程中,您将创建一个应用于 SharePoint 中的“共享文档”列表的顺序工作流。 利用此工作流的向导,您可以将此工作流与网站或列表定义关联,并可以确定工作流的启动时间。 1.通过指向“文件”菜单上的“新建”并单击“新建项目”,显示“新建项目”对话框。 2.展开“Visual C#”下的“SharePoint”节点,然后单击“2010”。 3. 在“模板”窗格中选择“顺序工作流”。 4. 在“名称”框中,键入名称, 阅读全文
posted @ 2011-03-27 13:22 Yunliang Yu 阅读(953) 评论(0) 推荐(0) 编辑
摘要: 名字有点长,实在想不出什么好名字。 我们经常会遇到一个问题,就是需要在某一个列表或者文档库视图画面的listviewtoolbar上添加一个按钮来做一些操作。比如说页面跳转,列表操作等。目前很多人都知道利用Feature来添加这个button,而Feature在部署激活后,会将所有的列表文档库都添加了这个按钮。这并不是我们要的效果。我们要的效果是,需要添加的列表上,有这个按钮,不需要的列表上不要有这个按钮。在listviewtoolbar上原有的的button有 ,新建、操作、设置,文档库会多一个上载。如果需要对网站所有的列表或者文档库添加者个button,可以利用feature,添加在这几个 阅读全文
posted @ 2011-03-26 22:23 Yunliang Yu 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 话不多说先上图 目前使用数据为程序自动生成的测试数据,如果要读取sharepoint列表或自定义数据源,可以修改griddata类中的方法。 点击进入代码下载画面:JSGrid甘特图 阅读全文
posted @ 2011-03-19 22:09 Yunliang Yu 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 创建空白 SharePoint 项目 1. 启动 Visual Studio 2010。 2. 在“文件”菜单上,新建sharepoint2010 空项目。 3. 在“SharePoint 自定义向导”中,选择“部署为场解决方案”,然后单击“完成”。 在项目中添加 Web 部件 1.添加“可视化 Web 部件”,将项目命名为“JSGridWebPart”,然后单击“添加”。 将以下代码粘贴到 JSGridWebPartUserControl.ascx。 SharePoint:JSGrid ID="_grid" runat="server" /> s 阅读全文
posted @ 2011-03-19 11:06 Yunliang Yu 阅读(1260) 评论(2) 推荐(1) 编辑
摘要: 向 SharePoint 文档库中添加栏1. 打开一个 SharePoint 网站 。2. 新建一个文档库。 文档库的名字可取为“共享文档”3. 在“库工具”功能区上单击“库”,然后单击该功能区上的“创建列”按钮以创建新列。 4. 将该列命名为“文档状态”,将其类型设置为“选项(要从中选择的菜单)”,指定以下三个选项,然后单击“确定”: · 需要评审 · 评审完成 · 请求更改 5. 再创建两列并将它们命名为“受理人”和“评审注释”。 将“受理人”列类型设置为单行文本,将“评审注释”列类型设置为多行文本。 使文档无需签出即可编辑 如果无需签出文档即可进行编辑,则测 阅读全文
posted @ 2011-01-21 11:11 Yunliang Yu 阅读(495) 评论(0) 推荐(0) 编辑