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:

Multiple fields on 1 input (1997) Emailer (1997) Frames and WebCat (1997) Register First (2000) A little help on e-mail (HELP!!! :-) ) (1998) Extended [ConvertChars] (1997) RE: strip .0 off off IPaddress (1999) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) Add to a field (1998) Searching in multiple databases from a form (1999) The Archives? (1999) (no subject) (1997) Re:no [search] with NT (1997) TCP Connect/send and CGI (2003) [subtotal] and others (1997) Practice runs ? (1997) emailer error 103 part ii (1997) [WebDNA] db admin tool (2008) Country & Ship-to address & other fields ? (1997) [SHOWIF] (1997)