SharePoint 2010 查询不以某个字符开头的数据[How to Create a SharePoint “Does Not Begin With” Filtered List View]---计算栏的妙用
2011-11-03 14:01
736 查看
默认,sharepoint 提供了begins with(中文翻译成:始于)操作符,但没有Does Not Begin With(不以某个字符开始):
那如果要查询某个栏不以某字符开头的数据怎么办?步骤如下:
假设查询标题栏不以USA开头的数据为例:
1.新建一个计算栏,名字叫:First 3 letters,Formula公式:=LEFT([LinkTitle],3)。注,标题栏Internal Name是LinkTitle。
2.创建一个视图,筛选条件设置成:
这样就可以了。
扩展:
1.如果我们要查询"Does not end with”(不以某些字符结尾)的数据也就容易多了。将上面步骤1中的LEFT换成RIGHT即可。
2.如果要查询"Does not contain"(不包含某字符)的数据呢?这个有点复杂,需要用的Search关键字,它的语法:SEARCH(txt1,txt2,startIndex)。详细请参考:http://files.cnblogs.com/sygwin/calculated-column-cheat-sheet.pdf
备用下载地址:http://www.kuaipan.com.cn/file/id_18975586420531560.htm
假设我们查找标题内不包括USA这三个字符的数据。创建一个计算栏,Formula公式为:=ISERR(SEARCH("USA",[LinkTitle],1))
结果分析:如果包含,将返回No,如果不包含将返回Yes。
原文地址:http://blog.pentalogic.net/2011/09/how-to-create-a-sharepoint-does-not-begin-with-filtered-list-view/ (如果无法打开,请使用在线代理)
那如果要查询某个栏不以某字符开头的数据怎么办?步骤如下:
假设查询标题栏不以USA开头的数据为例:
1.新建一个计算栏,名字叫:First 3 letters,Formula公式:=LEFT([LinkTitle],3)。注,标题栏Internal Name是LinkTitle。
2.创建一个视图,筛选条件设置成:
这样就可以了。
扩展:
1.如果我们要查询"Does not end with”(不以某些字符结尾)的数据也就容易多了。将上面步骤1中的LEFT换成RIGHT即可。
2.如果要查询"Does not contain"(不包含某字符)的数据呢?这个有点复杂,需要用的Search关键字,它的语法:SEARCH(txt1,txt2,startIndex)。详细请参考:http://files.cnblogs.com/sygwin/calculated-column-cheat-sheet.pdf
备用下载地址:http://www.kuaipan.com.cn/file/id_18975586420531560.htm
假设我们查找标题内不包括USA这三个字符的数据。创建一个计算栏,Formula公式为:=ISERR(SEARCH("USA",[LinkTitle],1))
结果分析:如果包含,将返回No,如果不包含将返回Yes。
原文地址:http://blog.pentalogic.net/2011/09/how-to-create-a-sharepoint-does-not-begin-with-filtered-list-view/ (如果无法打开,请使用在线代理)
相关文章推荐
- How to create custom navigation menu in SharePoint with XML data source 使用XML数据源在SharePoint创建自定义导航菜单
- How to create custom navigation menu in SharePoint with XML data source 使用XML数据源在SharePoint创建自定义导航菜单
- How to Create Multilingual Webpart in SharePoint 2010? Use Localization in Globalization.
- SharePoint designer 2010编辑List的表单时出现错误:soap:Server was unable to process request. ---> Value does not fall within the expected range
- Common problem with SharePoint 2010: System.Security.Cryptography.CryptographicException - Keyset does not exist(转)
- How To Create SharePoint 2010 Site Collection In Its Own DB
- 总结:SharePoint 2010 -- Error and Solution(1)-- SharePoint Designer – Value does not fall within the expected range
- How to Create Multilingual Webpart in SharePoint 2010 (C# 方式)
- How to Create a SharePoint 2010 Project Without SharePoint Server
- [转]How to Integrate SharePoint 2010 with Reporting Services
- How to Create a SharePoint 2010 Project Without SharePoint Server
- How to Create Mysite in SharePoint 2010
- Step by Step - How to create a c++ library with NDK on Android Studio 1.5 (not experimental way)
- C# 对sharepoint 列表的一些基本操作,包括添加/删除/查询/上传文件给sharepoint list添加数据
- How-to: 安装 SharePoint 后,配置失败: Failed to register SharePoint services
- SharePoint 2010: Create a Custom Page Layout for a Publishing Site using SharePoint Designer
- [转]How to Create a Thumbnail Picture Library View in SharePoint 2007
- Sharepoint学习笔记---SPList--使用Linq to Sharepoint间接查询External List(3.使用Linq to Sharepoint查询List内容)
- How to open MS word document from the SharePoint 2010 using Microsoft.Office.Interop.dll
- [Solution]How to create Project Web App in SharePoint