Skip to main content
3 of 4
added 414 characters in body

How do I convert CAML to use in the CQWP?

I have the following CAML query which returns checked out files.

<Query><Where><Eq><FieldRef Name="CheckoutUser" /><Value Type="User">[Me]</Value></Eq></Where></Query>

I want to use this in a Content Query web part, within the 'QueryOverride' section.

<property name="QueryOverride" type="string" />

Thus far I have included the CDATA wrap but the webpart isnt importing, and its the only line I have changed so the something is wrong with this line of code.....?

<property name="QueryOverride" type="string" <![CDATA[<Where><And><IsNotNull><FieldRef Name='CheckoutUser' /></IsNotNull><Eq><FieldRef Name='CheckoutUser' /><Value Type='Integer'><UserID Type='Integer' /></Value></Eq></And></Where>]]></property>

I'm new to this, but believe it can be done. Can someone convert this for me please or point me in the right direction.

All help appreciated.