惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - MFKSoft

IIS7运行WCF服务出现404错误的解决方法 [转]windows2008域服务器上创建实例报错,DIM-00019 租的吧 LOGO 全集 百度 父亲节 Logo 竟与 租的吧 “撞衫” 极速QQ作者向腾讯道歉 宣告永久停止更新 令人咋舌!瑞典设计师惊艳的PS修图作品 H1N1流感分布图 发短信赚2元话费咯 Ajax .NetFrameWork3.5 Sys未定义 解决方案 Doodle 4 Google “我的中国”谷歌国际少年绘画大赛 -- 作品赏 SharePoint 通过下拉框来筛选列表 不用寫程式也能客製化 - SharePoint 与SPD整合應用說明 Infragistics Resource String 对照表 -- UltraGrid Infragistics 部分控件汉化 VS2008简体中文正式版 + Team.Suite团队版 下载地址 告别黑色肺!禁烟公益广告海报 JavaScript控制文本被选中 IBM开发新型内存 读写速度比闪存快10万倍 2008年Logo设计10大趋势
SharePoint 通过下拉框来筛选列表 - (续) - (更新)
MFKSoft · 2008-12-12 · via 博客园 - MFKSoft

之前碰到的问题《SharePoint 通过下拉框来筛选列表 》经过同事的指导解决了。。

哈哈哈。。

首先我们选回到刚才的筛选条件那边

把这边的条件全部清楚掉,完了就跟下面的一样。这个时候点击确定退出。再重新进来。

点击编辑进入高级条件这边。

  

 

 1 [
 2  (
 3   contains(@Item_x0020_Classification,$ItemClassification)
 4   and contains(@Manufacturer,$Manufacturer)
 5  )
 6  or
 7  (
 8  contains($ItemClassification,'0')
 9   and contains(@Manufacturer,$Manufacturer)
10  )
11  or
12  ( 
13  contains(@Item_x0020_Classification,$ItemClassification)
14   and contains($Manufacturer,'0')
15 
16  )
17 ]

这边对这个代码解释下:

@XXX:就是我们列表里面筛选的字段名

$XXX;就是我们的参数名

contains(字符串,子字符串)  :如果子符串参数出现在字符串参数中,则返回True,否则返回False

我们这边的筛选就是就当我们的参数跟列表字段里的值一样的时候这个就是真的。筛选就成功

contains($ItemClassification,'0')  -- 我们在下拉框里定义,他如果选择为第一项“选择一个...”这一项的时候它的值为‘0’

所以当这个下拉框没有选中的话这个条件是成立的。。

用这个方法还有一个比较麻烦的地方。当筛选的条件比较多的话。比如说我有5个下拉框来筛选的话。。这个条件有的写的。。

目前我的方法。还有没有其它方法??

-----------
更新
-----------

将上面的条件代码改成这样子的话。下拉框再多也不要写太多代码

 1 [
 2  (
 3   contains(@Item_x0020_Classification,$ItemClassification)
 4    or contains($ItemClassification,'0')
 5   )
 6  and
 7  (
 8   contains(@Manufacturer,$Manufacturer)
 9   or contains($Manufacturer,'0')
10  )
11 ]
12 

添加一个下拉框就再添加一个AND就行了。。