Re: Cart#
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13697
interpreted = N
texte = >Is there a way to make the cart number start out smaller? mine are like>20192938372982 long, and I want to use those as customer numbers, but>they don't need to be that long.. maybe like 7 long or somthing.No ... I think cart numbers are generated based on a formula thatguarantees uniqueness - so if you shorten it, uniqueness is no longerguaranteed.Why not use a different method of generating customer numbers?The following WebDNA should append a new record to the customers.dbdatabase with a customer number that's one higher than the highestprevious customer number in that database. Just make sure you startwith a customer.db that has at least one record with a positiveinteger in the customerNumber field ... like the number 1 for example... :)[append db=customer.db]customerNumber=[math][searchdb=customer.db&necustomerNumber=0&customerNumberType=num&decustomerNumberSort=1&max=1][founditems][customerNumber][/founditems][/search]+1[/math][/append]öïùíSincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Associated Messages, from the most recent to the oldest:
>Is there a way to make the cart number start out smaller? mine are like>20192938372982 long, and I want to use those as customer numbers, but>they don't need to be that long.. maybe like 7 long or somthing.No ... I think cart numbers are generated based on a formula thatguarantees uniqueness - so if you shorten it, uniqueness is no longerguaranteed.Why not use a different method of generating customer numbers?The following WebDNA should append a new record to the customers.dbdatabase with a customer number that's one higher than the highestprevious customer number in that database. Just make sure you startwith a customer.db that has at least one record with a positiveinteger in the customerNumber field ... like the number 1 for example... :)[append db=customer.db]customerNumber=
[math][searchdb=customer.db&necustomerNumber=0&customerNumberType=num&decustomerNumberSort=1&max=1]
[founditems][customerNumber][/founditems][/search]+1[/math][/append]öïùíSincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.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:
calculating time (2002)
WebCatalog for Dummies part 2 (2000)
WebSTAR/WebCat is serving .db files! (1999)
Hiring: Web programmer in Seattle area (2000)
HTML Editors (1997)
Solution help needed (1998)
[SearchString] usage (1997)
Secure server question (1997)
Ok here is a question? (1997)
shrink-wrapped version out yet? (1997)
Help! Odd, irreproducible happenings. (1998)
authenticating a second user, the sequel (1997)
Web Catalog 2 demo (1997)
WebCat b13 CGI -shownext- (1997)
Why do extra quotation marks sometimes appear in my databases? (1998)
Bug? (1997)
Items XX to XX shown (1997)
[showif],[refferer],[include] in errormessages.db (2002)
Banner DNA (1997)
[OT] (waaaay OT) further off topic than before (2004)