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:
Re: [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
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...