Re: Deleting Multiple Database Records based on Checkbox

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18996
interpreted = N
texte = The way I do this is as follows:1) Each checkbox is assigned a name corresponding to its index. [SEARCH ....] [founditems] [/founditems] [/SEARCH] 2) Submit Form 3) On the processform page: a) Delete [db=mydatabase.db&neFIELD1data=0] Delete all Records in your database b) Rewrite all records in your database using the append context, but hide the append if the user asks to delete the record [LOOP start=1&end=[NumberOfItems]] [HIDEIF [Interpret][DeleteMe[INDEX]][/Interpret]=yes] [append].......[/append] [/HIDEIF] [/LOOP] >I am currently working on a To Do List for a local Elementary School >Staff. I would like for each teacher to be able to add and delete items >from their To Do List. Here's how I would like the delete feature to >work...for each Item listed a checkbox. They check the ones they want to >delete from the To Do List, then click a button and all of those items >are deleted from the database in one clean sweep. I've searched the >archives, and so far haven't found any past discussion on deleting multiple >database records based on a checkbox....can someone point me in the right >direction please?? > >Here's what I have so far: > > >www.cnetech.com/school/classroom/teachersdesk/ > >username=jsmith >password=jsmith > >Database fields: username, todoitem, priority, deadline > >Thanks in Advance, >Kimberly Wyrick >CNETech Net >_________________________ >Check out www.cnetech.com ! ----------------------------------------------------------------------- Steve Rosenbaum Pop Art L.L.C. http://pop-art.com steve@pop-art.com Networks / Databases / Multimedia7000 SW Hampton St., Suite 124, tel: (503) 968.5957 Tigard, OR 97223-8361 fax: (503) 620.8487 Associated Messages, from the most recent to the oldest:

    
  1. Re: Deleting Multiple Database Records based on Checkbox (Peter Ostry 1998)
  2. Re: Deleting Multiple Database Records based on Checkbox (Kimberly Wyrick 1998)
  3. Re: Deleting Multiple Database Records based on Checkbox (Kenneth Grome 1998)
  4. Re: Deleting Multiple Database Records based on Checkbox (Steve Rosenbaum 1998)
  5. Re: Deleting Multiple Database Records based on Checkbox (Peter Ostry 1998)
  6. Deleting Multiple Database Records based on Checkbox (Kimberly Wyrick 1998)
  7. Re: Deleting Multiple Database Records based on Checkbox (Raymond Hatch 1998)
The way I do this is as follows:1) Each checkbox is assigned a name corresponding to its index. [SEARCH ....] [founditems] [/founditems] [/SEARCH] 2) Submit Form 3) On the processform page: a) Delete [db=mydatabase.db&neFIELD1data=0] Delete all Records in your database b) Rewrite all records in your database using the append context, but hide the append if the user asks to delete the record [LOOP start=1&end=[NumberOfItems]] [HIDEIF [interpret][DeleteMe[INDEX]][/Interpret]=yes] [append].......[/append] [/HIDEIF] [/LOOP] >I am currently working on a To Do List for a local Elementary School >Staff. I would like for each teacher to be able to add and delete items >from their To Do List. Here's how I would like the delete feature to >work...for each Item listed a checkbox. They check the ones they want to >delete from the To Do List, then click a button and all of those items >are deleted from the database in one clean sweep. I've searched the >archives, and so far haven't found any past discussion on deleting multiple >database records based on a checkbox....can someone point me in the right >direction please?? > >Here's what I have so far: > > >www.cnetech.com/school/classroom/teachersdesk/ > >username=jsmith >password=jsmith > >Database fields: username, todoitem, priority, deadline > >Thanks in Advance, >Kimberly Wyrick >CNETech Net >_________________________ >Check out www.cnetech.com ! ----------------------------------------------------------------------- Steve Rosenbaum Pop Art L.L.C. http://pop-art.com steve@pop-art.com Networks / Databases / Multimedia7000 SW Hampton St., Suite 124, tel: (503) 968.5957 Tigard, OR 97223-8361 fax: (503) 620.8487 Steve Rosenbaum

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:

how to check for no value while using [URL] to prevent cr (1999) WebCommerce: Folder organization ? (1997) What port is Email on ? (2000) no global [username] or [password] displayed ... (1997) Verifying both name and password (was: New Problem) (1997) [WebDNA] Speed test: Maxed out Mac mini (2013) [referrer] tag (1997) [searchString] (1997) [WebDNA] WebDNA app (2013) converting tabs (1997) [SHOWIF AND/OR] (1997) categories and subcategories (2004) Re:no [search] with NT (1997) WebCat2 Append problem (B14Macacgi) (1997) Re:Help name our technology! (1997) subscribe (2002) Replace context problem ... (1997) Part Html part WebDNA (1997) different show next (1997) E-Mail Formatting (2000)