Click here to Skip to main content
16,020,626 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

My question is related CAML Query syntax.

This is my simple CAML query refencing fieldname to the parameter

XML
<Where>
<Contains>
<FieldRef Name="Title"/><Value Type="Text">%firstname%</Value>
</Contains>
</Where>



Is there a way to apply conditions on %firstname% prameters.
I want to added other condition like parameter %firstname% is empty ("").

Any help appreciated..
Posted

1 solution

The best way to find that out is to use U2U CAML Query builder. You can download that from the below link.

http://www.u2u.net/res/Tools/CamlQueryBuilder.aspx

They haven't yet released a version for SP2010 but the 2007 version works fine on 2010.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900