Re: incrementing sku

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21047
interpreted = N
texte = At 11:12 Uhr -0800 16.11.1998, Chirs W wrote:>I made a field named record to give each item >there own specific number other than a sku. >but the question is , does any one now how I could make webcat search this >record field and find the last number >added (or Greatest) and then have add +1 to it when adding a new record ? >something like max+1 or something...Do a search, order it descending by your record field and put max=1 in the search context. This returnes the highest value and you can add 1 to it. Peter++++++++++++++++++++++++++++++++++++++++++++++++ Peter Ostry - Vienna/Austria - www.ostry.com Fon ++43-1-877 74 54 Fax ++43-1-877 74 54-21 ++++++++++++++++++++++++++++++++++++++++++++++++ Associated Messages, from the most recent to the oldest:

    
  1. Re: incrementing sku (Peter Ostry 1998)
At 11:12 Uhr -0800 16.11.1998, Chirs W wrote:>I made a field named record to give each item >there own specific number other than a sku. >but the question is , does any one now how I could make webcat search this >record field and find the last number >added (or Greatest) and then have add +1 to it when adding a new record ? >something like max+1 or something...Do a search, order it descending by your record field and put max=1 in the search context. This returnes the highest value and you can add 1 to it. Peter++++++++++++++++++++++++++++++++++++++++++++++++ Peter Ostry - Vienna/Austria - www.ostry.com Fon ++43-1-877 74 54 Fax ++43-1-877 74 54-21 ++++++++++++++++++++++++++++++++++++++++++++++++ Peter Ostry

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:

Automating a Post Method (2000) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) I have observed and I am gone. (1998) attacment pdf (2001) Searching multiple records for certain info (2000) 2cd pare of eyes. (2001) WebDNA and SQL (2003) NY taxRates.db? (1997) WebDNA Upgrade Problems (2003) [WC 2.1.30] Stack overflow. (2000) Mac: [ListFiles] bug alert (1997) iis 4.0 (1997) [WebDNA] Code to display a RSS feed (2019) PSC recommends what date format yr 2000??? (1997) Can I do these? (1997) PROBLEM (1997) [ShowNext] feature in 2.0 (1997) WebCatalog f2 Installation (1997) Not really WebCat (1997) carriage returns in data (1997)