Re: delete fails

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35508
interpreted = N
texte = 1. You should be using command not action. 2. You should be using remove to remove a lineitem not delete. Delete is used for deleting records in a database not lineitems in a cart file.-RWChristopher Mackay wrote:> Hi, > > I've asked about this before, but no one's even nibbled at it. > > Remove > > This command is embedded in a [lineitems] context. It works great, > most of the time. Inexplicably, it will *sometimes* fails to delete > items from the cart, even though it is precisely the same code in the > same [lineitems] loop that works most of the time! It's failure > doesn't seem to depend on any condition I can spot -- number of items > in the cart, [index] value, etc. Can someone point me to a condition > that might cause this to sporadically fail? > > For what it's worth, this is in Netscape 4.7 on a Mac running OS > 9.0.4. The server's WebSTAR 4.2 under Mac OS 9.0 running WebCat > 3.0.7. Here's the code from the template, minus font tags for > readability (the HTML above was taken from the browser's source): > > [lineitems] > > > href=results.tpl?cart=[cart]&--eqSKUdatarq=[url][sku][/url]>[sku] > > [lookup > db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE] > > > [search > db=admin/related.db&eqR_SKUdatarq=[url][sku][/url]&eqR_CTYPEdatarq=O&R_CATEGORYsumm=T&R_CRANKtype=number&asR_CRANKsort=1][founditems] > [lookup > db=admin/categories.db&lookinfield=C_ID&value=[R_CATEGORY]&returnfield=C_NAME] > > [/founditems][/search] > > > > > [lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][price] > > [lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][format > .[lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY_ACCURACY&returnfield=value]f][math][quantity]*[price][/math][/format] > > href=checkout.tpl?cart=[cart]&action=Delete&index=[lineindex]>Remove > > > [/lineitems] > > -- > > Regards, > > Christopher Mackay, Director of Technical Services > Tantramar Interactive, http://www.tantramar.com/ > Tantramar Publishing, http://www.tantramarpublishing.com/ > phone: 506/364-1097 cell: 364-7659 fax: 536-2409 > > ------------------------------------------------------------- > 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://search.smithmicro.com/-- Robert Wade ====================== CABIN6 Design================================================ |[ //\ ||} || ||\| V| ================================================www.cabin6.com =============== robert@cabin6.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: delete fails (Christopher Mackay 2000)
  2. Re: delete fails (John Butler 2000)
  3. Re: delete fails (John Butler 2000)
  4. Re: delete fails (ShrPAUL1@aol.com 2000)
  5. Re: delete fails (WebDNA Support 2000)
  6. Re: delete fails (Robert Wade 2000)
  7. delete fails (Christopher Mackay 2000)
1. You should be using command not action. 2. You should be using remove to remove a lineitem not delete. Delete is used for deleting records in a database not lineitems in a cart file.-RWChristopher Mackay wrote:> Hi, > > I've asked about this before, but no one's even nibbled at it. > > Remove > > This command is embedded in a [lineitems] context. It works great, > most of the time. Inexplicably, it will *sometimes* fails to delete > items from the cart, even though it is precisely the same code in the > same [lineitems] loop that works most of the time! It's failure > doesn't seem to depend on any condition I can spot -- number of items > in the cart, [index] value, etc. Can someone point me to a condition > that might cause this to sporadically fail? > > For what it's worth, this is in Netscape 4.7 on a Mac running OS > 9.0.4. The server's WebSTAR 4.2 under Mac OS 9.0 running WebCat > 3.0.7. Here's the code from the template, minus font tags for > readability (the HTML above was taken from the browser's source): > > [lineitems] > > > href=results.tpl?cart=[cart]&--eqSKUdatarq=[url][sku][/url]>[sku] > > [lookup > db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE] > > > [search > db=admin/related.db&eqR_SKUdatarq=[url][sku][/url]&eqR_CTYPEdatarq=O&R_CATEGORYsumm=T&R_CRANKtype=number&asR_CRANKsort=1][founditems] > [lookup > db=admin/categories.db&lookinfield=C_ID&value=[R_CATEGORY]&returnfield=C_NAME] > > [/founditems][/search] > > > > > [lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][price] > > [lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][format > .[lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY_ACCURACY&returnfield=value]f][math][quantity]*[price][/math][/format] > > href=checkout.tpl?cart=[cart]&action=Delete&index=[lineindex]>Remove > > > [/lineitems] > > -- > > Regards, > > Christopher Mackay, Director of Technical Services > Tantramar Interactive, http://www.tantramar.com/ > Tantramar Publishing, http://www.tantramarpublishing.com/ > phone: 506/364-1097 cell: 364-7659 fax: 536-2409 > > ------------------------------------------------------------- > 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://search.smithmicro.com/-- Robert Wade ====================== CABIN6 Design================================================ |[ //\ ||} || ||\| V| ================================================www.cabin6.com =============== robert@cabin6.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://search.smithmicro.com/ Robert Wade

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:

Triggers (2001) [BoldWords] WebCat.acgib15Mac (1997) Strange error (2000) URGENT: WebDNA Server Not Running (2003) Another IfThenElse question.. (2003) Emailer on NT not working. (1999) cookies (2004) Unexpected error (1997) Before I Can Begin . . . (1998) HomePage Caution (1997) 4.51 Triggers (2003) Field Problem (2000) Webcatalog 4.0 - Storebuilder (2000) grep / [middle] help SOLVED (2003) WebCatalog can't find database (1997) admin:admin won't work for login:password ! (1999) ReturnRaw (1999) can WC render sites out? (1997) access denied problem (1997) Summing fields (1997)