numero = 274
Take caution when removing multiple items. As you remove items, the index numbering changes. When you remove item number 2, the subsequent items move up one. For this reason, you need to figure out a way to adjust the index number. Decrement the index each time something's deleted, such as the following:
(In this example, in the incoming form the cart items each have a delete checkbox named kill_[index]. Note that in a math context, you do not need the square brackets within the expression.)[math show=f]adjustby=0[/math][formvariables name=kill_&exact=F][math show=f]deleteitemnumber=[getchars start=6][name][/getchars]+adjustby[/math][removelineitem file=ShoppingCarts/[cart]&index=[deleteitemnumber]][math show=f]adjustby=adjustby-1[/math][/formvariables][removelineitem cart=cartID&index=3]
Take caution when removing multiple items. As you remove items, the index numbering changes. When you remove item number 2, the subsequent items move up one. For this reason, you need to figure out a way to adjust the index number. Decrement the index each time something's deleted, such as the following:
[math show=f]adjustby=0[/math]
[formvariables name=kill_&exact=F]
[math show=f]deleteitemnumber=[getchars
start=6][name][/getchars]+adjustby[/math]
[removelineitem file=ShoppingCarts/[cart]&index=[deleteitemnumber]]
[math show=f]adjustby=adjustby-1[/math]
[/formvariables]
DOWNLOAD WEBDNA NOW!
WebDNA applications...
WebDNA reference...
WebDNA ModulesA list of the currently available modules...
WebDNA LibrariesA list of available libraries for WebDNA...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
Technical Change HistoryThis Technical Change History provides a reverse chronological list of WebDNA changes...
This context displays HTML or executes WebDNA conditionally only if the expression is true...
[uppercase]Changes all lower case letters to upper case...
[listfiles]When listing files...
[formvariables]Lists all the form variables and parameters passed to the current page...
[tcpconnect]A powerful feature to connect to a TCP port of another computer on the Internet...
[interpret]Interprets the enclosed [xxx] values using the WebDNA interpreter...