Best way to Confirm a Delete

I need some advice here. I have an application that will be
used by large groups of people. This application allows Super
Administrators (set in a database) to delete a group. A group has
an administrator, a supervisor and students.
Since it would be A LOT of work to re-enter a group, I want
to make it CONFIRM that the Super Admin wants to really delete the
group in question. I was thinking of a javascript confirm, but I am
not sure how to mix coldfusion with javascript AND people turn off
javascript - what is the best way to do this?
Suggestions?

Instead of running a delete you could create a column in your
table named 'IsActive' and update that from a default of 1 (
true) to 0 (
false). Then in your application you could only look at rows
in the table where IsActive = 1. In this way it appears to the user
as a delete occured but if they flub and call you up in a panic,
you can switch the false back to true and viola, its like it never
happened.
As for the meat of your question...you could create a form
and have that post to a page that says "Are you sure you wish to
delete this record?". You could pass the form variables, like row
ID, to a hidden form field on this page. Then submit this confirm
form page to your code to remove the row.
I would caution this approach because if you pass your row ID
as a form field there is nothing to stop the user from changing
that row ID locally and submitting a different value, perhaps
removing something they do not have rights to remove.
This may or may not be an isue with your application. If your
application allows the user to delete any row then it is of no
concern really. They won't edit the HTML locally to change a row id
and submit if they have an interface already created which does the
same thing.
However if it is a problem for users to delete other rows you
can minimize the risk by passing the ID encrypted (Look at
Encrypt() and Decrypt() functions). Additionally updating your row
on a ID with a UUID datatype makes it even more difficult to edit.
For example, it's easy to change:
<input type="hidden" name="RowID" value="3">
to
<input type="hidden" name="RowID" value="1">
than it is to change:
<input type="hidden" name="RowID"
value="989FF13D-C6EE-0CCF-2E7065237D5FA12C">
to something meaningful.
I hope I didn't add confusion to your problem however I think
its important to create applications which are secure by design. If
your security is too tight you can always loosen the reigns later
which is better than getting caught with your pants down.

Similar Messages

  • Best way to transfer and delete all project related files?

    I want to work on a project while at school and home.
    1. Is Media Manager the best way to transfer everything I need from one mac to another?
    2. Is there an automated way to delete all of my files from capture scratch, etc. on the school mac when I am done transferring everything to my disk? I would like to make sure no one else can access those files, though I do not want to delete anyone else's work.
    Thanks.

    Go get yourself a big, fast portable firewire drive. Plug it into the school computer. (make sure it is properly formatted first!!!) Navigate to your project's capture scratch folder. Drag the folder to your hard drive. When it's done copying, open as many files as it takes to satisfy you that it has copied successfully.
    Then drag any photos, music, narration etc files to the hard drive. Finally, copy your fcp project file to the hard drive.
    When you're SURE you've got everything successfully, un mount the firewire drive. Then do all the above again, but this time drag the files on the school computer to the trash and empty the trash.
    All this assumes no other twit captured into your folder, but hey what the heck, live and learn.

  • How do I delete music from my iPhone and what is the best way to add and delete music?

    How do I delete music from my iPhone and what is the best was to add and delete music to the iPhone?

    See Here...
    iPhone User Guide
    and here
    http://www.apple.com/support/iphone/syncing/

  • What is the best way / program to retrieve deleted files / folders?

    HP Pavilion g6 1b79dx  Notebook PC
    I accidentally deleted (permanently) a folder containing photos / pictures.
    Any suggestions on how / what program is safe to use for retrieval?

    Hi,
    You could try a third party file retrieval software such as the free option on the link below.
    http://www.piriform.com/recuva
    You stand the best chance of retrieving this file by not doing anything on the PC which has had the file deleted so install the above application on a USB drive using another PC and then use this to see if you can recover the deleted files.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Best way to add, modify, delete, query data in XML file

    I want to store the data of my application in XML files (not in Databases).
    I had search for clear responses in this forum but none of them satisfied me.
    What is the best approach to do that without third party products, just with Sun XML related apis..
    thanks!

    - if you manipulate your data with java beans, you can benefit from XMLEncoder / XMLDecoder classes,
    - else simply persist your DOM objects in files...
    all this can be achieved with J2SE 1.4

  • Hi, Please help. I accidentally deleted my entire Iphoto Library. I used Stellar Phoenix 4.1 and I do believe that I recovered all. I recovered to "My Passport" for Mac External HD. Files are all mixed up, best way to import back?

    Hi, a couple days ago, I was orgainizing my Iphoto libray. Then, I thought that I was emptying my trash on Iphoto. (the ones I deleted when orgainizing) after hitting are you sure button, I realized that it was 209 files with 18,000+ photos. So I frantically stopped iphoto from "saving critical information" thinking If I left it open I could copy all my files over to (I beleive somewhere in finder under pictures?) I thought, but it most have been under the applications folder. Well this is where I really messed up. So after saving every file to that section, and everything was normal again on iphoto, I decided to make space and delete them from where I put them. So instead of selecting each file indivually, I used the select ALL button. Only to find that it deleted EVERYTHING. Iphoto (the file) was apparently at the bottom of the page along with Nikon Transfer, Lightroom 2 and god knows what else. That is when I found a data recovery software program (Stellar Phoenix 4.1mac) 17 hours later it found 159GB. I read enough to know that I HAD to go and buy an external HD. (even though I already own Time Capsule, but I never hooked it up ) was confused about if I could actually use that for this matter so, I just went and bought My Passport an external HD for Mac. Plugged it in, and recovered what looks like all my files (hopefully) did also read enough that I knew NOT to use my computer after this occured.
    Now that you all know how I got into this mess, I would like to know the best way to import the files back? Ok I know this sounds easy, but all the files are scattered everywhere on the HD. Is there a way to put them back on my Mac Book Pro that would possibly put them in some kind of order? Date? Image file number? Anything? 18,000 photos to reorgainze is going to be brutal. I can reinstall Lightroom 2, if i can locate where I put the disk. And I also have CS5. Also wondering if the quality of the photo was affected?  I did get them back, so I am not complaining but any assistance would be greatly appreciated!
    Will be turning on Time Machine and hooking up Time Capsule as well. Should I also use my new HD along with capsule? Any advice on that matter would also be greatly appreciated as well!!!!!
    Thanks, Michelle

    There is an iPhoto community forum if you are at all interested:
    https://discussions.apple.com/community/ilife/iphoto

  • Best way to merge multiple iPhoto libraries from several external hard drives into one, while deleting duplicates?

    Problem: My wife and I both have MacBook Pros (MBPs).  We take a lot of pictures and import them into iPhoto.  When the storage capacity of our MBPs gets full, I have been moving our iPhoto libraries into external hard drives, which are now multiple (3 or 4).  The problem I now realize we have been making, is that once the iPhoto libraries were copied onto the external hard drives, we were only deleting about half of the photos in each iPhoto library remaining in our MBPs (because we wanted to keep some of the important ones in our hard drives).  Once the storage capacities of our MBPs got full again, I would repeat the whole process again and again.  In essence I now have several large iPhoto libraries (each about 80 GB), each with multiple duplicate photos, divided among several external hard drives.  And I am running out of space on my hard drive again.  So what is the best way to:
    a)  merge all of these iPhoto libraries into just one, while simultaneously being able to delete all the duplicates?  (or would you not recommend this?)
    b)  prevent this from happening again?
    Thanks.  BTW I am using OS X Mountain Lion 10.8.5 and iPhoto 8.1.2 (2009)

    If you have Aperture 3.3 or later and iPhoto 9.3 or later you can merge libraries with Aperture.
    Otherwise the only way to merge Libraries is with the paid ($30) version of iPhoto Library Manager
    The Library Manager app can be set avoid duplicates.

  • Urchased a new desktop pc and I want to move itunes and all files including IPAD apps to my new computer and delete off my old one.  What is the best way to do this?

    I just purchased a new desktop PC and want to move Itunes and all my Ipad Apps to new computer, and delete off my old computer.  What is the best way to do this?

    Hi,
    See Here for Transferring your iTunes Library
    http://support.apple.com/kb/HT4527
    Make sure Everything is working to your satisfaction Before Deleting anything from your old computer...
    Cheers,

  • Best way to delete large number of records but not interfere with tlog backups on a schedule

    Ive inherited a system with multiple databases and there are db and tlog backups that run on schedules.  There is a list of tables that need a lot of records purged from them.  What would be a good approach to use for deleting the old records?
    Ive been digging through old posts, reading best practices etc, but still not sure the best way to attack it.
    Approach #1
    A one-time delete that did everything.  Delete all the old records, in batches of say 50,000 at a time.
    After each run through all the tables for that DB, execute a tlog backup.
    Approach #2
    Create a job that does a similar process as above, except dont loop.  Only do the batch once.  Have the job scheduled to start say on the half hour, assuming the tlog backups run every hour.
    Note:
    Some of these (well, most) are going to have relations on them.

    Hi shiftbit,
    According to your description, in my opinion, the type of this question is changed to discussion. It will be better and 
    more experts will focus on this issue and assist you. When delete large number of records from tables, you can use bulk deletions that it would not make the transaction log growing and runing out of disk space. You can
    take the table offline for maintenance, a complete reorganization is always best because it does the delete and places the table back into a pristine state. 
    For more information about deleting a large number of records without affecting the transaction log.
    http://www.virtualobjectives.com.au/sqlserver/deleting_records_from_a_large_table.htm
    Hope it can help.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • What is the best way to delete dynamically-generated symbols from another symbol?

    in the onClick handler for 1 symbol, I have:
    var sandwhichQty1 = sym.createChildSymbol("sandQty1", "Stage");
    another symbol inside sandQty1 has the onClick method:
    this.deleteSymbol();
    which works fine, deleting sandQty1. I'd like to delete it, and others, from another button, in the circumstance where users don't close them this way.
    I notice that id and class are dynamically assigned to the child symbol, which makes it hard for me.
    any ideas?

    Hi, I did it in this way, and functions well; maybe this is not the best way, but worked for me. Obviously this code is based on the elainafineell's correct solution.
    This is my scenario:
    In a Trigger @ xxxxms there is that:
    var i = 1;
    $.each(results, function(index, element)
         var s = sym.createChildSymbol("mySymbol", "someContainer");
         // some code here
         // Creating the variable that save my new instance of mySymbol
         sym.setVariable("var_id"+i, s);
         i++;
    // a global var, take care with the name
    numOfInstances = i;
    Then, in a click action of some button, symbol, anything that support an action, I code this:
    sym.eraseSymInstance();
    And, in the creationComplete, I code the function like this:
    sym.eraseSymInstance = function()
              for(var i = 1; i <= numOfInstances; i++)
                             var s = sym.getVariable("var_id"+i);
                             s.deleteSymbol();
    For me function well.
    I hope this can be usefull for somebody else.

  • What's the best way to delete 2.4 million of records from table?

    We are having two tables one is production one and another is temp table which data we want to insert into production table. temp table having 2.5 million of records and on the other side production table is having billions of records. the thing which we want to do just simple delete already existed records from production table and then insert the remaining records from temp to production table.
    Can anyone guide what's the best way to do this?
    Thanks,
    Waheed.

    Waheed Azhar wrote:
    production table is live and data is appending in this table on random basis. if i go insert data from temp to prod table a pk voilation exception occured bcoz already a record is exist in prod table which we are going to insert from temp to prod
    If you really just want to insert the records and don't want to update the matching ones and you're already on 10g you could use the "DML error logging" facility of the INSERT command, which would log all failed records but succeeds for the remaining ones.
    You can create a suitable exception table using the DBMS_ERRLOG.CREATE_ERROR_LOG procedure and then use the "LOG ERRORS INTO" clause of the INSERT command. Note that you can't use the "direct-path" insert mode (APPEND hint) if you expect to encounter UNIQUE CONSTRAINT violations, because this can't be logged and cause the direct-path insert to fail. Since this is a "live" table you probably don't want to use the direct-path insert anyway.
    See the manuals for more information: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9014.htm#BGBEIACB
    Sample taken from 10g manuals:
    CREATE TABLE raises (emp_id NUMBER, sal NUMBER
       CONSTRAINT check_sal CHECK(sal > 8000));
    EXECUTE DBMS_ERRLOG.CREATE_ERROR_LOG('raises', 'errlog');
    INSERT INTO raises
       SELECT employee_id, salary*1.1 FROM employees
       WHERE commission_pct > .2
       LOG ERRORS INTO errlog ('my_bad') REJECT LIMIT 10;
    SELECT ORA_ERR_MESG$, ORA_ERR_TAG$, emp_id, sal FROM errlog;
    ORA_ERR_MESG$               ORA_ERR_TAG$         EMP_ID SAL
    ORA-02290: check constraint my_bad               161    7700
    (HR.SYS_C004266) violatedIf the number of rows in the temp table is not too large and you have a suitable index on the large table for the lookup you could also try to use a NOT EXISTS clause in the insert command:
    INSERT INTO <large_table>
    SELECT ...
    FROM TEMP A
    WHERE NOT EXISTS (
    SELECT NULL
    FROM <large_table> B
    WHERE B.<lookup> = A.<key>
    );But you need to check the execution plan, because a hash join using a full table scan on the <large_table> is probably something you want to avoid.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • What is the best way to automatically delete user profiles after x days of inactivity (school lab environment)?

    I work at a school where we have multiple Mac Carts that have 30 MacBooks per cart. We image the macs every summer to delete the older user profiles but we are looking for way to possible have this done automatically through out the year to help with HDD space. What is the best way to delete user profiles after...say 180 days.... of inactivity automatically? I am open to login hooks, bash scripts, etc. Anything to get the job done. Thanks for any help or advice.

    A search here turned up this post Deleting inactive users
    It appears that the script posted will do as advertised though I would test it out on your systems and under your conditions to see if it does do what you need.
    regards
    Message was edited by: Frank Caggiano - That script looks for users over 21 days. To look for ones over 180 days change the 21 to 180 in the find command.

  • Time Machine Backup is Full, best way to delete?

    Hi,
    I'm stuck in this problem. Few days ago my TM told me that it didn't have the required space to make a backup which I though was odd because it has always automatically removed older backups to make room for new ones. But not this time.
    Which means I need to manually delete some backups. What is the best way to do it?
    I marked some of them and pressed command+backspace to delete them put they ended up in my trash so when I tried to empty my trash it tells me I have 1 306 229 objects to delete and this is probably gonna take weeks.
    Can someone help me with this?

    Time Machine should normally remove old items from the backup to make room for new. If it is unable to do that, it could be because your backup drive is not large enough for what you're backing up. TM needs a minimum of 2-3 times more space for the backups as what is being backed up. There could also be something wrong with your backup, in which case you could visit the [Time Machine Troubleshooting guide|http://discussions.apple.com/thread.jspa?threadID=2057525].
    Unfortunately, since you deleted stuff from your Time Machine backup in the Finder (from the sounds of it), it's too late for any troubleshooting. You have destroyed your backup, and will have to erase the backup drive and start from scratch.

  • Whats the best way to check table before form deletion or update ?

    Hi, I have a func_staff table made up of a composite key - func_no and staff_id. I have a form where the datablock references this table.
    I need to be able to check that before a func_no and staff_id combination on the form are written to the database that that combination does not already exist in the table.
    What would be the code for that ? I've tried stuff like IF EXIST statements and even a select statement but I totally worded it it wrongly.
    To DELETE an entry in that same table, would the best way to be create an LOV for both func_no and staff_id, the problem with that would be if a user selected a combination that does not exist ? Could I create a combined LOV that would populate each field ?? (this way I could be 100% sure that the selected combination is valid)
    Thanks Peeps.

    hi,
    you can try and use the count(*), before deleting and updating
    lets say
    select count(*)
    into l_count
    from table_name
    where column1 = :block.column1
    and column2 = :block.column2;
    if l_count <> 1
    then
    insert into..........
    else
    show error message;
    raise form trigger failure;
    end if;
    similarly u can use l_count before deleting.
    regards,
    Mayank

  • Best way to delete transcoded and proxy media?

    Hello,
    I am trying to free up some disc space and am curious what is the best way to delete transcoded and proxy media in fcpx?  I know I can open up a library bundle and delete the folder, but is this safe?  There must be a better option...
    Thanks,
    Austin

    Austin Samuel wrote:
    Hello,
    I am trying to free up some disc space and am curious what is the best way to delete transcoded and proxy media in fcpx?  I know I can open up a library bundle and delete the folder, but is this safe?  There must be a better option...
    Thanks,
    Austin
    I don't know of any other way.
    Proxy and Transcoded media can always be re-generated if the original files are in place.
    If this question refers to your system drive then a BIG suggestion is to aquire a fast dedicated media drive.
    Al

Maybe you are looking for

  • EJB-QL "Outer Join"

    I have a very normal query to perform but I'm not sure how to do it in EJB-QL. I have 3 tables I need to join. 1)     Person table 2)     Project Member table 3)     Project Member Role table You can extrapolate what's on each table pretty easily bas

  • Creating Sql Server 2005 External Data Source

    Hey guys, I'm trying to connect to an SQL Server 2005 database directly from the BAM external Data Source. I have the driver name and the connection string, login and password. I also have the driver, but BAM doesn't seem to have a "drivers" folder.

  • Procuring complex services in SRM

    Hi, We are studying the possibilty of using SRM for complex services procurement. By complex services we mean hierachical structures, where you can have items and lines, that act like "sub-items" of the major service. In a bid inviation, for instance

  • Lenovo K900 HSPA+ not working

    I have just bought Lenovo K900. Everything is fine with the exception of the internet speed. Signals in my area is good and the phone shows all bars. However max speed I get is 0.36 Mbps. If I put my simcard in another handset, I get up to 5Mbps. I t

  • Satellite A80: Express Media Player to play MP3?

    The Express Media Player of my Satellite A80 can only play standard Audio CD formats. Is there a new version of the EMP available that allows to also play MP3 format either from CD or DVD? The EMP is really an excellent tool and MP3 is nowadays a ver