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:

XML - USPS Lookups - UPS Lookups (2003) [format xs] freeze (1997) WebCatalog 4.0.2rc1 and rc2 crash WebSTAR on quit (2001) Cookies (1998) Banners and sort of random display (1997) QuitFeedback & DBNotOpened errors (1997) Un[url]ize (1999) Re:Emailer setup (1997) Calendar (1997) Error Messages Returned to User (1997) No luck with taxes (1997) Help! WebCat2 bug (Ben's input) (1997) Error: Too many nested [xxx] contexts (1997) sku, title, price not showing up (1998) Mystery File (2005) Server crashes when user saves or views html source (1998) [WebDNA] [OT] Social Media Share Buttons (2013) More Shopping Cart Problems (2000) autosensing lanague selection (1997) WebMerchant 1.6 and SHTML (1997)