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!
This Technical Change History provides a reverse chronological list of WebDNA changes...
WebDNA LibrariesA list of available libraries for WebDNA...
F.A.QA compilation of some user's questions...
WebDNA ModulesA list of the currently available modules...
Tips and TricksA list of user-submitted tips ...
[biotype]BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...
Deletes a folder from your website...
[countwords]The number displayed is the number of words inside the context...
[shell][shell] is a way to use the command line with your webserver...
[founditems][founditems]...
[deletefile]Deleting a file from your website...
[copyfolder]Copy a folder and all its contenton your webspace...