Re: [removelineitem] not quite working inside [formvariables] loop

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 40202
interpreted = N
texte = Yup. That was it. Here is the modified loop if anyone is interested.[math show=f]itemToRemove=0[/math] [formvariables name=remove_&exact=f] [math show=f]itemToRemove=[value][/math] [showif [index]>1][math show=f]itemToRemove=itemToRemove-1[/math][/showif] [removelineitem cart=[cart]&index=[itemToRemove]] [/formvariables] On 11/20/01 5:06 PM, Charles Kline wrote:> Still getting the same result. Here is a thought. Could it be that as the > items are removed the lineindex of the items changes so that if I am > removing say lineitems 3 and 6 > > When 3 is removed 6 becomes 5? I will play with this using some math on the > lineindex if formvariables loops beyond 1. > > Keep you all updated. > > - ck > > On 11/20/01 4:54 PM, John Peacock wrote: > >> Charles Kline wrote: >>> >>> [lineitems] >>> Select to remove: > >> This should work much better -> remove_[lineindex] >> >>> value=[lineindex]> >>> [/lineitems] >>> >>> >>> >> >> John > > > > ------------------------------------------------------------- > 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/------------------------------------------------------------- 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: [removelineitem] not quite working inside [formvariables] loop (Charles Kline 2001)
  2. Re: [removelineitem] not quite working inside [formvariables] loop (Charles Kline 2001)
  3. Re: [removelineitem] not quite working inside [formvariables] loop (John Peacock 2001)
  4. [removelineitem] not quite working inside [formvariables] loop (Charles Kline 2001)
Yup. That was it. Here is the modified loop if anyone is interested.[math show=f]itemToRemove=0[/math] [formvariables name=remove_&exact=f] [math show=f]itemToRemove=[value][/math] [showif [index]>1][math show=f]itemToRemove=itemToRemove-1[/math][/showif] [removelineitem cart=[cart]&index=[itemToRemove]] [/formvariables] On 11/20/01 5:06 PM, Charles Kline wrote:> Still getting the same result. Here is a thought. Could it be that as the > items are removed the lineindex of the items changes so that if I am > removing say lineitems 3 and 6 > > When 3 is removed 6 becomes 5? I will play with this using some math on the > lineindex if formvariables loops beyond 1. > > Keep you all updated. > > - ck > > On 11/20/01 4:54 PM, John Peacock wrote: > >> Charles Kline wrote: >>> >>> [lineitems] >>> Select to remove: > >> This should work much better -> remove_[lineindex] >> >>> value=[lineindex]> >>> [/lineitems] >>> >>> >>> >> >> John > > > > ------------------------------------------------------------- > 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/------------------------------------------------------------- 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/ Charles Kline

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:

Netscape 3.01 can't see db in form (was problems problemsproblems) (1997) WebCommerce: Folder organization ? (1997) unable to launch acgi in WebCat (1997) RE: A zip code search (1998) Deleting Orders (1997) GoLive CyberStudio 1.0.1 (1997) [WebDNA] problems sorting when using multiple words in the search (2011) Javascript and Search Results (1998) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) price carry over (1997) ConvertChars request (1999) hidden databases (2000) Help! WebCat2 bug (1997) WebCat2: Master Counter snippet (1997) Re:[input] context (1999) Summing fields (1997) Sorting by highest number of matches unique to a field (2003) RE: Languages (1997) Two submit buttons ? (1997) synching databases on multiple servers (1997)