有可能使用!=在查询字符串? [英] Is that possible to use != in query string?
问题描述
还是有它的局限性吗?我是过滤SharePoint列表使用查询字符串的一些共鸣我需要检查像FieldValue!=红色是可能的存档?
$ b
.aspx?FilterName = EYHealthIndicator& FilterMultiValue = Red; Yellow&& FilterField2 = ContentType& FilterValue2!=任务
b $ b您不能AFAIK。
解决方法可能是创建一个计算列然后过滤。
例如用公式
创建一个名为Not-Red的列。$ b
= IF([YOUR_COLUMN_NAME] =Red,False,True) b
$ b
然后过滤
?FilterField1 = Not-Red& FilterValue2 = True
I am filtering sharepoint list using query string for some reson i need to check condition like FieldValue!=Red is that possible to achive?
Or still its limitation?
.aspx?FilterName=EYHealthIndicator&FilterMultiValue=Red;Yellow&&FilterField2=ContentType&FilterValue2!=Task
You can't AFAIK.
The workaround MAY be to create a calculated column and then filter on that.
E.g. create a column called "Not-Red" with formula
=IF([YOUR_COLUMN_NAME]="Red","False","True")
Then filter
?FilterField1=Not-Red&FilterValue2=True
这篇关于有可能使用!=在查询字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!