任何人都可以帮助我使用此CAML查询吗?当我将Ascending
属性从TRUE
翻转到FALSE
(也尝试过True
和False
)时,它不会重新排序结果集。CAML查询没有正确订购
其余的CAML是正确的,它是由一个工具生成的,并且正在返回相应的结果。
<Where>
<And>
<And>
<Eq>
<FieldRef Name="Branch"/>
<Value Type="Text">Camp 1</Value>
</Eq>
<Eq>
<FieldRef Name="Type"/>
<Value Type="Choice">Day</Value>
</Eq>
</And>
<Geq>
<FieldRef Name="StartDateTime"/>
<Value Type="DateTime">2009-01-05T00:00:00Z</Value>
</Geq>
</And>
<OrderBy>
<FieldRef Ascending="TRUE" Name="Title" />
</OrderBy>
</Where>
doh!我盯着查询这么久,我没有看到明显的答案。是的,我建立了生成查询的工具。对于IncludeTimeValue,为 – Jason 2009-02-27 12:15:58