2010-10-29 85 views
0

嗨 我目前XML<DefaultFormula>标签不添加到列

创建我的领域创造了SharePoint中的日期时间字段的默认公式,但不添加默认公式。我是否需要另一个标签说我想要一个默认公式

。该模式我已经是

<Field <!-- Some properties here-->> 
<DefaultFormula>Today +182</DefaultFormula> 
<FieldRefs> 
</FieldRefs> 
</Field> 

干杯 Truez

回答

1

试试这个:

<Field <!-- Some properties here-->> 
    <DefaultFormula>=[Today]+182</DefaultFormula> 
    <FieldRefs> 
    </FieldRefs> 
</Field> 

我发现很多有用的例子在这里: http://office.microsoft.com/en-us/windows-sharepoint-services-help/examples-of-common-formulas-HA010105479.aspx?CTT=3

+0

一些更多的例子在这里太公式: http://abstractspaces.wordpress.com/2009/05/02/common-date-time-formulas-for-sharepoint-calculated-fields/ – Jay 2012-06-13 08:59:49