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:
Trouble with [Math] (1998)
2nd WebCatalog2 Feature Request (1996)
[protect admin] (1997)
Problem using # in my field names ... (1998)
Mozilla/4. and Browser Info.txt (1997)
HELP WITH DATES (1997)
Text limits in NT version? (1997)
[WebDNA] WebDNA Start-up Error (2012)
Practical Uses (2003)
PIXO (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
losing serial number - help! (1998)
complete escaped ascii chart - importing and exporting files question (1998)
OT: one to one live chat (1999)
Quantity/price formula (1998)
[WebDNA] listcookies v Windows 7 (2011)
Erotic Sites (1997)
ampersand XHTML in search (2006)
verify online (1997)
transferring values (1998)