Re: Simple way to create unique SKU
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11105
interpreted = N
texte = >Using sku=[DATE %y%j%H%M%S]  on my template for adding items to the>catalog, I generate a unique number (such as 97132110236) that will not be>duplicated and that serves as a kind of time stamp as well.  I considered>not using the year or seconds, but if something were to be added at the>same hour and minute of the same day of the year next year, or if two items>were added during the same minute, it could be a problem.You might consider using sku=[cart] as well.  On any page that is not 'told' what cart to use, you may put [cart], and WebCatalog will generate a guaranteed-unique number.  This is guaranteed even if two people hit the page inside the same second.Grant Hulbert, V.P. Engineering      | ===== Tools for WebWarriors =====Pacific Coast Software               | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court, #453     | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128                  | SiteGuard619/675-1106  Fax: 619/675-0372      | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>Using sku=[DATE %y%j%H%M%S]  on my template for adding items to the>catalog, I generate a unique number (such as 97132110236) that will not be>duplicated and that serves as a kind of time stamp as well.  I considered>not using the year or seconds, but if something were to be added at the>same hour and minute of the same day of the year next year, or if two items>were added during the same minute, it could be a problem.You might consider using sku=
[cart] as well.  On any page that is not 'told' what cart to use, you may put 
[cart], and WebCatalog will generate a guaranteed-unique number.  This is guaranteed even if two people hit the page inside the same second.Grant Hulbert, V.P. Engineering      | ===== Tools for WebWarriors =====Pacific Coast Software               | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court, #453     | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128                  | SiteGuard619/675-1106  Fax: 619/675-0372      | http://www.smithmicro.com
Grant Hulbert 
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
 
WebCatalog can't find database (1997)
 
Multiple Pulldowns (1997)
 
[WebDNA] Data Type Bool (2009)
 
[WebDNA] Advanced search 'rq' problem (2013)
 
Tab Delimited Files / FM Pro (1997)
 
All questions are welcome on this list (1997)
 
[searchString] (1997)
 
 Do not truncate a whole word (2004)
 
Directory Overload (1998)
 
Re[2]: Shopping Cart Directory (2000)
 
[WebDNA] [convertchars] and ascii problem (2010)
 
WebCat2: Found Items syntax, etc. (1997)
 
Moment of Thanks (1997)
 
Need help with emailer- 2 issues (1997)
 
 port 16080 problem (2003)
 
[Listfiles] vs Netfinder (1997)
 
Hosting Services (1999)
 
 301 redirect (2008)
 
Not really WebCat- (1997)
 
Server IP address? (1998)