如何在编码sharepoint托管应用程序时向列表中添加默认值
在sharepoint中编码时,如何向列表字段添加默认值 以下是所有可能的字段:如何在编码sharepoint托管应用程序时向列表中添加默认值,sharepoint,sharepoint-2013,caml,Sharepoint,Sharepoint 2013,Caml,在sharepoint中编码时,如何向列表字段添加默认值 以下是所有可能的字段: DefaultValue不在此列表中 这是我的代码: <Field Name="AantalOneens" ID="{ea4ca32a-3cc3-4a39-ac35-794a7bbadee8}" DisplayName="Aantal oneens" Type="Number" Required="TRUE" DefaultValue="0" /> 默认值属性不起作用,因为它不存在 有什么想法吗
DefaultValue
不在此列表中
这是我的代码:
<Field Name="AantalOneens" ID="{ea4ca32a-3cc3-4a39-ac35-794a7bbadee8}" DisplayName="Aantal oneens" Type="Number" Required="TRUE" DefaultValue="0" />
默认值属性不起作用,因为它不存在
有什么想法吗?要设置字段的默认值,必须使用默认元素。您可以在下面的链接中找到一个示例,