Auto number column in SharePoint list

后端 未结 9 1552
名媛妹妹
名媛妹妹 2021-02-01 15:52

In a SharePoint list I want an auto number column that as I add to the list gets incremented. How best can I go about this?

相关标签:
9条回答
  • 2021-02-01 16:27

    it's in there by default. It's the id field.

    0 讨论(0)
  • 2021-02-01 16:33

    Peetha has the best idea, I've done the same with a custom list in our SP site. Using a workflow to auto increment is the best way, and it is not that difficult. Check this website out: http://splittingshares.wordpress.com/2008/04/11/auto-increment-a-number-in-a-new-list-item/

    I give much appreciation to the person who posted that solution, it is very cool!!

    0 讨论(0)
  • 2021-02-01 16:42

    If you want to control the formatting of the unique identifier you can create your own <FieldType> in SharePoint. MSDN also has a visual How-To. This basically means that you're creating a custom column.

    WSS defines the Counter field type (which is what the ID column above is using). I've never had the need to re-use this or extend it, but it should be possible.

    A solution might exist without creating a custom <FieldType>. For example: if you wanted unique IDs like CUST1, CUST2, ... it might be possible to create a Calculated column and use the value of the ID column in you formula (="CUST" & [ID]). I haven't tried this, but this should work :)

    0 讨论(0)
提交回复
热议问题