How to refresh and redirect into same page after deleting a file

Hi John,
One more help I need. I implemented the brows and download file functionality in my application successfully. And I am interested to implement delete also like download. If user will click on download three options will come open, save, cancel in case of download. But like download I want to put delete link which will delete the corresponding file.
I written the procedure in same fashion as download and compiled in my schema.
The code is here:
CREATE OR REPLACE PROCEDURE download_my_file_temp_delete (p_file IN NUMBER)
AS
BEGIN
DELETE FROM file_subjects_temp
WHERE ID = p_file;
END download_my_file_temp_delete;
And in
Home>Application Builder>Application ID>my_page > Report Attributes>Column Attributes
There I am entering
Link text : Delete
Target : URL
URL : #OWNER#.download_my_file_temp_delete?p_file=#Delete#
Where download_my_file_temp_delete is a procedure for deleting the file corresponding to ID .
Here id alias is DELETE so I am passing #DELETE#.
If I am click delete corresponding to any file its opening a blank page I seen URL is like
http://abcd.com:portno/pls/workspace/owner.download_my_file_temp_delete?p_file=4031625747435433
if I am clicking back and refreshing then getting file is deleted successfully.
That means procedure is working but I want that after clicking on delete link corresponding to any file same page should appear with refresh then my problem will solved.
Can u suggest me any approach.
Thanks && Regards,
Ravi

[This is not John, hope that's ok!]
This kind of thing is best done by rendering checkboxes next to each file in your report region;using apex_item.checkbox(1,file_id) and providing a Delete button that would fire a after-submit process that does
for i in 1..htmldb_application.g_f01.count
loop
download_my_file_temp_delete(htmldb_application.g_f01(i));
end loop;[And of course a same-page branch on the page]

Similar Messages

  • How do I reinstall os x moutain lion after deleting necessary files?

    When trying to get my Canoscan 9550F to work with OS X 10.8.x, I was able to add it to the system settings under printer, but still it didn't work. I decided to make sure the Canon driver and Apple driver weren't fighting, so I deleted some files. Now, even though I can see the scanner in the "about this Mac," I cannot add it anymore to the printer area. I should have dragged those files to the trash, where I could have restored or put back the files, instead of to the desktop.
    My question, How do I reinstall OS 10.8.x when I installed it from the App Store to upgrade? I don't see it as files on my Mac to reinstall.
    Thanks

    Reboot to the Recovery partition and reinstall from there. Reboot, at the sound of the chime press cmd-r and hold it until the Recovery disk starts up.

  • How to create and insert muliple PDF pages to a single file

    Greeting to everyone.
    I use Acrobat 8 Standard to create PDF files, usually by PRINTING TO PDF from a CAD file(Vectorworks) or web pages on the net.
    I know how to create single pages and I know how to combine them into a single PDF file by using the Document - Insert Pages command.
    My question is: When creating a PDF file(e.g from my CAD program), can I print and insert instantly, rather than going through 2 steps.
    Thank you in advance for your suggestions.
    Sidug

    No. Future questions concerning Acrobat belongs in the Acrobat forum.
    This forum is for dealing with Reader issues. Users of free Reader
    aren't that familiar with the commercial Acrobat Standard, Pro or
    Extended programs.
    Mike

  • Make the tabbed page come back to same page after delete

    I have a page with three tabs.
    When user clicks on delete on any of the page. A warning page comes. And after the user selects yes or no on the warning page,
    original page is displayed. But it goes to the first tab always. i want to maintain the tab also.
    How can i do that?
    I have used setForwardUrl to move between pages...

    Hi,
    When delete event is fired, in PFR capture the selected tab details
    tabBean.getSelectedIndex(pageContext);
    store it in session
    then
    forward it to warning/dialog page
    post the warning page results to calling page
    in the process form request of calling page capture the event
    use
    tabBean.setSelectedIndex(pageContext,value)
    value get it from session
    pageContext.getSessionValue() API
    Regards
    ivar

  • How to print Header and footer in same page

    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

    HI
    First of all,
    Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
    If you have difference on report and PDF that you should look into your setup.
    If you want more help, please be particular on your issue
    james. wrote:
    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

  • How to redirect a JSP page after the session is killed

    Hello!
    I am quite new to JSP. I have a question about how to redirect a jsp page after the session is killed. Could anyone help?
    thanks a lot in advance!

    You can't, directly. There's no connection betweenthe server and browser.
    even after invalidating the session. we can do it
    directly using the statement
    response.sendRedirect("....");
    or we can use the meta refresh tag.if session is invalidated and if we try to do response.sendRedirect(".. ") it throws IllegalStateException

  • Windows.ApplicationModel.DataTransfer. How share image and link in same post ?

    How share image and link in same post  ?

    You can
    share a link and share an image (as an image or
    as a file), but logically speaking all of the data types shared are considered different views of the same thing. The share target will pull out the best format for its target and leave the rest. The share source cannot tell the target how to interpret
    the data.
    See
    Choosing data formats and file types.
    If you want to combine multiple data types in one view then you can combine them in an HTML page. See
    How to share HTML

  • How to view and use an xsl page in apache tomcat

    how to view and use an xsl page in apache tomcat do i need to configure
    certain files if yes what are they?
    thanks

    actually how do i embed xsl code into jsp and display it at localhost
    do i need to do any configuration before i can view the page

  • How to upload and share document from pages

    how to upload and share document from pages app?

    Hello dannafromfl,
    Documents can be shared via File Sharing to iTunes or via Email.
    Pages for iOS (iPad): Send and receive documents in email messages
    http://support.apple.com/kb/PH3564
    Pages for iOS (iPhone, iPod touch): Share documents by connecting to your computer
    http://support.apple.com/kb/PH3598
    Cheers,
    Allen

  • I have a file with 64 pages in it.  How do I save and email one specific page out of the file?

    I have a file with 64 pages in it.  How do I save and email one specific page out of that file?

    With nothing but the free Reader? Take a screenshot of the page and email the image.

  • How to create links to the same page, how to create links to the same page

    How to create link to the same page with iweb?
    Thanks

    You're referring to anchors.  There are a couple of ways. These topics discuss them:
    iWeb FAQ - Anchors
    How do i hyperlink to certain portion...: Apple Support Communities
    OT

  • How can detect and remove scanned white pages in an OCRd pdf file?

    How can detect and remove scanned white pages in an OCRd pdf file?

    Acrobat does not support an automated way of doing this directly. You can
    remove completely blank pages (pages that don't have any "marking
    objects"), but a scanned page does contain an image, so Acrobat won't help
    you here. There are a number of 3rd party applications and plug-ins
    available. Try a Google search for
    remove blank pages from scanned
    pdf<http://www.google.com/search?client=safari&rls=en&q=removeblankpagesfromscanned+pdf&ie=UTF-8&oe=UTF-8>
    This will bring up a few different solutions.
    Another way is to use JavaScript to find text. You say that these documents
    are OCRed, so if you have a blank page, it should not have any text on it.
    With some JavaScript, you can identify pages that don't contain text. This
    may however fail if you have a page that contains just e.g. a photographic
    image. There won't be any text, but the page is certainly not blank.
    Karl Heinz Kremer
    [signature removed by host]

  • Creation of new button on same page after insert command

    Hello All,
    I have an application running on apex.oracle.com where my workspace name is shruti_work,username is [email protected] and password is buwigi. The application name inside this is "app2"
    I am trying to achieve one functionality there but unable to get it so felt like seeking an help from experts here. I have two forms there one page1 form which is simplly made on an html region with go button which is navigating the page 1 items value to page 2 but simply passing their address witout updting the database table.
    In Page 2 i created page on a table or view, which made some extra buttons which i dont want like applychanges ,delete button, cancel button. I created a create button even which is updating my database with insert sql command. What i am seeing is after my create button is pressed i got navigated to same page 2 which i want to but the applychange button, cancel and delete button got appeared. I dont get the idea why it is so. i have checked the buttons even i didnt found anything there.
    All i want is when i press create button in page 2, my database get update and at the same page (2) a new button get appears which i have to use for other things. Approaching to this solution i created a button with giving databse action update and condition to this button "value of item in expression 1 is not null" and in expression 1 i passed p2_id...... but my new button is not getting created.
    Any help on this?

    Hi Jeff,
    I dont want applychanges button and delete button in my page 2. But when i created form on a table or view this but got created and i cannot delete it even. When i am navigating my page from page 1 to page 2 and filling the fields in page 2 and clicking create button, at that time i want after updating my table and running my plsql process which i have created which you can see in page processing, my button at same page get generate which i will use to navigate to other form. This button which i want to generate after clicking my create button will be meaningful only if my record get inserted in table. so that is why i want it at that time.
    I dont want any report so i am not creating form on a table or view

  • How do I get back into my ipad after its been disabled?

    How do I get back into my ipad after it has been disabled?

    Not quite sure what disabled means in your particular case... But see here for...
    Unresponsive iPad
    http://support.apple.com/kb/TS3281
    And Here for
    iPad Unable to Update or Restore
    http://support.apple.com/kb/ht4097

  • How can i insert to word number pages after 6 pages but considering the pages before

    how can i insert to word number pages after 6 pages but considering the pages before.

    I assume this is Microsoft Word, and you want the first six pages to have no footer, subsequent pages to have a footer showing the page number.
    1. Insert a section break after the first six pages.
    2. Insert page numbers. This will add a footer with page numbers to both sections.
    3. Unlink the section 2 footer from the section 1 footer. [Click in the footer area, uncheck Link to Previous in the Header and Footer toolbar.]
    4. Delete the page number from the section 1 footer.
    Your document will now show page numbering on all pages starting with section 2.

Maybe you are looking for

  • K7n2 Delta-6570 Will Not Post

    I have k7n2 delta L --6570--amdxp-2500-512 mb pc3200 ram. powmax 400w power .ati 9600 all in wonder. I swapped all parts to a better case to fit a certain location and the system will not post at all. the diagnostic d-bracket has number 1 and 4 in re

  • Could not verify this domain because it was previously configured for your tenant or for another tenant.

    I have a set up a single tenant in my Azure portal, and added three domains.   Although two verify okay, for one domain I get an error: Could not verify this domain because it was previously configured for your tenant or for another tenant. Research

  • "Opportunity forecast report in SAPB1

    Hey any one can sove this , i'm getting this message " Data is not available; modify selection criteria and re-enter  [Message 131-85] while generating "Opportunity forecast report"  In SAP B one

  • Problem with 6700 6.1 in counter strike source with msi mobo

    hi, i've just baught a 6700 6.1 set and they work fine in windows, dvds and the msi speaker set up test. but in counter strike sources speaker test and in game only the centre and sub work. i've changed the speaker settings in windows and source with

  • IPhoto won't let me edit or view photos

    For some reason I have been unable to open,view or edit any photos in my iPhoto library for weeks now. I can see the thumbnails but when I click on anything all I get is a blank screen. I have already tried restoring the library with iPhoto Library M