如何在sharepoint中生成列表defenition字段id [英] How to generate list defenition field id in sharepoint

查看:125
本文介绍了如何在sharepoint中生成列表defenition字段id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我在列表保护中使用的字段ID。我是从互联网上得到的。

我们如何为列表定义生成这种不同的字段ID。基于我们生成此字段ID的内容。



The following is the field id i have used in my list defenition. I got it from the internet.
How we can generate this kind of different field id for our list defenition. Based on what we are generating this field id.

<FieldRef ID="{475c2610-c157-4b91-9e2d-6855031b3538}"/>
<FieldRef ID="{d3a92d97-2b77-4a25-9698-3ab54874bc10}"/>
<FieldRef ID="{d3a92d97-2b77-4a25-9698-3ab54874bc12}"/>





这里我使用的是字段ID。基于此字段ID创建的内容。



Here i am using field id. Based on what this field id created.

推荐答案

简介:

SharePoint 2010列表定义可以使用Visual Studio。

这是一个xml文件,我们可以在其中提供唯一的GUID,显示名称,静态名称和更多属性。

在SharePoint中,GUID是唯一的。



建议:

使用以下解决方案之前,请注意我在下面提到的一些要点。

1]您所指的是标记 FieldRef ,这意味着您正在使用现有列。可能是SharePoint的特定用途的内容类型/预定义列中的站点列/列。

2]如果您要查找现有列,添加不正确GUID的引用将无效。



解决方案:

1]每个列表列都有唯一的ID来创建它们转到

Visual Studio 2010 SharePoint项目=>工具=>创建GUID =>选择注册表格式=>

点击新GUID =>点击复制=>经过它在理想的位置



现在你有新的GUID。



如果你正在寻找创造从头开始定义如下文章。



链接1 [ ^ ]

链接2 [ ^ ]
Introduction :
SharePoint 2010 list definition can be created using Visual studio.
It is a xml file in which we can provide unique GUID, display name, Static name and more attributes.
In SharePoint GUID's are unique.

Suggestion :
Before use following solution take care of some points I mentioned below.
1] You are referring tag "FieldRef" it means you are using existing column. which may be Site column/column from content Type/Predefine column for specific purpose by SharePoint.
2] Adding reference of improper GUID wont work if you are look for existing column.

Solution :
1] Each list column has unique id to create them Go to
Visual Studio 2010 SharePoint project => Tool => Create GUID => select Registry format =>
Click New GUID => Click Copy => Past it at desired location

Now you have new GUID.

In case you are looking for create definition from scratch follow below articles.

link 1[^]
link 2[^]


这篇关于如何在sharepoint中生成列表defenition字段id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆