Welcome to Office & SharePoint Pro Sign in | Join | Help
in Search

SUBSCRIBE to Windows IT Pro Magazine & SAVE 30%      FREE Email Newsletters Vista UPDATE, Windows IT Pro UPDATE & More

Automatic list numbering?

Last post 08-05-2008, 4:59 PM by misterbeefy. 6 replies.
Sort Posts: Previous Next
  •  09-14-2006, 5:02 AM 26209

    Automatic list numbering?

    Hello colleagues,

    is there any possibility in WSS to have a column which automatically assigns a number to each newly created item? Something like ID, but "more visible and usable"...or, if possible, not only 1,2,3, but something like "year-XX" etc.

    Thank you a lot!

    Marek Hlavac

  •  09-20-2006, 9:36 AM 25654 in reply to 26209

    Automatic list numbering?

    If you create a list from the Issue template, you will have an ID number that is an auto-number. Bur you can also had a calculated column to an existing List, and set a formula with the ID field (hidden) and a text or another field (i.e. Title).
  •  09-20-2006, 10:11 AM 26210 in reply to 26209

    Automatic list numbering?

    >If you create a list from the Issue template, you will have
    >an ID number that is an auto-number. Bur you can also had a
    >calculated column to an existing List, and set a formula
    >with the ID field (hidden) and a text or another field (i.e.
    >Title).

     

    Hello Ricardo,

    thanks a lot!!! Did not know that I can use a hidden column in the formula. It works. Wonderful!

    Marek Hlavac

  •  09-21-2006, 1:19 AM 26212 in reply to 26209

    Automatic list numbering?

    >If you create a list from the Issue template, you will have
    >an ID number that is an auto-number. Bur you can also had a
    >calculated column to an existing List, and set a formula
    >with the ID field (hidden) and a text or another field (i.e.
    >Title).

    Hello Ricardo,

    I was a bit disappointed today...I tried to create this auto-number field with Concatenate([ID];"-";Year([Created])).

    The formula works, but there is one problem: if I create a NEW item, the formula's results are faster than the ID assignment, so the result of =ID is always ZERO. If I add a column to an existing list, the result is OK as expected - unless I add a new item.

    How to get around this?

    Thank you

    Marek Hlavac.

  •  09-21-2006, 2:24 AM 25655 in reply to 26209

    Automatic list numbering?

    Does this also happens with the Issue lists?
  •  09-21-2006, 2:43 AM 26211 in reply to 26209

    Automatic list numbering?

    Yes. I haven't recognized any differences between Issues and other list types in this case.
  •  08-05-2008, 4:59 PM 29929 in reply to 26211

    Re: Automatic list numbering?

    Funny you should ask. I just recently did this exact thing for a client. I created an itemadded event handler that added 1000 to the ID field and placed in in a new column called project ID. I also applied the same calculation to the itemupdated event, in order to keep it from being changed by any user.
View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Order Your Fundamentals CD Today!Get up to speed quickly and learn how to uncover rich information management and deployment capabilities with this free SharePoint CD. You’ve Deployed SharePoint…Now What?This one-day free online conference delivers the technical knowledge needed to kick MOSS up a notch. In one information-packed day, independent SharePoint experts will present practical, real-world information and provide take-away, ready-to-use solutions Ease Your Scripting Pains with the Flexibility of PowerShell!Join MVP Paul Robichaux on December 11, 2008 at 11:00 AM EDT as he equips you with PowerShell basics in 3 introductory lessons, each followed by a live Q&A session—all on your own computer! Protecting Sharepoint with Double-Take for Windows 5.0Providing SharePoint recoverability is a two step process. Learn those steps now. Vendor protection solutions for SharePoint are incomplete at worst and unreliable at best. So what’s an Administrator to do? Read More… Maximize Your SharePoint Investment This web seminar discusses how true bi-directional replication of SharePoint content from one server to another enables branch offices to maintain access to current SharePoint content.