views:

7133

answers:

3

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

Here is the link to the original question: http://stackoverflow.com/questions/72537/auto-number-column-in-sharepoint-list/606872#606872

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.

+2  A: 

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

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>

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.

Nat
A: 

You could use SharePoint Designer to convert your list view into a Data View WebPart. From there you have complete control over the XSL used for the view rendering which would make it trivial for you to link to the item from any or all fields.

Mark Mascolino
A: 

Could either of these solutions work for an imported list I have where Sharepoint has decided which column links to the item with edit menu? I wan to chnage which column does this as I need to change the format and this means removing the column that has defaulted to being the link to item with edit menu

Any help much appreciated

Ruth