Trouble updating record w/ attached file.

Hi, Posted in the SQL forum but no response. Hopefully someone here will have an idea. My application has a file upload feature so a file can be attached to every record saved with this INSERT on Submit:<br><br>
if (:P3_Filebrowser is not null) then<br>
insert into DBA_PATCHLOG( PATCH_NUMBER, LINK, FILE_NAME, BLOB_CONTENT, MIME_TYPE, SHORT_NAME) <br>
select :P3_PATCH_NUMBER,id,:P3_Filebrowser,blob_content,mime_type,filename
<br>from wwv_flow_files where name = :P3_Filebrowser;<br><br>
delete wwv_flow_files where name = :P3_Filebrowser;<br>
end if;<br><br>
The only problem I have, is when I edit/update a record. I don't want to create a new record with a new file. I want to update the existing one with a new file. I have Automatic Row Processing (DML) to edit the record data but it does not submit the "to-be-attached" file info. For this I need another process. With that in mind I would like to add to the INSERT process another WHERE condition to show which record to update:<br><br>
if (:P3_Filebrowser is not null) then<br>
where PATCH_NUMBER = :P3_PATCH_NUMBER;<br>
insert into DBA_PATCHLOG( LINK, FILE_NAME, BLOB_CONTENT, MIME_TYPE, SHORT_NAME) <br>
select id,:P3_Filebrowser,blob_content,mime_type,filename
<br>from wwv_flow_files where name = :P3_Filebrowser;<br><br>
delete wwv_flow_files where name = :P3_Filebrowser;<br>
end if;<br><br>
Not sure if this is the right logic. Does this make sense?Using HTML DB v1.6. My app is based off the How To Build: File Up/Download application.Thanks..

Thanks Warren but I don't think I was very clear on OP.<br>I want to include the " where PATCH_NUMBER = :P3_PATCH_NUMBER; " so that the process knows where in the DBA_PATCHLOG table to insert the data (blob_content, mime_type and so on) coming from wwv_flow_files_table.<br><br>
if (:P3_Filebrowser is not null) then<br>
where PATCH_NUMBER = :P3_PATCH_NUMBER;<br>
insert into DBA_PATCHLOG( LINK, FILE_NAME, BLOB_CONTENT, MIME_TYPE, SHORT_NAME) <br>
select id,:P3_Filebrowser,blob_content,mime_type,filename
<br>from wwv_flow_files where name = :P3_Filebrowser;<br><br>
delete wwv_flow_files where name = :P3_Filebrowser;<br>
end if;<br><br>

Similar Messages

  • Updating Attached File

    Please help!
    I've attached a .pdf file (attachment file) to another .pdf file (source file) using the "attach a file as a comment" tool on Acrobat 9.0.
    However, the problem is that I've updated the original attachment file by accessing it through the source file and saved it under a different name (updated attachment file).
    I noticed when I clicked on the icon on the source file that the attachment file content is different from the content of the updated attachment file. In other words, the attachment on the source file was not synced with updated attachment file that had the changes on it.
    Seeing this, I tried to find the original attachment file to update that directly. However, when I look at the properties of the original attachment file, the path leads only to the file where the source file is found.
    Is there any way of accessing this original attachment file or having the changes synced when I make changes to the file that I originally attached?
    Also, does the new Acrobat X have functions that would solve my problem with the "attach a file as a comment" tool?

    There are no 'auto sync' features for attached files in any PDF software. Once you attach something you are creating a totally independent copy. You have to delete the attachment and add it back again.

  • Can't attach file in mail since the last update

    Have updated the IOS to 10.8.5, ever since , I'm not able to attach files to mail ....... Any solutions ?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Since the last update, I cannot attach a file to my email in MobileMe. It has always worked until the latest update. Now, nothing happens when you click on the paper clip icon and 'choose' the file to add.

    I am using MobileMe on my Mac. Until the last update a few days ago, Firefox always allowed me to attach files to my emails. Now, when I click on the paper clip, and it takes to me find the file I want to attach, and I highlight the file I want to attach and click on 'open', nothing at all happens. the screen just goes back to my email. It always worked before, it does not now. It DOES work on Safari but I hate Safari, i want to use firefox.

    Hi satorilori-
    You might try this:
    -> Clear Cookies & Cache
    https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    -> Clear the Network Cache
    -> Reload web page(s) and bypass the cache.
    Press and hold Shift and left-click the Reload button.
    Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    Press "Cmd + Shift + R" (MAC)
    Check and tell if its working. Hope that helps!

  • Problem with update record, then link to file

    Environment:
    Dreamweaver 8, MySQL, PHP.
    I have a repeating record from my database. I added an Update
    Record server behavior for each search result for the result table.
    I added a button to the form and changed "submit" to "view".
    Pressing "view" is supposed to allow the user to view the detailed
    record information.
    The Update Record server behavior is supposed to do two
    things:
    1) add 1 to the 'numViews' filed of the record's database
    entry when the "view" button is pressed
    2) After updating the numViews field, the form is supposed to
    redirect the user to the detailed record
    I found that depending on how I create the record, I an do
    one of the above 2 behaviors, but not both. HELP!
    To add 1 to the numViews field, I created a form variable
    called incNumViews, which does the following:
    <?php echo $row_rsSearchResults['recipeNumViews']+1; ?>
    Very simple.
    The Update Record ends up changing the form action to the
    following:
    <?php echo $editFormAction; ?>
    Looking at the code for this, I ee the following:
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
    $editFormAction .= "?" .
    htmlentities($_SERVER['QUERY_STRING']);
    But when the "view" (ie: submit" button for the form is
    pressed, I get redirected back to the same repeating record search
    result page, not to the record detail page.
    However, the numViews field in the record is getting properly
    incremented.
    I tried to get around this by changing the Update Record
    behavior "After updating, go to:" field to point to the record
    detail page, and tried passing a parameter tot he recordID I want
    to see details of, as a URL parameter, but that does not work.
    If I change the Update Record form action from
    <?php echo $editFormAction; ?>
    to
    record_detail.php?recordID=<?php echo
    $row_rsSearchResults['recordID']; ?>
    Then I am able to link to the detail page, but NOT update the
    numViews field.
    HOW can I fix this to both update the record, then jump to
    the detail page with a URL parameter being passed, when I click the
    "view" (submit) button o the form??
    Thanks in advance.

    If the user's computer doesn't know what to do with a TIFF file, I guess that Open button would be missing.  Tiff is not a web normal file format, or even a common one for graphics applications....

  • Can't attach files or photos after microsoft update to 8.1

    I have a HP Envy Desktop all in one computer which I purchased in April 2013 with Windows 8.  Recently my Microsoft automatic update added Windows 8.1.   When that occured it knocked my printer off and I reinstalled.  I use Outlook 2013  for email.   Another new problem I have since the upgrade  is attaching files and pictures by the method I am used to and like best....
     That is opening the document or picture file and choosing those I want to attach, then clicking "share", "email" and "attach" which includes choosing the size I want.   The outlook icon on the bottom toolbar turned yellow, showing the new email was ready for me to complete.  I can no longer do this.  The process goes through all the steps but does not attach.  I am in my mid 70's and have used computers for many years but am not tech savy.  What is the gliche here??
    I can still open a new email, click on "share",  "insert" and choose a file or photo to attach.  However, I prefer the method described above and have used it for years as I work on genealogy.
    Help!!  Thank you.

    Reset your phone by holding the HOME and SLEEP buttons at the same time until an Apple logo appears. If that doesn't fix it try closing all of your apps, then reset again.

  • How to update the record in a File (without closing Writer)?

    Well i've got one issue:
    I want my program to record in a file updating any time i.e the records are added in append.
    But i want the record must be done in a file even if the Writer is not closed because I'd like to see the all logs of user and the main thing is sometimes there could be issue of software crash, powercut off or any So for that reason i 've made code like this but it doesn't update but it only override:
    public boolean write(String s){
            boolean isFinished = false;
            try{
                FileOutputStream out = new FileOutputStream("C:\\new.txt"); 
                int i = 0;              
                while(i != s.length()){
                    out.write(s.charAt(i));
                    i++;
                //here i've not closed file output stream
                isFinished = true;
            catch(IOException i){
                i.printStackTrace();
                isFinished = false;
            return isFinished;
        }

    Well, Thanks for the help but,. i didn't understand
    try not opening the file every time. As I only know that I need to open a file if i would like to update the records..
    The update is not happening :
    Firstly it shows like this (new.txt):
    STOPSecondly it must show like this (new.txt) BUT NOT HAPPENING AS I EXPECTED:
    STOPSTOPBut it's not hapenning

  • How do I record a sound file and send it as an attachment using my 4s?

    How do I record a sound file and send it as an attachment using my 4s?

    Hi,
    The following is the program[Click Here| http://saptechnical .com/Tips/ABAP/email/EmailProgram.txt] which will send any format file. Actual Creator of the program is Amit Bisht.
    Thanks & Regards,
    Rock.

  • I updated safari to 7.0.3 and pages to 5.2 and can no longer attached files in gmail that are pages or exported to word. Any suggestions?

    I updated safari to 7.0.3 and pages to 5.2 and can no longer attached files in gmail that are pages or exported to word. Any suggestions?

    I have a similar issue.
    After updating Pages to 5.2, all Word export documents are 10 times the size they'd normally be.
    A normal exported .DOC file that would have been under 200K, is now 1.7MB once exported.  !!! ???
    This is a major issue with Pages.

  • Cant open attached files Dreamweaver CC update August

    I installed the brandnew DW CC update from today (August, 27th, 2013) and now I cannot open the connected files any more in this subtab which shows all related (attached files), for instance the css file. Opening a file by its own is working.
    Its always prompting that the cetrain file is not in the local directory and if I want to get it. Trying this also throws an error message.
    The css file is working properly, it is stored locally and I can open it on its own.
    It seems to be a bug with the new update?
    Regards, Dennis

    Hi vharis,
    I could isolate the problem. All my files are stored on a NAS, because we are six programmers. As sson as I store the site files locally on my Mac, DW finds the all dependend files and opens it. Its a problem with the path. Path to my NAS is shown when hovering over the name of attached file in the tabs: NameOfLocalHD:NameOfFolderOnNAS:NameOfProjectFolder:AndSoOn:NameOfFile.css
    I know that Adobe is recommending to store files locally, but this is no options for us. Every programm and tool we are using is able to handle a NAS and server-environment. So should DW!
    Please fix this bug, as it was working before the update.
    Regards, Dennis

  • I am having trouble with attaching files in my gmail

    After downloading the most recent version of Firefox I began having trouble attaching files in my gmail. I am now unable to attach files and get getting the same attachment failed message.

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here (this will log you out)
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    Some sites use a Flash-based uploader. Have you noticed any other issues with Flash (audio/video issues)? There are some compatibility issues between the latest Flash player and some Firefox add-ons or settings. Could you see whether anything in this article helps: [[Flash 11.3 doesn't load video in Firefox]].

  • I am having trouble updating files on my Ipod Nano 7g.

    I am having trouble updating files on my Ipod Nano 7g.  When I drag and drop files it simply holds and never updates.  This is a new issue and no new software has been installed.  I re-installed Itunes to no avail.  All serrvices appear to be running.  The Ipod does show up in Itunes but will not allow me to manage my music.  I ran the diagnostic tests and when this ran, it could not locate my Ipod.  Any help would be appreciated.

    I got a new nano for my son and have other ipods sync just fine to my HP but I plugged in and set up an apple account for the new nano and ordered  a movie and a song but the nano is just not showing up on the computer .....not syncing and I am afraid to clear things so 'it can be recognized' as it might effect the 3 other ipods we have working right....:}  thanks for your inquiry

  • Updated to Firefox v.30, now I can't attach files to my Gmail or download files from websites. The troubleshooting stuff doesn't work. What's wrong?

    Shortly after my PC (WinXP SP3) auto-updated to Firefox 30, I found that I could no longer attach files to my Gmail. Clicking on the paperclip icon would make the screen blink, then nothing. No list of files, no selecting files to attach.
    Further testing showed that I could no longer right-mouse click on an image and save it. The right-mouse click will bring up the menu, but when I select "Save Image As" again, the screen blinks, and nothing happens.
    When I tried attaching my resume to an online application, the website's "Browse" button won't bring up a file-listing to select my resume.
    I have tried all the actions suggested in similar posts: I have disabled my anti-virus, I have cleared cookies, I have reset Firefox, I have restarted my router. Nothing has fixed the issue.
    I do not have this problem when using IE8

    For now, you need to create an exception to pop-up blocking for Gmail. Here's how:
    While you have the compose window on the screen, click the padlock in the address bar.
    * If the pop-up permission is listed there as Block, try changing it to Allow.
    * If the pop-up permission is not listed there, click More Information to launch the Page Info dialog, then click Permissions in the top bar. Scroll down to "Open pop-up windows", uncheck the box for "Set default" then click Allow and close the dialog.
    Then try the paper clip again. Success?
    Unfortunately, that is "Google-wide" and not limited to mail, so... other pop-ups are possible that you've never noticed before.
    Google indicates on their forums that they're working on fixing this, so you might check in a couple days whether you can block pop-ups on Google again.

  • Trouble attaching files to e-mail

    This just started happening and I'm not sure what I installed or did to cause it. In any browser - Safari, Firefox, Explorer - I can't attach a document. I'm using SBC Yahoo and their tech support said it was a problem with my computer.
    When I choose a file to attach, it shows up, but when I click "attach", the browser tells me there was an error, no files are attached. I turned off my firewall but can't think of any other reason my files won't attach. I have no problems attaching files to my AOL mail but I don't always use AOL and sometimes need to use my SBC address.
    Any suggestions? Thanks!

    I'm having the same problem with my verizon business webmail...Safari won't attach files...The old version of Firefox worked fine (Firefox 1.5 doesn't work at all, so now I'm without the ability to attach files altogether)...Need to find the fix for Safari...

  • Troubles opening attached file.

    When I have a mail with an attached file I can't open it, I must save as and then open.
    When I try to open the attached file directly I have an error: Document not found.
    For example If I have received a mail with an attached PDF FIle, I open ... The acrobat reader try to open but they says that "Document not Found".

    Hi there.
    I think you're bumping into an IE caching bug that's documented in our release notes:
    http://download-west.oracle.com/docs/cd/B25553_01/relnotes.1012/b25475/suite.htm#SuiteKnownWebAccAttach
    The posted workaround for IE is in the OCS security guide:
    http://download-west.oracle.com/docs/cd/B25553_01/collab.1012/b25494/midtier.htm#CHDCHBIE
    Please note that this has security ramifications, read the documentation carefully.
    Note the following errata (I believe that this has since been corrected):
    - In the OCS security guide, the path to the configuration file may be incorrect,
    it should be:
    $ORACLE_HOME/ocsclient/config/ocsclient_apache.conf
    - Once the configuration file modification is complete, make sure you restart OHS:
    $ORACLE_HOME/opmn/bin/opmnctl restartproc ias-component=HTTP_Server
    - In the config file, the section to modify mentions 'inline attachments'. This refers
    to the fact that they are opening in the same browser window. It does not mean
    attachments that are automatically previewed in the e-mail body.
    This should fix your problem, please post a reply if it's not fixed.
    Regards,
    -Andrew

Maybe you are looking for

  • Trying to reduce and organize photos on my Hard Disk

    For the most part I have been keeping my photos on my working hard disk with only certain collections off line, but the hard disk is filling up more than I want. I have duplicates and unneeded photos. 1. Must I delete them only from the "PHOTOS" at t

  • Program has to display the calender year with certain dates highlighted

    The program will have a selection screen with the parameter option for empid (Provide F4 help) and select option for Start Date and End Date (Provide the F4 functionality to the date fields.) 2.        When the user  Executes the program, the program

  • Is it possible to control when loadView() launches?

    Here is my situation.  I would like to be able to tap on my camera view to dismiss it, but I am having an issue due to when UITapGestureRecognizer becomes active. Background When a user presses the camera tab bar button, she is presented with a view

  • WAAS: WCCP Mask or Hash on Routers?

    I'm starting thinking about using mask assign on an ISR router running 12:4(24)T with GRE/GRE. Has anyone done this before and can you use mask assign with GRE/GRE? We need to use it with GRE/GRE because our egress method has to be WCCP return. My th

  • Authorization Relevant Info Objects

    Hi Experts,   In my Business scenario,Profit center infoobject is authorization relevant for FI reports.In my FI reports,I have used profit center authorization variable.FI reports are working fine according to the authorizations. In sales Report,use