Jon and Darryl,

I did miss Jon's earlier post.  I have strong reservations about that
technique, though, especially if it leads to a hard delete:
* If the user truly wants to delete a record he must perform *two*
actions.
* Users see so many confirmation dialogs that they habitually hit OK or
Enter.

But I will add it to my list:
* Present a confirmation dialog prior to deletion.

-David (who is about to hit the sack)

On Mon, 18 Dec 2000 16:34:06 +1000 Darryl Lyons
<[EMAIL PROTECTED]> writes:
> That's the system I use.. I think it works pretty well, and can be 
> used
> generically across your entire application.
> 
> -----Original Message-----
> From: Jon Hall [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 4:34 PM
> To: CF-Talk
> Subject: Re: Undo Delete
> 
> 
> David you must have missed my post.
> <a href="action.cfm" onclick="return confirm('Are you sure you want 
> to
> delete the record? If so click OK, otherwise Cancel.')>Delete</a>
> 
> jon
> ----- Original Message -----
> From: "David Shadovitz" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, December 18, 2000 12:17 AM
> Subject: Re: Undo Delete
> 
> 
> > Thanks for all of the replies to my "Undo Delete" post.  Here's a 
> summary
> > (some items contradict others).  Of course, further comments are 
> welcome.
> >
> > * Do a "soft" rather than a "hard" delete.  That is, flag the data 
> as
> > unavailable but leave it in the database.
> > * Timestamp the soft deletion.
> > * Charge lots of money to restore it.  (I like this one.)
> > * Change a soft delete to a hard delete after some time has 
> passed.
> > * Migrate the soft deletes off to another table.
> > * Use a view to hide the soft deletes.
> > * Use a "status" flag to allow for states other than 
> valid/invalid.
> > * Display an "Undo" button for immediate restoration.  None of 
> that "Are
> > you SURE you want to delete this record?")
> >
> > -David
> >
> > > -----Original Message-----
> > > From: David Shadovitz [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, December 16, 2000 6:52 PM
> > > To: CF-Talk
> > > Subject: OT: Undo Delete
> > >
> > > I'm thinking of changing my typical "Delete" button so that
> > > it doesn't actually delete a record, but rather flags it as a
> > > record to be ignored.  I'd also record the date/time that it
> > > was flagged.  That way I can offer the user the opportunity
> > > to Undo the Delete.  I'll probably schedule a job to delete
> > > all records which have been flagged for more than 1 day.
> > >
> > > Hey, I've been influenced by Jef Raskin's "The Humane
> > > Interface" and Alan Cooper's "The Inmates are Running
> > > the Asylum."
> > >
> > > Any thoughts?
> > >
> > > Here's another use for flagging records:  Our db tables
> > > which contain scientific data contain an "approved" field,
> > > whose default value is "false".  After data is inserted into
> > > the database, an analyst checks it out, and then we toggle
> > > the flag to "true".  Of course, our non-admin canned queries
> > > all include "WHERE approved = true".
> > >
> > > -David
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to