摘要: 关于使用Query实现不同版本的SharePoint迁移- In case of SP 2007 to SP 2010 upgrade , recommended to go with Microsoft upgrade approach instead of third party tools which suits for most requirements. Quest tool has limitation in preserving workflow history, workflow field status and Publishing site whilst most thir 阅读全文
posted @ 2011-09-14 16:32 风影极光 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 问题描述:我们经常在更新Item的时候,会触发工作流实例中的OnTaskChanged事件的自动触发。所以我们可以通过继承SPItemEventReceiver来解决这个问题。 SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling(); try { rh.DisableEventFiring(); ... 阅读全文
posted @ 2011-09-14 16:04 风影极光 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 因为经常需要提升权限来完成一件事情,特此封装为一个固定的方法来调用。 protected void RunWithElevatedPrivilegesAndContextSwitch(SPSecurity.CodeToRunElevated secureCode) { HttpContext backupContext = HttpContext.Current; HttpContext.Current = null; SPSecurity.RunWithElevatedPrivileges(secureCode)... 阅读全文
posted @ 2011-09-14 16:01 风影极光 阅读(187) 评论(0) 推荐(0) 编辑
摘要: function SetupUserGroups($site,$owners,$members,$vistors){ if($site -ne $null -and $site -ne "") { $web = $site.OpenWeb() $ownerGroup = $web.AssociatedOwnerGroup $memberGroup =$web.AssociatedMemberGroup $visitorGroup = $web.AssociatedVisitorGroup $xpath = "Id... 阅读全文
posted @ 2011-09-14 15:00 风影极光 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1 借助.net的调试技巧在代码中添加此行代码,当程序运行时会自动要求调试人员附加相关的进行。System.Diagnostics.Debugger.Launch();2 附加进行,设置断点进行调试。查看端口对应的进程有以下几种方式命令C:\WINDOWS\system32\inetsrv>appcmd.exe list wpwindbg使用VS附加进程可以直接附加所有进程查看任务管理器 阅读全文
posted @ 2011-09-14 14:38 风影极光 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 问题描述:我们在不同的开发Server和Product环境中部署InfoPath的时候,发现命名空间会随InfoPath的小版本变化而变化。比如:http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-03-14T09:12:19处理办法:使用Linq to xml 来获取。封装的方法如下:public static string GetXMLNameSpaceByPrefix(string outerXml, string prefix) { XElement xmlTree = XElem... 阅读全文
posted @ 2011-09-14 14:20 风影极光 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 前提:Task Form 使用InfoPath 2010来设计。在Task Form中的FormEvents_Loading事件中读取第二数据源ItemMetadata中的数据。ItemMetadata中包含了丰富的数据,在工作流中把RequestForm的xml数据存储到ows_ReqXMLSource字段中,此时再来读取这个字段的值时,我们会发现不仅仅是Request的xml数据,还有丰富Task相关联的所有数据(Request对应的Form Library和Task Id等信息)。 string xmlSource = this.DataSources["ItemMetada. 阅读全文
posted @ 2011-09-14 14:15 风影极光 阅读(232) 评论(0) 推荐(0) 编辑