numero = 11622
interpreted = N
texte = >>>>Is there a way for new records appended by WebCat 2.0>>>>to generate sku numbers?>>>The code I use is as follows:>>>>Ken wrote:---------->A more reliable method for creating a unique record number is this:>>>>... because [cart] will create a unique number even when two or more people>attempt to create a new record in the very same second.The trouble I found with using a cart value for a SKU is that if a user isadding multiple records they might use the browsers back button to returnto the add_record.tmpl. If that happens then they will entering recordswith identical cart values.I'm not sure what the ideal technique would be as both cart and date havetheir inherent drawbacks. I decided that the chances of having recordsentered at the exact same second is less than the chance of someone usingtheir back button. Perhaps Grant can advise us or perhaps give us a truerandom command or math context that we could compute with... Unless Ken,you being the WebDNA guru that you are, have found a way around the backbutton problem.-marty ____________________________________| Marty Schmid || -Artwerks- || Design/Advertising/Web Publishing || || T. 619.274.5029 || F. 619.274.5656 || e-mail: marty@artwerks.com ||____________________________________|
Associated Messages, from the most recent to the oldest:
>>>>Is there a way for new records appended by WebCat 2.0>>>>to generate sku numbers?>>>The code I use is as follows:>>>>Ken wrote:---------->A more reliable method for creating a unique record number is this:>>[cart]>>>... because [cart] will create a unique number even when two or more people>attempt to create a new record in the very same second.The trouble I found with using a cart value for a SKU is that if a user isadding multiple records they might use the browsers back button to returnto the add_record.tmpl. If that happens then they will entering recordswith identical cart values.I'm not sure what the ideal technique would be as both cart and date havetheir inherent drawbacks. I decided that the chances of having recordsentered at the exact same second is less than the chance of someone usingtheir back button. Perhaps Grant can advise us or perhaps give us a truerandom command or math context that we could compute with... Unless Ken,you being the WebDNA guru that you are, have found a way around the backbutton problem.-marty ____________________________________| Marty Schmid || -Artwerks- || Design/Advertising/Web Publishing || || T. 619.274.5029 || F. 619.274.5656 || e-mail: marty@artwerks.com ||____________________________________|
Marty Schmid
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...