I’m trying to create a CAML query for a list in SP.
I thought of using the Modify view pages to create a basic view including a filter, then use some code to examine the Query Prop of the SPView:
string t = dataList.Views["MyView"].Query;
But CAML in t does not contain any Where elements. Just the orderby
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
How does SharePoint store the CAML for view filters?
Weird.
Because if you examine built in list schema (for example tasks list schema you can find at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\TasksList\Tasks\schema.xml) there is Where clause in Query element:
Oh, you may try SPCamlViewer to examine your views.