SharePoint 列表中带有项目链接的自动编号列 [英] Auto Number Column in SharePoint List with Link to Item

查看:64
本文介绍了SharePoint 列表中带有项目链接的自动编号列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于同一主题发布了一个类似的问题,但我正在添加该问题,并且之前的讨论已解决.

There was a similar question posted regarding the same topic, but I'm adding to the question and the previous discussion was resolved.

这是原始问题的链接:自动编号列SharePoint 列表

我现在想知道在 MOSS SharePoint 2007 的自定义列表中是否有一个名为ID(链接到项目)"的列.
我知道在 SharePoint 中创建问题列表时,存在默认情况下包含在视图中的问题 ID(链接到项目)"字段,但是,我无法确定自定义列表是否存在类似的字段.

I'm now trying to find out if in a Custom List in MOSS SharePoint 2007 there is a column called "ID(link to item)".
I know that when creating an Issues List in SharePoint, there exists an "Issue ID (link to item)" field that is by by default included in the view, however, I cannot find out if a similar field exists for a Custom List.

推荐答案

答案是否定的...但您可以创建一个.

The answer is No... but you can create one.

使用 SharePoint Manager(很酷)打开一个网站,您可以看到"IssueID"列和用于显示ID(链接到项目)"的列我在下面的网站中包含架构 xml

Cracking open a website using SharePoint Manager (which rocks) you can see the definition of the "IssueID" column and the one that is used to display the "ID(link to item)" I include the schema xml from my site below

<?xml version="1.0" encoding="utf-16"?>
<Field ID="{de57307b-e69a-4cf9-b3a9-b6a728ecf773}" Sealed="TRUE" ReadOnly="TRUE" Name="IssueID" Type="Computed" DisplayName="Issue ID" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="IssueID" FromBaseType="TRUE">
  <FieldRefs>
    <FieldRef Name="ID" />
  </FieldRefs>
  <DisplayPattern>
    <Column Name="ID" />
  </DisplayPattern>
</Field>

<?xml version="1.0" encoding="utf-16"?>
<Field ID="{03f89857-27c9-4b58-aaab-620647deda9b}" ReadOnly="TRUE" Type="Computed" Name="LinkIssueIDNoMenu" DisplayName="Issue ID" Dir="" DisplayNameSrcField="IssueID" AuthoringInfo="(linked to item)" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="LinkIssueIDNoMenu">
  <FieldRefs>
    <FieldRef Name="ID" />
  </FieldRefs>
  <DisplayPattern>
    <HTML><![CDATA[<a  href="]]></HTML>
    <URL />
    <HTML><![CDATA[" ONCLICK="GoToLink(this);return false;" target="_self">]]></HTML>
    <Column HTMLEncode="TRUE" Name="ID" />
    <HTML><![CDATA[</a>]]></HTML>
  </DisplayPattern>
</Field>

更改 GUID,您可以将这些列添加到自定义列表中,它们将以您需要的方式显示.我建议为这些列创建一个功能(也许使用 STSDev)并通过任何事情的解决方案发布除了开发站点.

Change the GUIDs and you can add these columns to a custom list, they will display in the manner you require. I would recommend creating a feature for the columns (maybe use STSDev) and releasing via a solution to any thing other than a dev site.

这篇关于SharePoint 列表中带有项目链接的自动编号列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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