2011-06-06 39 views
2

在以下CAML查询中,我在下面一行中引用0。CAML查询始于数字问题

<Value Type='Text'>0</Value> 

即使当值为0时,这也不起作用当它是A时它工作(对于A和0我都有条目)。我不确定为什么数字值没有被拾取。

任何帮助,将不胜感激。

<Query> 
     <Where> 
     <And> 
      <Eq> 
      <FieldRef Name='TCategories' /> 
      <Value Type='Text'>Abbreviations</Value> 
      </Eq> 
      <BeginsWith> 
      <FieldRef Name='FirstCharacter' /> 
      <Value Type='Text'>0</Value> 
      </BeginsWith> 
     </And> 
     </Where> 
</Query> 

回答

2

我确实有这样的

enter image description here 类似的查询其实际工作对我罚款。

确保查询“TCategories”和“FirstCharacter”中的列属于文本类型。

谢谢,
- 代号“Santosh”