Confirmation message deletion JS for an icon of the Recycle Bin in interactive report?

Hi all
I made an icon of trash custom in IR for the removal of each line. Now I want to display a message requesting confirmation of deletion, I know how to do it for a button. Given that mine is not a button, how can I do this?

Here is a screenshot of the page APEX.

[http://www.imagetoo.com/images/apexblb.png]

Thanks and greetings
Umer

Hello

In my app very old, I used this solution (an old man), I use a little more complicated now.
Example:

(1) in the URL of the link, I added:

JavaScript: if (confirm ("are you sure you want to delete this file?'")) {redirect ('f? p = & APP_ID.: 12: & SESSION.: D ELETE: &. DEBUG: P12_ID_DELETE: #ID #');}

In this case, page 12 is the same page where the report of the IR's show - it redirects to itself with DELETE query and P12_ID_DELETE element temp is filled with the ID of the record online.

(2) I have created a page of PL/SQL On Load process - before header

BEGIN
DELETE from res_attach WHERE ID =: P12_ID_DELETE;
END;

Conditions: Ask = Expression1
Value: DELETE

This removal of the process the folder with the ID defined according to redirect only if application is set to remove.

This is the simplest solution for me.
There are solutions for her. As an onDemand without redirection process or submit the form. But it's a little complicated.

Concerning
J :D

Tags: Database

Similar Questions

  • My Recycle Bin does not work. Deleted files are not stored in the Recycle Bin.

    My Recycle Bin does not work. Deleted files are not stored in the Recycle Bin.
    When I delete a file, none of these files are saved in the Recycle Bin.

    tried to restore desktop icons. no use.

    Tried to change the icons as method 2. Yet, my deleted files are not saved in the trash.

    My last bag of stuff.
    I assume that your allotted basket size is too small or you were not "empty" the collector for a LONG time.

    Right click on the Recycle Bin > properties > size under Custom, how many MBs are awarded?
    Mine is 1023 MB. I saw someone almost 5000 MB.

    Increase size, play with the numbers until the darn bac actually works the way it should be.
    Please post back. I'm curious to know the result.

    t-4-2

  • Bug: Trash does not display 'empty' icon when the Recycle Bin is emptied.

    Bug: Trash does not display 'empty' icon when the Recycle Bin is emptied. This only happens when you use customized for the trash icons. The Recycle Bin appears correctly when office is updated.

    It would be nice if someone could answer this question, as it is 8 months old.

    Click Start, type regedit.exe, and then press ENTER.

    Reach:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\ {645FF040-5081-101B-9F08-00AA002F954E}

    Export the branch above into a REG file.

    Exit Regedit.exe

    Open the REG file with Notepad, copy the content and include it with your answer.

    Ramesh Srinivasan . The Winhelponline Blog
    Microsoft MVP, Windows desktop experience

  • How do I find/recover a file deleted from a move/replace when the Recycle Bin is bypassed?

    Recently, I made a search for particular file template.  The Find dialog box, I selected all files returned by the search and trained in a backup folder.  Unfortunately, there were a few files with the same name and I selected by error "Replace" and the particular file I was interested has been moved or deleted.  I thought I was doing a copy, but the source files have been deleted.  I tried to run several file recovery programs, none of them found the files that have been deleted as a result of this move/replace operation (apparently the Recycle Bin is bypassed for this operation).  I know that the directory they are found, but the program is not all the deleted files in these directories.  Help!

    I recreated this scenario in Windows 7 with the same result.  How these files are deleted, and how to find them?

    Hi Jimstaff,

    Welcome to the Microsoft Answers site!

    Try to face a return of the folder that contains the files now and then try to restore to a previous version.

    Whenever a system restore point is created for your computer, an older version of each file is created. You can try to right click on this particular and select restore to the previous version. You may get different dates, which you can restore back.

    Try this if you have restore points created for folders. If this isn't the case, then there is no way how you can recover these files.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I lost my icon of the Recycle Bin on the desktop. Where can I find small icon of the Recycle bin - file - to restore on the desktop? __

    I lost the icon trash (trash) from my office.  How can I restore it?

    See Microsoft Support document How to make the Recycle Bin on my desktop in Windows Vista or Windows XP?

  • How can I restore my icon to the Recycle Bin?

    Seems to me havedeleted my icon to the trash and does not know how to give my counter top.

    I assume you mean the trash icon? Right click on the desktop | Customize. At the top left, click on Change desktop icons and check the box for the basket. Apply.

  • Deleted files show is not in the Recycle Bin

    When I include a network folder in windows 7 or modify the 'Documents' target the destination to a network in XP folder... deleted files do not appear in the trash... This can be corrected?

    Unfortunately, this is the way Windows has always worked and the behavior is not editable.

    If you Google/Bing this problem, there are a few suggestions for workaround solutions that some people have used.

  • Deleted files no longer go to the Recycle Bin. Windows asks if I want to permanently delete the files.

    Very strange situation with trash.

    Today it suddenly stopped, sending items, except those on the desktop into the trash and ask you if I'm sure I want to permanently delete the selected file. Do NOT for the files on the desktop, instead of this request if I don't know I want to recycle them.

    Recycle Bin settings are set to recycle, don't jump no trash and distribution, is set at 10 Gig of memory and bin is practically empty, if the space is not a problem. From this today and can not fix.

    Help, please.

    original title: how to remove the trash

    Thank you
    Lucien

    Hi Lucien,.

    you have made any changes to your computer recently?

    I suggest you to follow the steps and check if it helps.

    Method 1: Scan your computer anti-virus using the Microsoft Safety Scanner, then check if it helps.

    Microsoft safety scanner

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Method 2:

    Step 1: You can also try to create a new user and then check if it helps.

    Create a user account

    Step 2: If it works fine in the new account, then your account may be damaged.

    Repair an account damaged, please follow the steps in the link, then check if it helps. Difficulty a user profile is corrupted

  • Deleted files do not appear in the Recycle Bin.

    I checked the settings of recycling bin, and they are not the problem. In addition, there are 70 GB of free space on the hard disk.

    If you have deleted files using SHIFT + DELETE then they bypass just trash, or when the size of the file that you delete is greater than the available space in the trash, then also the files are permanently deleted.

  • Lost my trash! I accidentally deleted and cannot find using search... Is it gone forever? and if this is the case, why can I delete things and send them to the Recycle Bin? Help! I need to clear first!

    How can I get my recycle bin back to my desk top?

    How can I get my recycle bin back to my desk top?

    Hey jengalet

    Use the microsoft fix - it tool or other methods in the microsoft link to fix your missing Recycle Bin below

    and have a great festive season

    http://support.Microsoft.com/kb/810869

    Walter, the time zone traveller

  • "You sure you want to delete the file without moving it to the Recycle Bin? In response, 'No' causes the file to be left undone.

    Separated from this thread.

    I think the bug has something to do with the partitions created with TrueCrypt.

    Indeed. Make the truecrypt as removable disk volume in options of fixed the problem :)

    The suggestion did not work for me.

    I use Windows Home Premium and Truecrypt 7.1.

    When the volume is "removable", an attempt to delete causes the prompt, "do you really want to delete the file without moving to trash? In response, 'No' causes the file to be left undone.

    When the volume is not removable, an attempt to delete causes, command, the prompt "you want to move the file to the Recycle Bin?  I clicked 'Yes' the file disappeared from his record, but was not visible in the trash, even if the trash appears to have contained.  By clicking on "All content, restoring" the trash, has no effect.

    Basket of content used to be visible and restoration-able.  I recently opened some volumes on a drive not used for several months.  Other that that, I can't say why the trash behavior has changed recently.

    Suggestions appreciated.

    Thank you.

    Colin

    I suspect it has to do with the size of the 'file '.  When a file is larger than the preset size of trash, your options are to delete without moving to the trash.  No way that you do not want to delete it without moving it to the Recycle Bin, but if she's great that recycle it bin it cannot so it just happens.  If you say yes it removes without moving to recycle.

    You can change the size of your trash by right click > properties > change size

  • Deleted messages do not appear in the Recycle Bin using Thunderbird 38.2.0

    I am running Thunderbird 38.2.0 who, for some, have solved the problem of messages deleted not appearing is not in the trash. I still have the problem. The server settings to specify the IMAP of Gmail server and the "when I delete a message" is set to move it to the trash.

    The attached picture shows the largest part of the structure of tree folder of the account... missing folders the additional.

    Any new ideas on how to solve the problem would be appreciated.

    https://support.Google.com/mail/answer/78892?hl=en
    Make sure that you have subscribed to see gmails trash folder.

    Deleted messages should go to [Gmail] /Corbeille.
    This will remove labels and store in AllMail until the trash is empty.

  • Cannot delete files from the Recycle Bin

    Hello

    I'm unable to access my trash, everythime I click on the folder, it says windows Explorer has a problem, then said restarting windows.

    And the window just closes, it is there anyway to delete the files from the trash bin other than to go to the folder it self.

    See you soon

    Serrano

    Here is an article on how to repair a trash corrupted in Vista: http://www.vistax64.com/tutorials/131294-recycle-bin-corrupted-cannot-delete-file-folder.html.

    It restarts if you left or do a right-click on the icon or both?  Here are a few ways to empty it by using two methods:

    1. On the desktop, right-click on the Recycle Bin.
    2. Then click the Empty trash to empty its contents.
    3. You will be asked if you are sure that before it permanently deletes the files.
    4. If you're absolutely sure, then click Yes to clear the contents of the Recycle Bin.
    5. Alternatively, you can double-click the Recycle Bin to open and examine its contents.
    6. And then on the file menu, click empty the Recycle Bin.
    7. After confirmation, Windows Vista will be empty all files from the Recycle Bin.

    Go to control panel / customization / Desktop Icons and remove the trash, click OK and close.  Then go back and add the trash.  See if the new basket has the same problem.

    Here is a program that you download that adds a command to empty the trash to the command line if all that you need to do is type of the command in the box search now and it will happen. http://itsvista.com/2007/01/itsvista-tip-23-empty-vistas-recycle-bin-from-the-command-line/.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I lost the recycling bin icon and search shows no results

    I can always delete to recycle bin, but does not display the icon or access the tslib

    Hi Alkiemele,

    To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:

    1. what version of Windows operating system is installed on the computer?

    2 did you do changes on the computer before the show?

    You can follow the steps in the article mentioned below and check:

     

    How can I make the Recycle Bin on my desktop in Windows Vista or Windows XP?

    http://support.Microsoft.com/kb/810869

    Hope this information helps. For any corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • Recycle bin on C: / is corrupted. You want to empty the Recycle Bin for this drive?

    Hello people.,.
    I get the following error message when you try to delete a file in C drive

    Error message:
    Recycle bin on C: / is corrupted. You want to empty the Recycle Bin for this drive?

    And when I delete the files from the other disk (a disk D, E, F), I only get this error?
    can anyone suggest me what exactly is the problem?
    Thank you
    Kind regards
    Asif

    Hello as7685

    Try to fix the tray

    Replace/repair the Recycle Bin (line 64) right
    http://www.kellys-Korner-XP.com/xp_tweaks.htm

    Save the REG file to your hard drive. Double click it and answer Yes to the import prompt.

    .

Maybe you are looking for

  • Plugged in vs. not connected

    Is this ok to use my macbook air connected when I'm at home, watch movies or while doing other things requiring more battery and then plug it out during the night and let him sleep on battery? The fact on and cycle to plug and unplug the battery in a

  • Icloud is up overall mac?

    Hi all I'm really new in this icloud and have used an external hard drive to back up my mac. When I click the icon 'Time Machine', I don't see icloud option; I see that my external hard drive and set up another 'airport Time Capsule"than the other op

  • Acceleration in the frequency domain

    Hello I enclose a vi that I already modified the existing example. I will use this vi to measure pressures (pressure sensor) and acceleration (from an IEPE accelerometer). Each of the two sensors is connected to a housed in a chassis CompactDAQ C Ser

  • What drivers I need to download to add speakers to my computer?

    I bought logitech speakers a couple of days and connected to them but they do not work so I thought that I might need to download the drivers.  I have a Dell Windows XP.

  • 32 GB SANDISK CRUZE GLIDE REQUEST FORMAT (new)

    Hello! Well, I just bought the USB last week during a visit in new york (best buy). Now, back in my country (Argentina), I opened the box and she asked for the format. also it only regnizes 64 MB. Format does not work (I tried all different types of