Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

CAML Query - 4 Filters, One on a Managed Metadata Field

$
0
0

I have CQWP - that needs 4 filters (instead of the out of the box 3) - so I:

1.  Exported the web part.

2.  Used the "QueryOverride" property to set my query.

3.  Upload the web part and put it on the page.

4.  The first 3 filters work perfectly, but the last one I cannot figure out the proper syntaxt for.  It is a managed metadata field, and I can get it to work in the UI by using this setting:

I can't get U2U to give me the proper syntext either :(

<Query><Where><And><Neq><FieldRef Name='Text' /><Value Type='Text'>Not Equal To This Text</Value></Neq><And><Eq><FieldRef Name='_ModerationStatus' /><Value Type='ModStat'>Approved</Value></Eq><And><Geq><FieldRef Name='DteTm' /><Value IncludeTimeValue='TRUE' Type='DateTime'><Today /></Value></Geq><Contains>  <!--  This is the one filter that I cannot get to work --><FieldRef Name='All Tags' /><Value Type='Text'>Test</Value></Contains></And></And></And></Where></Query>
Any assistance would help!

Adam Talesky



Viewing all articles
Browse latest Browse all 11571

Trending Articles