Re: Assigning Serialized Customer Numbers

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15464
interpreted = N
texte = >How do I assign new customers a unique Customer Number that is >sequentially greater than the highest existing customer number? >Is there an example to look at anywhere? Maybe, but I'm not sure off-hand.Here, I'll write one for you. It should work fine if you make a couple of obvious changes (to the database and field name, of course). And if you can understand how and why this works, that's even better ... :)[append db=XXX.db]fieldName=[math]1+[search db=XXX.db&nefieldNamedatarq=[blank]&fieldtype=num&defieldsort=1&max=1][founditem s][fieldName][/founditems][/search][/math][/append]Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Associated Messages, from the most recent to the oldest:

    
  1. Re: Assigning Serialized Customer Numbers (Kenneth Grome 1997)
  2. Assigning Serialized Customer Numbers (Larry Orchier 1997)
>How do I assign new customers a unique Customer Number that is >sequentially greater than the highest existing customer number? >Is there an example to look at anywhere? Maybe, but I'm not sure off-hand.Here, I'll write one for you. It should work fine if you make a couple of obvious changes (to the database and field name, of course). And if you can understand how and why this works, that's even better ... :)[append db=XXX.db]fieldName=[math]1+[search db=XXX.db&nefieldNamedatarq=[blank]&fieldtype=num&defieldsort=1&max=1][founditem s][fieldName][/founditems][/search][/math][/append]Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... 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:

Searching for all records (1998) [WebDNA] Captcha question (and free code) (2009) [isfile] ? (1997) PDF (1999) Mac GUI editors (1997) WCS Newbie question (1997) Summ=T Problem (1997) WebDNA Solutions --> Date format suggestions (1998) WebDNA Build Area (linux) (2004) Grant, please help me ... (1997) [WebDNA] Safari & Cookies (2009) F3 crashing server (1997) The Form authentication trick (2000) Setting up shop (1997) E-mailer error codes (1997) Re:2nd WebCatalog2 Feature Request (1996) Special characters in field names (1998) Follow-Up to: Removing [showif] makes a big difference in speed (1997) CSS in HTML emails? (2003) WC2.0 Memory Requirements (1997)