Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to create an autonumber column in the lists and libraries?
For example I want to have a list and when a user wants to add a new value, it automatically generates a new autonumber.

share|improve this question
    
Can you just use the built in ID column? –  Ryan Oct 17 '12 at 8:09

2 Answers 2

up vote -2 down vote accepted

When you create any list or Library a column named ID is created automatically and it is Auto-number Column; And if you want to create your own autonumber column you can create it with Calculated Type of Column.

share|improve this answer
    
The link you specified to customise the autonumber is actually a question stating it doesn't work as expected using the calculated column. –  Russell Oct 17 '12 at 5:26
2  
hey Sorry i got wrong link.. try this link.. this shows how to create Autonumber Column in List.. sharepointinnovations.blogspot.in/2011/03/… –  Torque Oct 17 '12 at 5:29
    
That looks...erm... pretty useless. Its just ID+1. Whats the advantage of that over just the existing ID column? –  Ryan Oct 17 '12 at 8:10
1  
Unfortunately using [ID] in a calculated column doesn't work: sharepoint.stackexchange.com/a/46258/1529 –  Stuart Pegg Oct 17 '12 at 8:17

If you want to show this number on AllItems.aspx page, you can use xslt. In spd add a column at the beginning of the table for examaple and add there this formula: position() It will show so-called 'id' of each item of the list

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.