上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: In a scenario where you need to create Content Type in bunch, there comes the role of Dynamic Content types.The following code snippet helps you in creating content type dynamically.Code:using System;using Microsoft.SharePoint;namespace DynamicContentTypeConsole{ class Program { static void Main(str 阅读全文
posted @ 2011-09-27 15:08 LeimOO 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 如何向列表中插入数据?这是一个很简单的问题。那么我的这两篇文章主要是对各种方法的总结,如果有朋友有不同的意见,请指正。首先,我们来看一下列表(自定义列表,列表名称:Jobs).列名类型注释Title单行文本JobDescription多行文本City选择项DueDate日期JobRequirementLookup类型指向另一个列表:SkillsManager人员管理员添加数据的方法我总结为三种。通过界面添加;使用Workspace 2010添加; 使用Powershell命令添加。以下是依次的详细内容或者截图:1. 界面添加: 2. 使用workspace 2010添加。(前提:你需要安装Sh 阅读全文
posted @ 2011-09-19 13:19 LeimOO 阅读(245) 评论(0) 推荐(0) 编辑
摘要: SharePoint 2010中增加了对ADO.NET Service的支持。我们可以通过REST的方式来添加,查询或者更新数据。这篇文章,我将尝试使用REST的方式来查询,并且添加一条记录。准备工作:开始使用代码之前,记得要添加对 http://servername/_vti_bin/listdata.svc 服务的引用。我是引用之后,将其命名为“ListDataSR”, 一下是详细代码。(我是在控制台程序中运行这段代码的)ListDataSR.SPFLearnDataContext ctx = new ListDataSR.SPFLearnDataContext( ... 阅读全文
posted @ 2011-09-19 13:17 LeimOO 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 上一篇中,我列举了几种管理员或者一般用户添加列表项的方式。这一篇我将从开发者的角度来完成这个操作。作为开发人员添加列表项的方式主要有如下几种:(服务器端)对象模型,客户端对象模型以及Web Service.1. (服务器端)对象模型。这种是开发中最常见的,可以是一个控制台程序,也可以写到你的Web Part或者Event Handler里面 1: static void AddNewItem() 2: { 3: using (SPSite site = new SPSite("http://server")) 4: ... 阅读全文
posted @ 2011-09-19 10:42 LeimOO 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 1. 对于Lookup Field,Caml 语句如下:<Query><Where> <Contains> <FieldRef Name="AlertLocation" LookupId="TRUE" /> <Value Type="text">1</Value> </Contains></Where></Query> “1”代表 ID, Lookup List ItemID2. 如果没有Filter出来, 可以考虑把Name= 阅读全文
posted @ 2011-09-16 11:27 LeimOO 阅读(214) 评论(0) 推荐(0) 编辑
摘要: When lookup fields are created, sharepoint stores them asID;#Value format in related list.for e.g.in list “Contacts” there is column called “Country”.There is item in contact with value “India” assigned in Country, having item ID=10.Now for another list “List2″ when column “Country” is stored as Loo 阅读全文
posted @ 2011-09-16 11:09 LeimOO 阅读(516) 评论(0) 推荐(1) 编辑
摘要: Even though Microsoft encourages using LINQ in SharePoint 2010, they introduced some new CAML Query schema elements. They are· IN· INCLUDES· NOT INCLUDESIN:This is something work as same as what we see in SQL Query. We can provide a collection of Items to filter. Previously in SharePo 阅读全文
posted @ 2011-09-16 11:06 LeimOO 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 1. http://msdn.microsoft.com/en-us/library/bb862071.aspx;2. http://office.microsoft.com/en-us/windows-sharepoint-services-help/examples-of-common-formulas-HA001160947.aspx; 阅读全文
posted @ 2011-09-16 11:02 LeimOO 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 背景: 域用户作为管理中心的管理员,而域用户要定期更改密码,在创建新的Application时,出现Access Denied的问题。 After changing Domain user password, it is denied to access new application.解决方案: 在注册表中添加:DisableLoopbackCheck 具体步骤:Ive found this very handy.. recently, I was working on a server and we were trying to access the local SharePoint si 阅读全文
posted @ 2011-08-30 16:26 LeimOO 阅读(477) 评论(0) 推荐(0) 编辑
摘要: IntroductionWe discussed in a previous article how to customise SharePoint’s built in Task List and briefly looked at the power of Views with Filters. In this article we will build upon that by demonstrating some advanced use of Filters.This article assumes that you are already familiar with Views a 阅读全文
posted @ 2011-05-31 15:08 LeimOO 阅读(455) 评论(0) 推荐(0) 编辑
摘要: Its very easy using the Filter feature of SharePoint views to show only items completed in the last 30 days or items due in the next X days; for example :-Completed >= [Today]-30On the Advanced SharePoint View and Filter techniques post Ed asked how you could filter for the current calendar month 阅读全文
posted @ 2011-05-31 15:07 LeimOO 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 有时data view webpart在下次打开时就看不到图形界面了,这个时候“Options”里的“Sort & Group”是不可用的,此时就要直接写<xsl:sort select=”” order=”” data-type=””/>Used within an <xsl:for-each> to determine the sort order in which the nodeset (group of rows) are processed.<xsl:sort> allows you to change the default sort 阅读全文
posted @ 2011-05-31 10:26 LeimOO 阅读(588) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe Web application at http://localhost could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.ReasonMaybe it configures not correct for 阅读全文
posted @ 2011-05-31 10:14 LeimOO 阅读(221) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn some odd situation, SharePoint Designer (SPD) 2010 would throw this error:“soap:Server was unable to process request.Value does not fall within the expected range”ReasonSPD does not open the site with name it was originally defined. For example, the site was created as http://machine_n 阅读全文
posted @ 2011-05-31 10:12 LeimOO 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1. The 'Proactive Caching' feature is not included in the 'Standard Edition'The SQL Server 2008 R2 Standard Editon does NOT contain the “Proactive Caching” feature.Help link,a.http://msdn.microsoft.com/en-us/library/ms143761.aspxb.http://support.microsoft.com/kb/9411532. EnabledCLR S 阅读全文
posted @ 2011-05-31 10:07 LeimOO 阅读(269) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页