当前位置: 代码迷 >> SharePoint >> SharePoint 计算列比较大小,该如何解决
  详细解决方案

SharePoint 计算列比较大小,该如何解决

热度:188   发布时间:2016-05-02 07:02:58.0
SharePoint 计算列比较大小
建立了一个Month计算列,方法为:=DATEDIF([Start Date],[End Date],"m"),现在想用CAML查询Month>=2的item,用如下代码得不到想要的结果:  
 <Where>
      <Geq>
         <FieldRef Name='Month' />
         <Value Type='Calculated'>2</Value>
      </Geq>
   </Where>
将计算列的公式类型返回值设为“Single line of text”或者"Number(1, 1.0, 100)"都不起作用。请问下各位有什么好的解决方法?谢谢!
------解决方案--------------------
参考
不行的话自己搜搜
caml computed field
------解决方案--------------------
引用:
Quote: 引用:

参考
不行的话自己搜搜
caml computed field

改成这个就行:
   <Where>
      <Geq>
         <FieldRef Name='Month' />
         <Value Type='Number'>2</Value>
      </Geq>
   </Where>

挺快
  相关解决方案