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 acouple of obvious changes (to the database and field name, ofcourse). And if you can understand how and why this works, that'seven better ... :)[append db=XXX.db]fieldName=[math]1+[searchdb=XXX.db&nefieldNamedatarq=[blank]&fieldtype=num&defieldsort=1&max=1][founditems][fieldName][/founditems][/search][/math][/append]Sincerely, Ken Gromeken@iav.comWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/...
Associated Messages, from the most recent to the oldest:
>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 acouple of obvious changes (to the database and field name, ofcourse). And if you can understand how and why this works, that'seven better ... :)[append db=XXX.db]fieldName=
[math]1+[searchdb=XXX.db&nefieldNamedatarq=[blank]&fieldtype=num&defieldsort=1&max=1][founditems][fieldName][/founditems][/search][/math][/append]Sincerely, Ken Gromeken@iav.comWebDNA Solutionshttp://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:
Cookies and webcat (1997)
Local redirects ... (2005)
[showif] and equality (1998)
Multiple prices (1997)
Date field search needs ... (1998)
[SearchString] (1998)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
Date Calulation (1997)
WebMerchant 2.1.2 (1998)
[OT] Java Servlet Q (2002)
Cart Number sequence (1997)
Limit to Field Length in DB (1998)
Multiple Search Fields (1998)
Smith Micro SUPPORT? (2000)
WebCat b15 Mac plug-in (1997)
Bad cookie (1998)
Location of Webcat site in folder hierarchy (1997)
restarting service remotely on NT (1997)
Another Excel Problem (2003)
Database changes (1998)