[delete] problem
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45063
interpreted = N
texte = Hello Ladies & Gents-I've a site that is used to track dental implant placement. The first page has checkboxes designating teeth that received dental implants (there are 32 teeth). The checkboxes on page 1 are named impl1 to impl32. On the next page, only those teeth that received implants are displayed. There is a [delete] tag on this page, so if one of the checkboxes on page 1 is deselected, that tooth # will be deleted from the database.Here is the code:[hideif [submitted]=T] [loop start=1&end=32] [hideif [formvariables name=impl[index]&exact=T][value][/formvariables]=on] [delete db=caseitems.db&eqpatientiddatarq=[GetCookie PatientID]&eqimpl[index]datarq=on] [/hideif][/loop] [/hideif]The [delete] tag in the [loop] is supposed to delete an item in caseitems.db only if the checkbox hasn't been selected on page 1. Problem is, it's deleting *all* of the found records. The [hideif] is working properly. Can anyone see what I'm missing???Thanks,-Will-------------------------------------------------------------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:
Hello Ladies & Gents-I've a site that is used to track dental implant placement. The first page has checkboxes designating teeth that received dental implants (there are 32 teeth). The checkboxes on page 1 are named impl1 to impl32. On the next page, only those teeth that received implants are displayed. There is a [delete] tag on this page, so if one of the checkboxes on page 1 is deselected, that tooth # will be deleted from the database.Here is the code:[hideif [submitted]=T] [loop start=1&end=32] [hideif [formvariables name=impl[index]&exact=T][value][/formvariables]=on] [delete db=caseitems.db&eqpatientiddatarq=[GetCookie PatientID]&eqimpl[index]datarq=on] [/hideif][/loop] [/hideif]The [delete] tag in the [loop] is supposed to delete an item in caseitems.db only if the checkbox hasn't been selected on page 1. Problem is, it's deleting *all* of the found records. The [hideif] is working properly. Can anyone see what I'm missing???Thanks,-Will-------------------------------------------------------------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/
WJ Starck
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:
Error: Permision deny. Unable to append to 'db=^WebMerchant/Stores.db' .Ignoring [Append] context (2002)
Searching for all records (1998)
[replace] has protection feature like [delete]? (2000)
Country & Ship-to address & other fields ? (1997)
Search context not finding recent entries (1998)
Sorting by date (1997)
WC Database Format (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Q: writefile and uploads. (1998)
breaking & sorting (2000)
Sku numbers (1997)
HEADER AND FOOTER (1997)
YACBQ.....(Yet another checkbox question) (2000)
Server slowing down. (1997)
2003 include path issue (2004)
Mass Mail (2000)
Re:WebCat Talk Arhives... (1998)
shipcost (1997)
Extended [ConvertChars] (1997)
redirect with frames (1997)