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:

WebCatb15 Mac CGI -- [purchase] (1997) pc (1997) Problem (1997) WebDNA to Apache RewriteMap (2005) WebDNA on Intel Mac? (2006) [WebDNA] BBEdit WebDNA Configuration.plist (Language Module) (2013) Banners and sort of random display (1997) [WriteFile] problems (1997) Multiple FlushDatabases (2000) RAM variables (1997) When to use [convertchars] ?!?!? (2000) completed orders database (1997) WebCat for mass emailings (1997) nude virgin confusion?? (2004) Need relative path explanation (1997) sort problems....bug or brain fart? (1997) WebDNA 5.0 Questions (2003) Searching help needed (1998) Whats wrong with this code? (1998) Emailer help....! (1997)