学习:SharePoint Caml Filter with Muli-values Lookup field
2011-09-16 11:27
405 查看
1. 对于Lookup Field,Caml 语句如下:
<Query>
<Where>
<Contains>
<FieldRef Name="AlertLocation" LookupId="TRUE" />
<Value Type="text">1</Value>
</Contains>
</Where>
</Query>
“1”代表 ID, Lookup List Item ID
2. 如果没有Filter出来, 可以考虑把Name="AlertLocation" 换成 Name="{xxxxx-xxxxx....}";
也就是说把Column Name 换成Column ID。
<Query>
<Where>
<Contains>
<FieldRef Name="AlertLocation" LookupId="TRUE" />
<Value Type="text">1</Value>
</Contains>
</Where>
</Query>
“1”代表 ID, Lookup List Item ID
2. 如果没有Filter出来, 可以考虑把Name="AlertLocation" 换成 Name="{xxxxx-xxxxx....}";
也就是说把Column Name 换成Column ID。
相关文章推荐
- SharePoint CAML中通过ID查找Lookup字段
- Multiple Values Lookup fields in SharePoint 2010
- Filter Lookup List in Sharepoint
- 学习:Advanced SharePoint View and Filter techniques(转)
- Add SharePoint lookup column declaratively through CAML XML
- Custom Sharepoint Lookup Field
- 学习:SharePoint Calculated Field Formulas
- 学习:New in SharePoint 2010 CAML Query <IN>,<INCLUDES> &< NOT INCLUDES>(转)
- [转]Cascading dropdown (or) Filtered Values in Lookup Columns in SharePoint
- 学习:CAML – Query Lookup Field by ID; not by Value (转)
- 在虚机上做Microsoft Office Sharepoint Server 2007 中文版独立服务器[仅供学习评估]
- 一步步学习SPD2010--第一章节--探索SPD2010(3)--理解SharePoint Designer 2010新功能
- 一步步学习SPD2010--第一章节--探索SPD2010(4)--使用SharePoint Designer创建站点
- Integrate SharePoint 2013 with Team Foundation Server 2012
- 一步步学习SPD2010--第一章节--探索SPD2010(5)--探索SharePoint Designer界面
- 转:Defining Custom Columns in SharePoint – Field Types and Options
- PowerShell: Interact with SharePoint in the fastest way possible
- CodeArt.SharePoint.CamlQuery_0.9发布(源码)