Delete  'button' on report how to do this?

Hi,
I have a requirement to implement a 'delete' button on a report, but cannot find out how to do it. I found the following site which does exactly what I want, but cannot get to the code to see how the author has done it can any one assist please?
http://apex.oracle.com/pls/otn/f?p=40323:32:689305137368050
Thanks inadvance.

Hello:
Let's assume your report query is something similar to
select empno,ename from emp
You do the following
In the Column Attributes for report set the column-link for the 'empno' column to redirect to a URL
Set the URL to be
javascript:doDelete(#EMPNO#);
Create a button named 'DELETE'. Set the button to submit the page and branch back to the same page. Set the button's condition to 'Never'
Create a page-item named 'P1_EMPNO' of type hidden
Create a 'On Submit' pl/sql page process that is conditional on the 'DELETE' button with the following code
  delete from emp where empno=:p1_empno;Add the following javascript in the HTML header <script>
function doDelete(empno) {
   if (confirm('Delete employee ' || empno)) {
      $s('P1_EMPNO',empno)
     doSubmit('DELETE')
</script>varad

Similar Messages

  • Delete buttons in report region & javascript

    I managed to add a delete button on each line of my report region using 'Column link' with
    text <img src="#IMAGE_PREFIX#delete.gif" border="0" alt="Verwijderen Icon">
    url f?p=&APP_ID.:504:#APP_SESSION#:TEST:::P504_DELETE_ID_LCNT:#ID#
    and some extra coding.
    problem is : i'd like to add a javascript:confirmDelete function
    In a 'Normal' button you can add it via URL Target.
    Can anyone help me ?

    This seems to be the way to add javascript to the url-code
    f?p=&APP_ID.:504:#APP_SESSION#:TEST:::P504_DELETE_ID_LCNT:#ID#" onClick="javascript:confirmDelete('Are you sure....')
    The only problem now is to add some kind of code to javascript to cancel further processing??????
    return true or false has no effect.
    I tried to set the REQUEST-value but i can't find the solution.
    Please help.

  • HT2966 I changed a repeating event and this ****** DELETED 10 events. How to restore this from timemachine backup?

    On the iPhone you can change how many times an event is repeated. I changed that number from 10 to 11 and it automatically deleted all my 10 events and replaced the valuable notes with *nothing*.
    I do daily backups with timemachine, but cant seem to find a way to restore the events - since I already made a lot of changes today.
    next question: is there an ical alternative, which is actually safe to use for business?

    For anyone else that may be in a similar situation, I can confirm that this does actually work.
    I am unsure why I was not able to mount the original sparseimage that I copied to the USB drive before, but I have gone through the entire process again and I could successfully mount the TM sparseimage onto my MacBook and restore files from within it using TimeMachine to my Mac.
    This is a Disaster Recovery solution only needed for if both my NAS and Macbook get stolen or damaged so I am happy with this solution for now.
    I will try the restore process several more times from my monthly backups to reassure myself that the first failure to mount the sparse image was an anomaly.
    This is the process that I have tested:
    Configure MacBook to backup to TimeMachine Service running on QNAP NAS device.
    Perform regular backup of QNAP NAS Device (Linux) including the TimeMachine backup data to an external USB drive with encryption enabled and store this device safely off-site
    In time of loss of both NAS and MacBook, Time Machine data can be recovered to another Mac without the need of the NAS  using the following process:
    Mount the external drive containing the backup of the NAS filesystem (ext4) which is encrypted onto a Linux host so it is readable - use the cryptsetup luksOpen options to access the encrypted filesystem then mount it.
    Mount a n empty HFS+ formatted USB drive  on the Linux host
    Use Rsync to copy the sparsebundle from the external NAS drive backup disk to the root of the USB Drive
    Insert the HFS+ formatted USB containing the sparesbundle into the Mac's USB port
    Double click the sparsebundle to mount it onto the Mac as a Volume
    Using Alt button and the TimeMachine icon, select use alternative backup disk and you should see the TM backup in the sparsebundle
    Enter TimeMachine and you should be able to restore any/all files
    Hope that helps someone else and thanks to LaPastenague for pointing me in the direction of some of the answers I needed.
    Rgds
    Gary

  • Version count in statspack report-How to reduce this

    I generate stats report every week for 24 Hr time period and analyze all top20 queries interms of buffer gets,physical reads and executions.I could tune the queries with the help of you.Recently my Boss asked me to look in to top version count queries and reduce the number of versions.
    I have 4-5 queries which are running 300,000 times and has version count of 35.How can I reduce this number.please suggest me how to approach it.
    Your help will be appreciated.Thanks in advance.
    Thanks
    Anand

    Version count 35 out of 300000 doesn't look like a problem to me. Are you having performance issue on your system at all?
    <br>
    <br>
    1. Are the subject queries using Bind variables ?<br>
    2. What's the setting of CURSOR_SHARING?<br>
    should have CURSOR_SHARING=FORCE<br>
    3. check if Bug 3406977 apply to your case <br>

  • Creating a word report , how to do this ?

    Hi all ,
    My first post . I have been working with PL/SQL for the last 3 months. I have a question in APEX. My application allows users to enter data .So once the data entry is done , I have to create a word document by clicking 'create ' button ' . How can I send the data to the word document ( I already have the format for the word document and have been able to generate a dummy word document when I click 'create' ) . The only thing left is to replace the dummy data which I have inserted in word document by the data from the user entries
    Thank you every one ..

    Both are blogs, and the first one is probably easier to understand and describes the process extremely well - best you ask for an exception in this case so you can do your job.
    It uses a library that is also hosted here
    http://code.google.com/p/plsql-utils/
    It's a complex problem, so unfortunately it can't be described too simply - well, any more simply than Morten does in his blog.

  • The home button non working, how to solve this problem?

    the home button of my iphone 4 is not responding? any reason ? how to solve it?

    Ah, yeah water could be the problem. It depends on where the water went into the phone. Try this, turn the phone off and place in a bag of uncooked rice for a couple of days. The rice will asborb the water.  This may or may not work.
    Take a look at this article to determine if the water tripped the damage indicator - http://support.apple.com/kb/HT3302

  • I will not open the following mail when I delete the current. How to do this?

    <i>Locking duplicate thread.<br>Please continue here: [[/questions/992961]]</i>
    Hello,
    First of all, sorry for my bad english !!
    When I am delete the mail I was reading, the following (in the list) is displayed.
    I will avoid this, I will go back to the list of mail received.
    I ahev not finded how to do that in the options

    I understand your issue.
    I suggest you download this Addon: https://addons.mozilla.org/en-us/thunderbird/addon/deselect-on-delete/
    * Download to desktop or Downloads file.
    * In Thunderbird, 'Tools' > 'Add-ons' to open 'Add-ons Manager' in a new tab.
    * click on daisy wheel icon and select 'Install Addon from file'
    * locate the downloaded .xpi file and click on 'Open'

  • In ALV report how to do this..

    Hi,
         I worte one zreport,  it displays the output in the Grid format.
         Goto tr code : coois-> give some material number u will get output in the grid format..->above the grid u will look the bar on that u will see  ENDUSER DOC, DISPLAY GRAPHIC, LAYOUT SETTINGS....
    My requirement is :  I have to add this bar to my grid report, please explain to me.
    Thanks and Regards,
    Surya

    Hi Jai.
    We can not display barcode in ALV but in Smartform  and Script is possible becuase we can set font "BARCODE" or any fonts to our variable.
    What you should do is create general ALV report ,Smatform for printing barcode and botton for call
    Smartform  in ALV program.When a line is selected and click botton then take data in that line and call
    Smartform for printing barcode that what I have done.
    Hope it help .
    SayC.

  • Request in cube is not avilable for reporting, how to trace this in chain?

    Hello,
    We have cube that gets the delta daily.
    Some day, some body did full load and its failed.
    Regular process chain delta load were sucessfull but they never turned reportable since the previous full load was failed.
    Since we have not received any failure notification.
    Is there way we can find if the request is not reportable to get notification>?
    I have checked the avilable process types, it looks like we need to build custom process type.
    Please advice.
    Cheers
    Angelo

    Hi Angelo,
    If the full update is run via a process chain then you can configure for that chain that if the load fails you get an email notification,
    in the setup of the email notificaton you could make a reference to the target cube and then at least you know that if you don't fix this issue subsequent requests will not be available for reporting in the cube.
    Best Regards,
    Des

  • My iPhone 3GS keeps turning itself off all the time for no reason every time I put it on silent or just get a Facebook message I have a broken sleep/power button anyone know how to fix this problem?

    My iPhone 3GS keeps turning itself off all the time the power/sleep button dosent work so it's quiet annoying having to plug it in all the time dose anyone have a fix for this?

    The "fix" is to get the phone repaired.  There's no magic solution for a broken phone.
    Bring your phone ant $149 to Apple for an out of warranty replacement, or find a 3rd party repair shop near you. 

  • HT204022 Trying to delete old photos. How to do this?

    Our old computer died, the one our ipad was setup with. We got a new one, now I cannot delete the older photos. Photos taken after that can be deleted. Help please.

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-apphttp://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-onlyhttp://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.htmlhttp://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    iPhoto for iOS (iPad): Delete photos from iPhoto
    http://support.apple.com/kb/ph3137http://support.apple.com/kb/ph3137
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipadhttp://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
    Delete Pictures from Your iPad
    http://www.dummies.com/how-to/content/delete-pictures-from-your-ipad.htmlhttp://www.dummies.com/how-to/content/delete-pictures-from-your-ipad.html
     Cheers, Tom

  • Delete button in tableviewcell disappear after orientation

    I create a table view, every time orientate, I will reload it. When i swipe to make the delete button appear, and then orientate the device, because of the reload, the delete button disappear.
    How can I solve it?

    This is a end user to user support forum only. Please report over at the [Apple Developer Forums|http://devforums.apple.com].

  • Rendering Delete button in the table

    Hi,
    I have created a column in the table and dropped the delete operation in that column.
    My case is that whenever the create insert button is clicked a new row is added to the table and only to that row the delete button should be rendered, all the other older rows the delete button should not be rendered.
    This is similar to the advanced search option in the adf, when we add fields we will get a delete button at end of each field.
    How to implement the same case in the table ?

    I have given set property listener to create insert button and named to be 'new', then in the rendering condition of the delete button i gave as #{pageFlowScope['return']=='new'}. so initially the delete button is not rendered in the existing rows in the table but when create insert button is clicked delete button is rendered in all the existing rows and also in the newly created row.
    Am not sure whether this is the right approach.

  • Is there a way to move the delete button to the top?

    The version before the latest one had the delete button at the the top. This one has the delete button in the heading of the message window, below.

    The buttons are right where they have been for several version. You do have to add the one on the Mail Toolbar. Right click the Mail Toolbar and select Customize. Find the Delete button in the window that opens and drag it into place on the toolbar.

  • Remove the delete button from MFBF screen

    I want to remove the delete button frmo MFBF screen.
    Please help.

    Create a transaction variant using SHD0 and make the variant as default variant for MFBF and hide the delete button in the variant.
    Hope this helps you.

Maybe you are looking for