Re: [delete] problem

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45065
interpreted = N
texte = Try this .. Set the check boxes as follows: (change the impl1 and impl_delete1 here from 1-32)Then on the following page.[formvariables name=impl_delete&exact=F] [delete db=caseitems.db&eqpatientiddatarq=[GetCookie PatientID]&eq[value]datarq=on] [/formvariables] The formvariables will only loop through the Alain > 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/ ------------------------------------------------------------- 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: [delete] problem (Rob Marquardt 2002)
  2. Re: [delete] problem (Alain Russell 2002)
  3. Re: [delete] problem (WJ Starck 2002)
  4. [delete] problem (WJ Starck 2002)
  5. Re: [delete] problem (Kenneth Grome 1997)
  6. Re: [delete] problem (Glenn Davis 1997)
  7. Re: [delete] problem (Glenn Davis 1997)
  8. Re: [delete] problem (Grant Hulbert 1997)
  9. Re: [delete] problem (Glenn Davis 1997)
  10. Re: [delete] problem (Grant Hulbert 1997)
  11. [delete] problem (Glenn Davis 1997)
  12. [delete] problem (Glenn Davis 1997)
Try this .. Set the check boxes as follows: (change the impl1 and impl_delete1 here from 1-32)Then on the following page.[formvariables name=impl_delete&exact=F] [delete db=caseitems.db&eqpatientiddatarq=[GetCookie PatientID]&eq[value]datarq=on] [/formvariables] The formvariables will only loop through the Alain > 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/ ------------------------------------------------------------- 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/ Alain Russell

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:

PSC recommends what date format yr 2000??? (1997) Read and weep (2003) The IBC root beer has arrived! (1997) Stopping bad HTML propagation ? (1997) [OT] JS snippet needed (2006) AppleScript question (1997) unsubscribe (2000) [WebDNA] HTTP Streaming -- impossible? (2010) Conveting Characters to Graphics (1997) WebCatalog [FoundItems] Problem - LONG - (1997) Authenticate (1997) lockup db's (2000) [text] variable assignment within [search] context (2000) Round up prices (2000) IE Cache Problems... (1999) Execute Applescript (1997) This list needs a digest: rant, rave... (1997) OT: BulkRegister.com (2002) [OT] MS IE from H3LL (2008) Catalogs and W* (1996)