SharePoint 2010 工作流解决方案:将 SharePoint Designer 可重用工作流导入 Visual Studio(1)
摘要:将 SharePoint Designer 可重用工作流导入 Visual Studio在 SharePoint Designer 中创建的工作流(即,声明性工作流)由 XML 语句组成,而非由代码组成。 SharePoint Designer 2010 引入了可重用工作流,它们是可由 SharePoint 站点中的不同列表使用的可移植的声明性工作流。 在 Visual Studio 2010 中创建的工作流(如顺序工作流和状态机工作流)称为“代码工作流”。 代码工作流由 XML 文件和代码模块组成,用户可以在这些文件和模块中自定义工作流的行为。 通过 Visual Studio 2010,您
阅读全文
posted @
2011-04-07 16:22
Yunliang Yu
阅读(388)
推荐(0)
SharePoint 2010 工作流解决方案:创建自定义网站工作流活动
摘要:创建自定义网站工作流活动首先,创建一个用来包含和测试自定义工作流活动的项目。 创建网站工作流自定义活动项目1. 通过指向“文件”菜单上的“新建”并单击“新建项目”,显示“新建项目”对话框。 2. 展开“Visual C#”下的“SharePoint”节点,然后单击“2010”。 3. 在“模板”窗格中选择“顺序工作流”。 4. 在“名称”框中,键入 YunCode.WorkFlow.CustomActivity,然后单击“确定”。 这将显示“SharePoint 自定义向导”。 5. 在“要使用哪个本地网站进行调试?”页中,单击“下一步”以接受默认网站。 此步骤还会将解决方案的信任级别设置为场
阅读全文
posted @
2011-04-06 22:01
Yunliang Yu
阅读(357)
推荐(0)
Using the SharePoint 2010 Client Object Model_Part_6
摘要:Time to wrap up this series and we’re going to mostly talk about managing web parts using the client object model. First, however, we’re going to take a quick peek at something else you can do, which is create additional Edit Control Block (ECB) menu items. Yes, you can even create ECB items from th
阅读全文
posted @
2011-04-06 21:34
Yunliang Yu
阅读(262)
推荐(0)
Using the SharePoint 2010 Client Object Model_part_5
摘要: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
阅读(350)
推荐(0)
Using the SharePoint 2010 Client Object Model_part_4
摘要: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
阅读(230)
推荐(0)
Using the SharePoint 2010 Client Object Model_part_3
摘要: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
阅读(301)
推荐(0)
Using the SharePoint 2010 Client Object Model_part_2
摘要: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
阅读(241)
推荐(0)
Using the SharePoint 2010 Client Object Model_part_1
摘要: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
阅读(217)
推荐(0)
SharePoint 2010 工作流解决方案:创建带有关联窗体和启动窗体的工作流
摘要:创建 SharePoint 顺序工作流项目首先,在 Visual Studio 中创建一个顺序工作流项目。 顺序工作流是一系列步骤,这些步骤按顺序执行,直到最后一项活动完成。 在此过程中,您将创建一个应用于 SharePoint 中的“共享文档”列表的顺序工作流。 利用此工作流的向导,您可以将此工作流与网站或列表定义关联,并可以确定工作流的启动时间。 1.通过指向“文件”菜单上的“新建”并单击“新建项目”,显示“新建项目”对话框。 2.展开“Visual C#”下的“SharePoint”节点,然后单击“2010”。 3. 在“模板”窗格中选择“顺序工作流”。 4. 在“名称”框中,键入名称,
阅读全文
posted @
2011-03-27 13:22
Yunliang Yu
阅读(981)
推荐(0)
如何利用Featue对特定的文档库或列表添加listviewtoolbar上的button
摘要:名字有点长,实在想不出什么好名字。 我们经常会遇到一个问题,就是需要在某一个列表或者文档库视图画面的listviewtoolbar上添加一个按钮来做一些操作。比如说页面跳转,列表操作等。目前很多人都知道利用Feature来添加这个button,而Feature在部署激活后,会将所有的列表文档库都添加了这个按钮。这并不是我们要的效果。我们要的效果是,需要添加的列表上,有这个按钮,不需要的列表上不要有这个按钮。在listviewtoolbar上原有的的button有 ,新建、操作、设置,文档库会多一个上载。如果需要对网站所有的列表或者文档库添加者个button,可以利用feature,添加在这几个
阅读全文
posted @
2011-03-26 22:23
Yunliang Yu
阅读(265)
推荐(0)
SharePoint 2010 工作流解决方案:创建和调试 SharePoint 工作流解决方案
摘要:向 SharePoint 文档库中添加栏1. 打开一个 SharePoint 网站 。2. 新建一个文档库。 文档库的名字可取为“共享文档”3. 在“库工具”功能区上单击“库”,然后单击该功能区上的“创建列”按钮以创建新列。 4. 将该列命名为“文档状态”,将其类型设置为“选项(要从中选择的菜单)”,指定以下三个选项,然后单击“确定”: · 需要评审 · 评审完成 · 请求更改 5. 再创建两列并将它们命名为“受理人”和“评审注释”。 将“受理人”列类型设置为单行文本,将“评审注释”列类型设置为多行文本。 使文档无需签出即可编辑 如果无需签出文档即可进行编辑,则测
阅读全文
posted @
2011-01-21 11:11
Yunliang Yu
阅读(512)
推荐(0)
沙盒解决方案注意事项
摘要:沙盒解决方案是 Microsoft SharePoint 2010 中包含的一项功能,此功能使网站集用户能够上载自己的自定义代码解决方案。 常见的沙盒解决方案是用户上载自己的 Web 部件。 沙盒 SharePoint 应用程序在一个安全的、受监视的进程中运行,它只能访问 Web 场的有限部分。 Microsoft SharePoint 2010 利用功能组合、解决方案库、解决方案监控和验证框架来启用沙盒解决方案。 指定项目信任级别 Visual Studio 通过一个名为 Sandboxed Solution 的 Boolean 项目属性来支持沙盒解决方案。 既可以随时在项目中设置此属性,也
阅读全文
posted @
2011-01-06 15:05
Yunliang Yu
阅读(566)
推荐(0)
沙盒解决方案与场解决方案之间的差异
摘要:场解决方案场解决方案承载于 IIS 辅助进程 (W3WP.exe) 中,将运行会影响整个场的代码。 在调试其“沙盒解决方案”属性设置为“场解决方案”的 SharePoint 项目时,系统的 IIS 应用程序池会在 SharePoint 收回或部署功能之前进行回收,以便发布由 IIS 辅助进程锁定的任何文件。 仅回收为 SharePoint 项目的网站 URL 服务的 IIS 应用程序池。 沙盒解决方案 沙盒解决方案承载于 SharePoint 用户代码解决方案辅助进程 (SPUCWorkerProcess.exe) 中,将运行只会影响解决方案的网站集的代码。 由于沙盒解决方案不在 IIS 辅助
阅读全文
posted @
2011-01-06 15:03
Yunliang Yu
阅读(560)
推荐(0)
SharePoint 2010 工作流解决方案:序言
摘要:目前很多人都在利用sharepoint 在做工作流,sharepoint 在07的时代只有两种方式开发工作流,一种是利用SharePoint designer做无代码开发的工作流,另外一种是利用vs开发代码工作流。这两种工作流开发方式,对于没有wf开发经验的来说,推荐使用designer 开发工作流。在SharePoint 2010中加入了用visio 图形化制作工作流,个人感觉没啥大用。完全是浪费时间。SharePoint 的工作流引擎使用windows workflow foundation 所以sharepoint 的工作流就同时支持顺序工作流和状态机工作流,顺序工作流很好理解,就是从上
阅读全文
posted @
2011-01-06 12:02
Yunliang Yu
阅读(363)
推荐(0)
如何启用SharePoint 2010的代码块
摘要:Sharepoint 在安全设置上,默认禁用了在sharepoint页面中运行C#或vb.net的代码那什么样才能算是sharepoint页面呢,打开designer ,新建一个aspx页面,在页面中写一些简单的html。然后用浏览器打开,会正常浏览不会报错。但如果你在页面中写入C#代码,就会报错如果想在sharepoint页面中运行C#代码,需要在web.config中添加一个节点Configuration –> Sharepoint –> SafeMode –> PageParserPaths 在这个里面添加一个<PageParserPath VirtualPath
阅读全文
posted @
2010-12-02 17:26
Yunliang Yu
阅读(313)
推荐(0)
sharepoint 链接库链接在新窗口打开
摘要:在sharepoint中无论是2007还是2010 链接库中的链接都会在当前页面打开,很多用户会想要在新窗口中打开,但sharepoint并不支持,在2007中可以取改schema.xml文件但在10里好像就不可以了,下面这个方法在07和10里都可用在链接库的 view webpart 下面添加一个内容编辑器webpart添加下面的js代码<script language="javascript">function LinkOpenNewWindow() { var mytable = document.getElementById("WebPartW
阅读全文
posted @
2010-11-19 20:57
Yunliang Yu
阅读(463)
推荐(0)
SharePoint disable loopback check
摘要:Ive found this very handy.. recently, I was working on a server and we were trying to access the local SharePoint site http://127.0.0.1 or http://nameoflocalserver/pages/default.aspx and I was constantly prompted for the username and password. in SharePoint 2010 it can really annoy you by not accept
阅读全文
posted @
2010-11-19 16:52
Yunliang Yu
阅读(380)
推荐(0)
sharepoint2010在工作流审批画面显示item信息
摘要:在sharepoint2007里 designer制作的工作流,生成时审批页面是aspx的页面但在2010里却变为了infopath的页面。在aspx里面我很容易就可以将item的信息显示出来在infopath里面加item信息可能么?答案是有点难,或者是不太可能,反正我没搞定,希望高人可以指点。既然看起来是不太可能的事,那怎么办呢。在编辑工作流任务时是个弹出窗口,用ie8,查看源文件时,就发现这个页面实际上layouts下的页面WrkTaskIP.aspx这个页面是网站通用页面。infopath的表单就是被镶嵌在这个画面中。修改它,会将影响到整个farm。不过我选择了修改它,这样可以将所有工
阅读全文
posted @
2010-11-19 15:29
Yunliang Yu
阅读(434)
推荐(0)
sharepoint 2010 如何使用自带隐藏顶部导航,左侧导航功能
摘要:很多做2007的人都会想过一件事,就是只显示画面里的main区域的内容,导航全部去掉大多人绞尽脑汁也没有个解决办法。目前我们2007项目中需要用到这个功能。2010里 默认将支持此功能。只要在url上加上“isdlg=1” 就会把导航全部去掉。只留main区域内容。
阅读全文
posted @
2010-11-19 13:55
Yunliang Yu
阅读(442)
推荐(0)
sharepoint 读取权限操作
摘要:using (SPSite oSite = new SPSite("http://localhost")){ using (SPWeb oWeb = oSite.RootWeb) { SPList oList = oWeb.Lists[""]; SPRoleAssignmentCollection def = oList.RoleAssignments; foreach (SPRoleAssignment r in def) { SPPrincipal p = r.Member; Console.Write(p.Name+":");
阅读全文
posted @
2010-11-19 11:06
Yunliang Yu
阅读(363)
推荐(0)