How to branch to the delete link in report

Hi all,
i have a report with delete button in all rows.when i click the delete button the row should get deleted.
To achieve this , I have given like this..........
In the column link
link text : image of the delete button
link attributes : &APP_ID.
In the URL : javascript:confirmDelete('Are u sure u want to delete','f?p=&APP_ID.:7:&SESSION.:DELETE1:&DEBUG.:RP:P7_ACT_NO,P7_EDACTIVITY:#Delete#,-1');
I have created a delete process : after submit
with condition request=expression1
In Expression1 i have given DELETE1
Problem is: it is not getting deleted and it is asking for branching.
could any one give a suggestion to achieve this?
Hope my procedure is correct.If not please correct me.
Thanks in adance
bye
Srikavi

Hi Srikavi,
Firstly, two points:
1 - There are other ways to do this - for example, you could have used a tabular form which provides delete functionality
2 - Your url says P7_ACT_NO but your delete statement says P7_ACT_NO_1???
OK - now the process (I haven't done this for deletions, I've done it for insertions, but the principles should be the same).
1 - You don't need a REQUEST value if page 7 does nothing but delete the data, so your url should be:
'f?p=&APP_ID.:7:&SESSION.::&DEBUG.::P7_ACT_NO,P7_EDACTIVITY:#Delete#,-1'
2 - On page 7, you should have a region that contains the two items that will receive the data from the url: P7_ACT_NO and P7_EDACTIVITY (you haven't explained what the second field is for!?!?!)
3 - The region on page 7 should have a button to submit the page. I'll call it P7_BUTTON. When creating the button, you can specify that it branches back to the original report page and repaginates
4 - In my version, I have hidden the region by adding the following into the region's header:
<DIV style="display:none;">
and the following in the region's footer:
</DIV>
<script type="text/javascript">
doSubmit('P7_BUTTON');
</script>
I hide the contents of the page so that the user doesn't see anything on screen whilst the deletion is taking place.
The javascript automatically clicks the button which submits the page.
5 - Your process to delete should be conditional on P7_BUTTON being clicked - no need to use a REQUEST value
That should be it.
Basically, when you click your button, it passes two values to page 7. Because the javascript on page 7 isn't within a function, it will run automatically. This clicks the button, which submits the page. Your delete process kicks in and deletes the record specified in the P7_ACT_NO field. And, finally, the branch (created when you create the button) will return the user to the original reports page
You could do away with the button and have the process run "Before Header" as long as you are sure that the fields will be populated correctly - in my case, because I'm inserting data, I need to do validation first.
Andy

Similar Messages

  • How do I remove the web link from text

    I have a text string on a sticky note that is formatted as a web link.
    How can I remove the web link so the string becomes ordinary text?
    Thanks,
    -Joe

    In Stickies, ⌃click (or right-click) the link. From the contextual menu, choose Remove Link. Alternatively, choose Edit Link…, then click the Remove Link button, or delete the URL.

  • I have MacAir with OS 10.8.4, how can I cancel the automatic link of my USB flashdisk to Mac instead of BootCamp, since I have one time press the ALT key before choosing "MAC" or "BOOTCAMP". Thanks

    I have MacAir with OS 10.8.4, how can I cancel the automatic link of my USB flashdisk to Mac instead of BootCamp, since I have one time press the ALT key before choosing "MAC" or "BOOTCAMP". Thanks

    That only happens when you are running Windows in a Virtual Machine with OS X as the host. Shut down the VM and restart your Mac.  Once the VM is running again and you insert a USB flash drive you should get that prompt again.

  • How can i recover the deleted photos on my Xperia S ?

    I deleted some photos carelessly a few days ago. Since i use the phone model is "Xperia S" which is use of interal storage hard disk (not have SD card select), i have tried use some of recovery software (like CardRecovery, Pandora Recovery) but since Xperia S connect the PC via USB only have Media Transfer Mode (MTP), the aforesaid software cannot detect my phone as an external driver and hence cannot recover any files. Please help me to solve this problem.

    How can i recover the deleted photos on my Xperia S ? I want to recover deleted  photos from my mobile for a particular number. All the  photos are deleted instantly and no threads were present on my mobile so I need to recover every  photos individually.Your experience is so similar with mine! I ever deleted a  photos sent by my GF, which is so meaningful for me. I was so regretful, then I was crazy to find solution to recover this sms from my phone. At last, I got a recommedation from a Android forum, it said that a data recovery software for Android can recover deleted  photoson my Xperia S , so I tried to download and use it. Awesome! It recover the sms! You can have a try:Follow the steps below to recover the deleted photos  on my Xperia S . Have a try. 1 Connect your Xperia S and enable USB debugging2 Analyze your Android phoneAfter the USB debugging, reconnect your phone if you are asked to disconnect it during the setting. Then can see the window below. Here you need to bear in mind that your phone's battery is more than 20% charged, and then you can click "Start" to let the program analyze your Android phone. 3 Scan your Android for deleted text photos4 Preview and recover photos from Android You can preview the photos that can find from it. Related Articles:
    How to recover deleted datas from Android phone ?
    Download the free trial version of Android photos Recovery and have a try. Click here to downloadHow to recover deleted photos on your Xperia S?

  • I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    Sorry no. That's how it works.
    Check if you still have an old backup and do a restore otherwise it's gone.

  • How can I reinsert the deleted audio from clips in my sequence?

    How can I reinsert the deleted audio from clips in my sequence?

    I can tell you a work around to get you going in the meantime, just may be time consuming if you have a lot of clips in the timeline.
    double click a clip missing audio
    press the go to in point and copy the timecode to notepad
    press the go to end point and copy timecode
    right click clip, and reveal in project
    double click the original in project
    paste in timecode and set in & out points again
    drag audio
    As I said not the quickest way, but it works, and won't actually take as long as you'd think, 30 secs or so per clip, i just hope you don't have over 100 clips without audio
    Troy

  • My bookmark pull down menu doesn't offer " manage bookmarks". In all the support Ican find this is how to edit bookmarks. How do I find the manage link if it's not in teh pulldown menu?

    Question
    My bookmark pull down menu doesn't offer " manage bookmarks". In all the support I can find this is how to edit bookmarks. How do I find the manage link if it's not in the pull-down menu?

    In Firefox 4, "Organize Bookmarks" has been changed to "Show All Bookmarks" to open the Library window.

  • I live in thailand. my firefox homepage comes up with a google mark and is in thai language. how do i remove the google link and get english language?

    I live in thailand. I just downloaded firefox 3.6.12. I have uninstalled google chrome. My firefox homepage comes up with a google mark and is in thai language. How do i remove the google link and get english language?

    You can set the Interface Language via the Search settings link on the http://www.google.com/ncr site. That should work for the Google Firefox page as well.<br />
    That setting is stored in a Google PREF cookie that you need to keep (allow).

  • How to speed up the deletion of 11million records from the table

    Hi,
    How to speed up the deletion of 11million records from the table.
    I need expiditious reply. Please do the needfull in advising
    Regards

    Please try to understand the question.Well it would help if you would answer some of the questions you have been asked as your question is not complete and clear and no matter how hard we try, we really need you to try and ask the question properly.
    So as previously asked
    Which simply supports the idea that we need:
    1) better definition of the business purpose (why)
    2) oracle version
    3) operating system
    4) hardware configuration
    to give a moderately accurate answer.
    I would like to add
    5) How many rows in total in the table to begin with.
    6) What is your delete statement
    7) Is this a one time operation or will it happen regularly
    8) Can you use partitioning.

  • How could I insert the deleted row into another table within a trigger?

    Hi,
    How could I insert the deleted row into another table within a trigger? The destination table has the same columns as the source table. Since the statements are in the trigger, it is not allowed to query the source table named 'test'. Thanks! The trigger is as follows, uncompleted:
    CREATE TRIGGER delete_trigger
    AFTER DELETE
    ON test
    FOR EACH ROW
    BEGIN
    -- How could I insert the deleted row into another table
    END delete_trigger;
    Message was edited by:
    user569548

    Hi,
    I'm not sure what's wrong there.
    I read the oracle docs about ANALYZE and ALL_TAB_COLUMNS, and did the following:
    ANALYZE TABLE my_tab VALIDATE STRUCTURE; //went ok.
    SELECT column_name
    FROM all_tab_columns
    WHERE table_name = 'my_tab'; //but no rows selected?
    This topic might not be what this thread should be about. Here I posted a new thread:
    How to get colum names of the newly created table?
    Thanks.
    Message was edited by:
    user569548

  • How to hide/remove the following links

    how to hide/remove the following links under All My Trips tab.
    the column u2018Recommended Actionsu2019 shows the link create travel plans when the trip is specific status. This link should be removed.
    Whereas in the same place, if u2018Change Travel Expense Reportu2019 is shown then it should not be removed

    got solution from the following document.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0ca7949-af7b-2b10-db80-ed8ca509f573?quicklink=index&overridelayout=true

  • HT2500 How do I remove the deleted mailbox from the sidebar on Mail?

    How do I remove the deleted mailbox from the sidebar on Mail?  Anyone knows how? Hit delete and dragging to the Trash but none seems to work.

    Hi, try highlighting it the Right click or Control+click & see if Delete Mailbox is an option.

  • I have an ipad mini, i took a video and then it was deleted. 2 other videos where taken right after it was deleted. How can I recover the deleted video please!!!!!

    I have an ipad mini, i took a videoand then it was deleted. 2 other videos where taken right after it was deleted. How can I recover the deleted video please!!!!! There was no backup done as I was not in wifi at the time.
    HELP!!!

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
     Cheers, Tom

  • How can i restore the deleted accidently bookmarks ? is there trash or bin for deleted bookmarks , like opera browser ?

    how can i restore the deleted accidentally bookmarks ? is there trash or bin for deleted bookmarks , like opera browser ?

    If you have accidentally removed bookmarks then use "Organize > Undo" in the bookmarks manager (Bookmarks > Organize Bookmarks) to get them back.
    The Organize button is the first of the three buttons on the toolbar in the Library (Bookmarks Manager).
    That only works if you haven't closed Firefox.
    Otherwise you need to restore the bookmarks from a JSON backup.
    That will replace all the current bookmarks and you lose bookmarks that were added since that backup was created.
    See http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • How can I cancel the text-link in pdf

    Hello:
    I want to knwon how can I cancel the text-link in pdf forever.
    In a pdf , If there is a text like "http://www.adobe.com" ,even it's not a hyperlink,and there is not any action on the text,but it can be clicked.
    I have read the "Document management — Portable document format — Part 1:PDF 1.7", I find nothing about this text-link, Is this  a function of adobe reader ,or  is it required by the PDF format.
    I konw adobe reader could turn off the function of text url Identification, then it can not to be clicked ,but what I want to do is cancel the text-link in pdf  ,so that  whatever is the "text url identification " turned off or turned on , the text can never be clicked.
    so,is anybody knwon ,if there is any way to cancel the text-link, to forbiden the text url to be cliecked forever ?
    and I also want to knwon if is it required by the PDF format that the text url without any action (not a hyperlink )can be clicked?
    grateful for any help
    Best regards & Good luck

    and I also want to knwon if is it required by the PDF format that the text url without any action (not a hyperlink )can be clicked? 
    No. It is a feature of Adobe Reader and Adobe Acrobat.

Maybe you are looking for

  • Excise duty costs in COPA

    Hi, We are implementing COPA in an up and running application. As you are aware two accounting documents are posted during billing process. First document posts revenue and cost based on the sales order conditions to PA. There is another document is

  • ORA-12535: TNS:operation timed out

    First thing first I need to vpn to Data Center before able to connect to any of the servers in Data Center. The other thing is do not ask me why my company set up is so strange. Let's call this DB server Machine B DB Server Oracle9i Release 9.0.1.1.1

  • User License Agreement in Java

    I have Plumtree 5.01 (Java) on Windows. What I need to do is depending on who the individual is that is logging into our portal (we have external/internal), I need to Pop-Up a web-page showing a license agreement and have then agree to it before lett

  • Wrong Windows product key during SP2 installation

    Hi all, i have reinstalled the windows XP. When i try to update the SP2 for the system, mircrosoft told me i am not using a right product key. Then i follow the instructoin to download a KeyUpdate Tool and i put in the product key which under my note

  • Logic Control Jog Wheel Erratic in 7.1.1, OK in 6.4.3

    Rotating the Jog Wheel clockwise causes the SPL to leap to bar 13, 66, 201 and rotating counter-clockwise allows no rewind function except return to zero. I have re-initialized everything including key commands, even re-installing Logic Pro 7.1 and u