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 that guarantees uniqueness - so if you shorten it, uniqueness is no longer guaranteed.Why not use a different method of generating customer numbers?The following WebDNA should append a new record to the customers.db database with a customer number that's one higher than the highest previous customer number in that database. Just make sure you start with a customer.db that has at least one record with a positive integer in the customerNumber field ... like the number 1 for example ... :)[append db=customer.db]customerNumber=[math][search db=customer.db&necustomerNumber=0&customerNumberType=num&decustomerNumberSort=1& max=1][founditems][customerNumber][/founditems][/search]+1[/math][/append] öïùíSincerely, Ken Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: Refresh cart# (Robert Kudrle 1999)
  2. Re: Refresh cart# (Robert Kudrle 1999)
  3. Re: Refresh cart# (John Butler 1999)
  4. Re: Refresh cart# (Robert Kudrle 1999)
  5. Re: Refresh cart# (Michael O Shea 1999)
  6. Refresh cart# (Robert Kudrle 1999)
  7. Re: Refresh cart# (Brian B. Burton 1999)
  8. Re: Cart# (Kenneth Grome 1997)
  9. Cart# (Jason Darpa 1997)
>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 that guarantees uniqueness - so if you shorten it, uniqueness is no longer guaranteed.Why not use a different method of generating customer numbers?The following WebDNA should append a new record to the customers.db database with a customer number that's one higher than the highest previous customer number in that database. Just make sure you start with a customer.db that has at least one record with a positive integer in the customerNumber field ... like the number 1 for example ... :)[append db=customer.db]customerNumber=[math][search db=customer.db&necustomerNumber=0&customerNumberType=num&decustomerNumberSort=1& max=1][founditems][customerNumber][/founditems][/search]+1[/math][/append] öïùíSincerely, Ken Grome WebDNA Solutions http://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:

[BULK] [WebDNA] Anyone using WebDNA7 and Lion Server? (2011) MOOOOOO (2000) GREP Help (2001) users.db (1999) multi-paragraph fields (1997) Grouping Fields (2006) WebDNA-Talk Digest mode broken (1997) webcat- multiple selection in input field (1997) WebCatalog 4.0.2b5 available (2000) Interfacing WebMerchant to www.fedex.com (1997) Server Freeze (1998) [WebDNA] Crashing Database (2011) [LOOKUP] (1997) Upgrading old WebCat Database Files (1997) AOL access problems (1998) [WebDNA] [TCPSend] Test email address??? (2011) Tax & Shipping (1997) NT installation (2000) MacAuthorize and WebCatalog Questions (2000) Snake Bites (1997)