Link to home
Start Free TrialLog in
Avatar of SpaceManagers
SpaceManagers

asked on

SharePoint 2007 Lists - Generating unique numbers

Hi ....Help!  I have a problem with trying to generate a unique ID as a 'Project Number' in SharePoint.  I have used the 'Calculated' column option in a list in sharepoint 2007 which uses the automatically generated ID column coupled with another column.  The calculation i am using is '=[Building Code]&ID'.  This works once but then on subsequent entries does not return the ID number.  If you go back in and edit the list and resave it then automatically updates the entry (so this means manual intervention which does not make sense).  Does anyone have any ideas on how to make this work or other ideas on how to generate a unique ID in sharepoint?

for example CG1234 (eg CG being the building code and 1234 being the ID field)
Avatar of GeorgeGergues
GeorgeGergues

this is not really the best way , but you are on the correct track.

Use SharePoint designer to build a workflow to set a column value with that string

that is the best way to do it , to avoid concurrency.

Best of luck.
Avatar of Uttam (Kukdai) Dhakal
i would prefer to creat a column autopopulate with the current date and time writing some javascript that will make the column unique all the time.
let me know if you need a sample
ASKER CERTIFIED SOLUTION
Avatar of GeorgeGergues
GeorgeGergues

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial