Re: Sku numbers
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11629
interpreted = N
texte = >Just to add more complexity to this issue, I probably will encourage users>to use the back button to return to an add_record.tmpl to add more>records since for my application most of the information in the previous>record will be needed in the next added record as well and they can just>return to the previous page with that redundent info already filled and>only re-key what is different in the newer record.>>But I agree with everyone that the Date=SKU scheme has a couple of flaws:>the possible duplication of SKUs if two users enter records at the exact>same second, and if the servers clock is reset to an earlier time AND a>user enters a record at a time which synchronizes it to the second with a>previously entered record.>>But I've found it useful to use the Date=SKU scheme from a database>management standpoint because I can use one field for both SKU and date of>record entry. What I might do is incorporate Ken's ideas for doing a>[lookup] to verify that the date/sku value is indeed unique (thanks Ken)>and if not respond with an error and return the user to a screen which>would ask them to re-submit their record (and thus generating a>newer/different Date value).>>I think the chances (at least in my application) of users entering records>at the exact same second are extremely remote to begin with, and if I>couple that with a unique SKU number lookup - I think I'd feel pretty>comforatble with that.>>What do you guys think?I think you have an excellent handle on this. I don't think it's verylikely that users will create new records on any site at the very samesecond - and if they did, it would only create a problem for a very fewcases. You'd have to have an awfully busy web site in order for this tobecome a major problem ... or else maybe a lot of bad luck! :)Recommending use of the Back button is a good technique when most of thesame data has to be entered again, especially when you're using a date/timesku instead of a [cart] value.Sincerely, Ken Grome ..... ken@iav.comhttp://usarea.net/home.html
Associated Messages, from the most recent to the oldest:
>Just to add more complexity to this issue, I probably will encourage users>to use the back button to return to an add_record.tmpl to add more>records since for my application most of the information in the previous>record will be needed in the next added record as well and they can just>return to the previous page with that redundent info already filled and>only re-key what is different in the newer record.>>But I agree with everyone that the Date=SKU scheme has a couple of flaws:>the possible duplication of SKUs if two users enter records at the exact>same second, and if the servers clock is reset to an earlier time AND a>user enters a record at a time which synchronizes it to the second with a>previously entered record.>>But I've found it useful to use the Date=SKU scheme from a database>management standpoint because I can use one field for both SKU and date of>record entry. What I might do is incorporate Ken's ideas for doing a>
[lookup] to verify that the date/sku value is indeed unique (thanks Ken)>and if not respond with an error and return the user to a screen which>would ask them to re-submit their record (and thus generating a>newer/different Date value).>>I think the chances (at least in my application) of users entering records>at the exact same second are extremely remote to begin with, and if I>couple that with a unique SKU number lookup - I think I'd feel pretty>comforatble with that.>>What do you guys think?I think you have an excellent handle on this. I don't think it's verylikely that users will create new records on any site at the very samesecond - and if they did, it would only create a problem for a very fewcases. You'd have to have an awfully busy web site in order for this tobecome a major problem ... or else maybe a lot of bad luck! :)Recommending use of the Back button is a good technique when most of thesame data has to be entered again, especially when you're using a date/timesku instead of a
[cart] value.Sincerely, Ken Grome ..... ken@iav.comhttp://usarea.net/home.html
Kenneth Grome
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:
[subtotal] and others (1997)
Enhancement Request for WebCatalog-NT (1996)
back one? (2000)
wc 2 pro users - sites, quotes wanted (1997)
Been meaning to ask... (1997)
back button problem (1999)
ListFiles and .DS_Store (2004)
I'm tired of all this! (2000)
grep for search, not replace (2002)
ssh shutdown (2005)
[BULK] [WebDNA] New Webdna framework ! ... (addresses some initial concerns... coming into the design of a large project) (2012)
Date Formats (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Virtual Postcard almost complete... (1998)
WebCat & WebTen (1997)
lookup and two records? (1997)
YACBQ.....(Yet another checkbox question) (2000)
Comments in db? (1997)
reporting commands (2001)
OT: CSS expert needed for a newbie question (2002)