随笔分类 -  SharePoint

摘要:SPRecycleBinItemCollection binItems = site.GetRecycleBinItems(query); var filteredItems = from i in binItems.OfType() where i.ItemType == SPRecycleBinItemType.File && i.Title.Contains("YYY") && i.DeletedBy.LoginName == "basesmcdev2\\steve.curran" select i; 阅读全文
posted @ 2010-01-14 11:53 邑尘
摘要:1、创建一个web应用程序,并签名2、创建12目录,并在FEATURES中创建Feature目录及其feature.xm,注意需要重新生成一个ID3、创建FeatureRegister.cs用于Feature激活,反激活等操作4、创建JOB的执行类。5、注册feature C:\Program Files\Common Files\Microsoft Shared\web server exten... 阅读全文
posted @ 2010-01-07 15:42 邑尘
摘要:多选用户字段的Caml查询问题转自jianyi博客:有朋友问:有个列表有个多选用户列,想判断当前用户是否在这个列中包含,怎么写CAML也写不出来,能否帮忙。这个问题我也不知道,但想到任务列表中有个我的任务视图,用来显示分配给当前用户的任务,它是怎么做的呢?结果发现,分配对象字段只允许输入一个值,跟这个朋友的问题可不一样啊。 没关系,我们来看看分配对象字段是否可以修改成多用户模式,到列表设置中发现是... 阅读全文
posted @ 2009-12-10 14:53 邑尘
摘要:配置List的通用查询 阅读全文
posted @ 2009-12-02 18:40 邑尘
摘要:The CMS features that were rolled into SharePoint have their fair share of issues. Working with one of my recent customers, we found a number of errors in the ULS logs in their farm. The follow errors... 阅读全文
posted @ 2009-10-15 09:39 邑尘
摘要:SPUtility.FormatDateAllows you to format a given date to any of the SPDateFormat typesDateTime curDate = DateTime.Now();DateTime regionDate = web.RegionalSettings.TimeZone.UTCToLocalTime(web.ParentWeb... 阅读全文
posted @ 2009-10-09 16:19 邑尘
摘要:CodigoEl Modelo de Objetos de WSS (clase SPUtilities) dispone de los métodos TransferToErrorPage y Transfer ToSuccessPage que se pueden utilizar para mostrar un texto y un vínculo en las pag... 阅读全文
posted @ 2009-10-09 16:18 邑尘
摘要:1. 怎麼樣在WebPart中使用Sharepoint控件?要在webpart中使用sharepoint控件必須先引用Microsoft.SharePoint.WebControls命名空間,如你現開發的是QuickPart,你需要在ascx文件中加入sharepoint控件,怎麼實現?a. 在asxc文件中加入如下引用%@ Register Tagprefix="SharePoint" Name... 阅读全文
posted @ 2009-08-13 13:24 邑尘
摘要:Moss自帶的發郵件通知(提酲我)功能往往達不到客戶想要的效果,下面我將介紹一下怎麼樣自定義這個通知(提酲我)的郵件內容。1. 先了解通知(提酲我)的基本知識a. 通知(提酲我)是由WSS的定時執行程式(Windows SharePoint Services Timer)來定時發郵件提醒的,在這之前請確保這個服務已經啟用,如果啟用了可以在工作管理員下的處理程序中看到有一個OWSTIMER.EXE的... 阅读全文
posted @ 2009-08-13 11:55 邑尘
摘要:转自http://blog.163.com/szmax_limin/blog/static/581828612009586239194/註意看里面的說明[代码] 阅读全文
posted @ 2009-08-13 11:55 邑尘
摘要:添加导航栏 SPSite site = new SPSite(siteurl); SPWeb web = site.OpenWeb(); SPList list = web.Lists["取件客服受理"]; string listtitle = list.Title; //列表名称 string listurl = list.DefaultViewUrl; //列表URL #region 添加一级... 阅读全文
posted @ 2009-08-07 08:28 邑尘
摘要:读http://www.cnblogs.com/enjoyment的文章,自己整理后:SPGridView是MOSS内置控件中少数能脱离SharePoint List等内置数据源使用的控件, 它继承自System.Web.UI.WebControls.GridView, 但是使用SPGridView时必须手动把AutoGenerateColumns设成false.1. 先创建一个ASP.NET W... 阅读全文
posted @ 2009-08-01 14:11 邑尘
摘要:转至virusswb博客总的步骤如下: 1、添加内容查询部件2、设置查询范围3、导出查询部件文件,.webpart文件4、修改webpart文件中的<property name="CommonViewFields" type="string" >Title,Text;Modified,DateTime</property>配置节,添加你想要显示的栏目5、用SPD打开顶级网站... 阅读全文
posted @ 2009-07-31 15:29 邑尘
摘要:Quickpart中使用AJAX 阅读全文
posted @ 2009-07-21 08:47 邑尘
摘要:编译的时候会优先编译是否有ID=XX的item 阅读全文
posted @ 2009-07-09 13:23 邑尘
摘要:Those pesky 'Preserving/Deleting template record with size…' messages are fixed!I've seen a lot of blogs and community forums talking about the 'Preserving template record with size...' and 'Del... 阅读全文
posted @ 2009-07-07 15:02 邑尘
摘要:转自jianyi的博客SPList EnsureArchiveList( SPListtemplateList) { SPWeb web = templateList.ParentWeb; SPList list = templateList; SPList archiveList = null; string archiveListTitle = list.Title + "(Archive)"... 阅读全文
posted @ 2009-07-07 12:00 邑尘
摘要:进入注册表,找到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility键值,查看其中是否有一项为{65bcbee4-7728-41a0-97be-14e1cae36aae}(即Microsoft List 11/12控件的ID号),将其删除后再打开浏览器,故障排除 阅读全文
posted @ 2009-05-08 10:41 邑尘
摘要:CAML点滴(转) 报告标题 CAML 查询 目标访问群体 报告说明 由我签出 <Where><Eq><FieldRef Name="CheckoutUser" LookupId="TRUE"/><Value Type="int"><UserID/></Value></Eq></Where>否此网站及子... 阅读全文
posted @ 2009-03-31 13:04 邑尘