Re: New Cart No. on same page

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47331
interpreted = N
texte = I've had just this problem before which is why I usually don't use it unless I absolutely need to and can't use [cart].-- Matthew C. Bohne Web Developer Sandusky Register 314 W. Market St. Sandusky, OH 44870 419-625-5500 ext. 253 matthewbohne@sanduskyregister.com http://www.sanduskyregister.comOn Friday, January 31, 2003 2:27 PM, Alex McCombie wrote: >On 1/31/03 12:40 PM, Gary Krockover >wrote: > >> A self incrementing sku? >> >> Someone provided this a while back to me and I've long had it in my snippets >> list, hopefully it helps you: >> >> [math]Newsku=([Search >> db=database.db&neskudatarq=[blank]&deskusort=1&skutype=num&max=1][FoundItems >> ][sku][/FoundItems][/Search]+1)[/math] > >Just be careful with this in that there can only be one access to this 'at a >time'. > >If this weren't carefully monitored, 2 identical skus could be written back >to the db because of the delay from receiving and appending the db with the >new incremented sku. > >Based on your application you may not have that problem but its worth >mentioning. > > >Alex > > > >Alex J McCombie New World Media >Chief Information Officer Drawer 607 >800/724.8973 Fair Haven, NY 13064 >Alex@NewWorldMedia.com >http://OurClients.com > >Interface Designer WebDNA Programmer Database >Designer > > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/ >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: New Cart No. on same page (Matthew Bohne 2003)
  2. Re: New Cart No. on same page (Alex McCombie 2003)
  3. Re: New Cart No. on same page (Gary Krockover 2003)
  4. New Cart No. on same page (Matthew Bohne 2003)
I've had just this problem before which is why I usually don't use it unless I absolutely need to and can't use [cart].-- Matthew C. Bohne Web Developer Sandusky Register 314 W. Market St. Sandusky, OH 44870 419-625-5500 ext. 253 matthewbohne@sanduskyregister.com http://www.sanduskyregister.comOn Friday, January 31, 2003 2:27 PM, Alex McCombie wrote: >On 1/31/03 12:40 PM, Gary Krockover >wrote: > >> A self incrementing sku? >> >> Someone provided this a while back to me and I've long had it in my snippets >> list, hopefully it helps you: >> >> [math]Newsku=([Search >> db=database.db&neskudatarq=[blank]&deskusort=1&skutype=num&max=1][FoundItems >> ][sku][/FoundItems][/Search]+1)[/math] > >Just be careful with this in that there can only be one access to this 'at a >time'. > >If this weren't carefully monitored, 2 identical skus could be written back >to the db because of the delay from receiving and appending the db with the >new incremented sku. > >Based on your application you may not have that problem but its worth >mentioning. > > >Alex > > > >Alex J McCombie New World Media >Chief Information Officer Drawer 607 >800/724.8973 Fair Haven, NY 13064 >Alex@NewWorldMedia.com >http://OurClients.com > >Interface Designer WebDNA Programmer Database >Designer > > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/ >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Matthew Bohne

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:

Carts & Refering URLs (1997) WebCat2: Formulas.db question (1997) RE: IIS4b2 and WebCatalog b19 (1997) Version f1 status (1997) Dumb Question about Docs (1997) problems with 2 tags (1997) Mac Vs WindowsNT (1997) webcatalog [date] bug (1999) Exclamation point (1997) Fun with Dates (syntax) (2002) WebCat & cookies (1998) Getting Emailer to send mail (1997) Electronic delivery (2006) ShipCost formula (for weight *and* quantities)? (1998) Loss in Form (1998) [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012) Using [showif] (2000) Re:webCatalog and Stocks (1998) in header include files? (1998) Signal Raised Error (1997)