问题描述
下面的CAML查询无法根据接收日期"以降序对项目列表进行排序,因此无法正常工作,并且结果以随机顺序显示.
The below CAML query to sort list of items based on 'Received Date' in descending order is not working properly and the results are displayed in random order.
camlQuery.set_viewXml('
<View>
<Query>
<OrderBy>
<FieldRef Name=\'SubmittalReceivedDate\' Ascending=\'FALSE\'/>
</OrderBy>
<Where>
<Eq>
<FieldRef Name=\'ProjectNumber\'/>
<Value Type=\'Text\'>' + projectNumber + '</Value>
</Eq>
</Where>
</Query>
</View>
');
请让我知道该错误以及如何进行修改以使其正常工作.
Please let me know the error and how to modify to make it work.
我们将为您提供任何帮助.
Any help is appreciated. Thanks in advance.
>
推荐答案
这篇关于CAML查询orderby收到日期不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!