Add a file upload to spreadsheet app

Created a wizard-generated out of the box app based on spreadsheet.
Now I want the ability to store a file attachment for each row. So I added the file_id column to the table as a FK to my custom table which stores the uploaded files.
What is a good UI to handle updates to this?
On the Create page, I added a File Browse box to upload the file, works fine.
Added a Download link on the report page, also works fine.
On the Update page, how should this file_id field be handled? There need to be 2 options (that I can see)
a. delete the file (delete it from the custom table and null out the file_id column)
b. replace it with a new file (delete the old file from the custom table, upload the new file and update the file_id pointer)
How can this be done on the wizard-generated Update Form page?
Thanks

OK this is what I ended up doing
On the Update form, I added a Display as Text item and created an OnLoad computation to populate it with a Download link
select '< a href="foo.download_file?p_file_id='||file_id||
       '">< img src="/i/themes/theme_10/showhide_show.gif" / >< /a >'
from mytab
where id=:P3_IDAdded a File Browse item (P3_FILENAME).
Added a After Submit process that fires after the wizard-generated Automatic DML process that does
DECLARE
  l_file_id  NUMBER;
BEGIN
  IF (:P3_FILENAME IS NULL ) THEN
    RETURN;
  END IF;
  DELETE FROM myfiles
  WHERE       file_id = (SELECT file_id
                         FROM   mytab
                         WHERE  id = :p3_id);
  UPDATE mytab
  SET    file_id = NULL
  WHERE  id = :p3_id;
  INSERT INTO myfiles (file_id,file_name,mime_type,file_size,created_by,created_at,blob_content )
  SELECT id,
         filename,
         mime_type,
         doc_size,
         updated_by,
         updated_on,
         blob_content
  FROM   htmldb_application_files
  WHERE  NAME = :p3_filename;
  UPDATE mytab
  SET    file_id = (SELECT id
                    FROM   htmldb_application_files
                    WHERE  NAME = :p3_filename)
  WHERE  id = :p3_id;
  DELETE FROM htmldb_application_files
  WHERE       NAME = :p3_filename;
END;In plain English:
1. Allow the user to view/download the file
2. If they select/enter a file in the File Browse box, delete the existing file and replace it with the new file and store a pointer to it in the table.
It is working like a charm.
Hope this helps someone.

Similar Messages

  • File Upload in WebSphere App Server (3.5.4)

    Hi
    I am trying to upload a file from the client to the server. I am using oReilley's MultipartRequest to do this. This works fine in my Test Environment in Visual Age. But does not work in Websphere App Server.
    I get a "Error during native read operation". This happens mostly for big files more than 2 MB and sometimes for small files as well.
    Is this is a server issue? ('cos i tried using from jspsmart File Uplaod class and the result was the same).
    Any help is greatly appreciated.
    Thank You

    http://redeyeinteractive.com/index.eye?cart=1027565021121425&membersku=[membersku]&action=specific&SKU=507921572586523
    if this link don't work go to http://redeyeinteractive.com
    go to there java\applets path u will see a file upload component
    u can down load trial version free it is very easy to use.
    Good luck.

  • How do I add a file upload to my form?

    I need to be able to collect multiple files from a web form in order to keep them together.

    Hi DonPhilyaw,
    You can add a attach a file button in your form and you can get all the attachments at one place.
    Thanks,
    Vikrantt Singh

  • Htmlb table - File upload component

    Hi all,
    Is it possible to use the file upload component in a table view (htmlb for java) column?
    Rgds,
    Subu

    Hi,
    Here is one thought, there is onCellClick event for the Tableview, use that for the required column and add the file upload component as the event handler method in the onCellClick method.
    Link on table view events:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/eb/220a415a47f06fe10000000a1550b0/content.htm">Table view attributes and events</a>
    Link on OnCellClick:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/37/3d8b41b4b3b25fe10000000a1550b0/content.htm">onCellClick</a>
    Check the following link:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/63/9c0e41a346ef6fe10000000a1550b0/frameset.htm">File upload</a>
    Hope it helps.
    Regards,
    Vivekanadan
    Message was edited by: Vivekanandan

  • How do I add image upload to web app edit template?

    How do I add image upload to web app edit template. When creating fields I am selecting image from the field type. But the only way to upload and image is when I create the web app item within the admin. The option to upload an image is not available when the user submit web form opens.
    Wont send any of these questions through this email anymore but really needed assistance.
    Thanks,
    Gordon

    On the Details tab of the Web App setup, under Web App Item Options; have you ticked "Allow File Upload" and specified a Default Upload Folder?

  • How to add a field for multiple file upload in WebApps ?

    I am creating a WebApp for user to save some information with multiple pitcures. I can only see a single uploader.
    How can I add multiple image uploader and How can I create a custom file upload field rather than image upload ?

    Hi,
    There's no other upload field type for web apps.  You'll need to use the "image file type" to apply multiple file upload fields within the web app form in this case.
    Kind regards,
    -Sidney

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to "Add" Button to upload file in Notification PG?

    I have a question on Extending/Customizing notfn to have "Add" attachment button to upload a document (some stnd template that Our business has) on either NotifDetailsPG or /oracle/apps/fnd/wf/worklist/webui/MoreInfoPG when a Approver opens notification to APPROVE/Reject
    I'm wondering why Oracle didn't provide this feature of Uploading a file (along with Response input text area that they provided already) in NotifDetailsPG?
    Business Reason: Our Business wants to upload a doc when an approver Rejects the notification (our case: iExpense module filing Exp Report) telling employee to follow some protocals
    Question on OAF:
    Is it possible to extend NotifDetailsPG or MoreInfoPG to upload a file. So, that when it goes to requestor they can open this file back and read thru. I know we need to insert a record in fnd_documents and fnd_attached_documents and /or fnd_lobs...but i don't know how to retrieve it back....Any hints....
    Thanks
    Raghu Kulkarni

    to clarify again....
    In the WF notification during the time of "Reject"ion or "Approv"al, we want to upload a file and then perform Reject/Approve action. Can we extend the page to have Add button to upload file? Is that a lot of work?
    Please any one give some suggestions...Thanks
    Raghu Kulkarni

  • I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections

    I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections

    You should be able to just place them in your Books library in iTunes and check to ensure that your Book library is configured to sync to your iPod when you sync your iPod to iTunes.

  • How to add a file as an object in Numbers spreadsheet

    In MS Excel one can add any file namely doc, xls, PDF as an object in a spreadsheet......how can we do that in MAC Numbers

    Hi Niranjan,
    In Numbers for Mac,
    Menu > Insert > Choose...
    Navigate to the file that you want to insert.
    You can insert screen shots, PDF documents and photographs. They will become pics (with restricted editing features).
    I can't see a way to insert a doc, xls, Numbers, Pages or any other file type.
    You can Copy from within a document and Paste into Numbers.
    What are you trying to do?
    Regards,
    Ian.

  • Upload file of type Spreadsheet.ods  to internal table

    Hi Experts,
    can any body give me function module to upload file of type Spreadsheet.ods  into internal table
    Thanks in Advance
    Narendra

    Hi Renu,
    it is not supporting this function modules.
    we r using open office and its just like excel sheet.
    even function module ALSM_EXCEL_TO_INTERNAL_TABLE
    not supporting.
    Narendra

  • Spreadsheet app that opens Excel files?

    I should have asked this in my last post about word processors in OS X. If I'm just a casual user who rarely needs to open Excel files (e.g. friends email me some spreadsheet about who knows what), should I just plan on using NeoOffice (OpenOffice), or is there some other option out there if I don't want to buy MS Office? It seems that iWork doesn't even come with a spreadsheet app. However, even if it did, I'm wondering if there'd be another alternative sufficient for a casual user like myself.
      Mac OS X (10.4.6)  

    NeoOffice handles multiple sheets and has loaded my Excel files with no problems. I have not used NeoOffice extensively as I downloaded it to become familiar with what it can do, so I have not come up against its limitations yet. NeoOffice is a large program (338 mb on my external hard disk) which contains all the modules in one (rather than separate programs like Word, Excel and PowerPoint), so it takes a while to initially open but once open it switches between the modules with little delay.

  • Kobo APP download Docs, PDF's Kobo said to convert the PDF using Adobe Digital Editions, then I'd be able to upload to the Kobe APP via iTunes. Where is File Sharing under the Apps tab located?

    I've uploaded my PDF to Adobe Digital Editions, but can't find where on iTunes to select file sharing under the Apps Tab... as specified in the instructions in the Kobo APP for the iPhone... and a rep from Kobo told me it was possible.

    For future questions, this forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with an issue if you ask in the general iTunes forums.
    Regards.

  • File Upload App

    I have created an upload file portlet in .NET (4.5 ws using Plumtree .NET web controls for VS.NET) and I am using the htmlfileinput control which proiveds a 'browse' button to the local drive. you select the file and click a plumtree submit button to upload the file.If the file is less than 4 megs, all is well. If it greater than 4 megs, I get an ugly, red 'error accessing gatewayed content' message.I have set my httpRuntime maxRequestLength to allow for 20 megs in the web.config of my .NET app. This has no effect.Am I missing something in Plumtree 4.5??
    I can upload a file larger than 4 megs thru the default Documents Directory, but since I have no check-in, check-out there, I am writing my own doc management system based on plumtree users and groups.

    Unfortunately file uploads will never be possible with an in-page refresh. The refresh uses javascript to post the content and javascript cannot retrieve the file data from the client.
    Moreover, the web controls will tryto perform an in-page refresh but as you've seen, you won't get the file data. There are a few workarounds though. You could do the file upload section in another web app which does NOT use the web controls - then pass control back to the main app. Another thing you could try is to use a submit button/imagebutton WITHOUT ptrender=true on it - this should perform a standard submit & leave the file data intact.
    [In the upcoming 2.2 release this is addressed such that in-page refresh will be disabled for file upload forms.]

  • How to get Spreadsheet App. files off of ICloud?

    I upgraded to IOS7 on my Ipodtouch Gen 5. First I backed up my files to the ICloud. The Spreadsheet App I bought at the Apple Store last year is no longer sold there. The Spreadsheet App now crashes on IOS7 (it was working great on IOS6 with my many files). How do I get my suposedly backed up to ICloud Spreadsheet App files off of ICloud and onto my computer? Perhaps I can than load them onto another IPOD (older IOS) that I have that has a working Spreadsheet App. I do not want to loose all me spread sheet files.

    Hello there, MarioPoli.
    There are a couple of ways to download your content. The following Knowledge Base articles cover how to get content down to your computer:
    iOS: About File Sharing
    http://support.apple.com/kb/HT4094
    and
    iCloud: Access iWork documents stored in iCloud
    http://support.apple.com/kb/PH2704
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

Maybe you are looking for

  • How to handle binary file at the time of import in javacvs

    hi , I am using netbean api for cvs command.I am having the same problem that i am not able to open binary file after importing in cvs repository. I want to import a directory which contain both text and binary file. can you please hel me out to how

  • Idoc edited with new values

    Hi,    I have an idoc with no 32945925 which is in green with status 70 but this idoc is edited and a new idoc 33010450 has been generated but this idoc is in yellow with status 69.    How far I can assure that idoc 33010450 has been successfully pro

  • Reasonable price for Windows 7?

    I see that the standard price for Windows 7 Premium is $199 (full version). But some retailers are selling copies for $80 or $90, which makes it much more tempting to try out Boot Camp. Are such prices too good to be true--pirated or outdated version

  • Selecting SCXI-1122 channels in the Test Panels

    All 16 SCXI-1122 channels are multiplexed to channel 0.  Is there a way in the Test Panels in MAX to select a specific channel of a SCXI-1122 card in SCXI-1000 chassis so that voltage appears in the test panel? Message Edited by paryani on 08-25-2007

  • Why is CC Application Manager empty?

    When I open the CC Application Manager, there is nothing under the words Creative Cloud.  Any idea what I should do?