great, thanks for your reply. It works now as expected! :)
I have another question - since I am using the CAML query in a custom listview webpart where I can configure the list view, there is normally an additional query the user specified. What I want to achive now is:
- I want to use the existing query (normally the users define some sorting, grouping or ordering in it).
- Additionally I want to use my Camlex query I built as above.
I tried something like this:
string existingQuery = this.list.Query.Query;
var camlQuery = Camlex.Query().WhereAny(existingQuery, expressions).ToString();
but it doesn't work. Just a quick example:
I have a grouping rule in the list view:
<GroupBy Collapse="TRUE" GroupLimit="30"><FieldRef Name="Register" /></GroupBy>
When I try to combine both the grouping and my Camlex query like above, I get an IncorrectCamlException with the message "Caml specified for tag 'Where' can not be translated to code".
I am doing something wrong? Is it possible at all to achive what I am trying to do?
Thanks in advance