File upload (again !!!!)

As someone very new to working with OAF, I need a bit more hand holding to create a new file upload page.
I have created a page with the messageFileUpload item which gives me a file open dialog and I know that I also have to add a submit button but I don't fully understand what code and where I need to process the file. (using fnd_lobs would be fine)
I have looked through the forum but I need the level of the tutorials to get me going
Thanks

I've been trying to get this file upload to work but am still having problems. When I run the code, I get a "oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for FndLobsEO.
and when pressing select "No current row for View (FndLobsVO1)"
In my CO I have the following code:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (!pageContext.isFormSubmission())
am.invokeMethod("createFileUpload", null);
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("Submit") != null)
am.invokeMethod("submit");
In the AM I have:
* Creates a new file
public void createFileUpload()
OAViewObject vo = (OAViewObject)getFndLobsVO1();
// Per the coding standards, this is the proper way to initialize a // VO that is used for both inserts and queries. See View Objects // in Detail in the Developer's Guide for additional information. if (!vo.isPreparedForExecution()) {       vo.executeQuery();     }
Row row = vo.createRow(); vo.insertRow(row);
// Required per OA Framework Model Coding Standard M69
row.setNewRowState(Row.STATUS_INITIALIZED);
} // end createFileUpload()
* Commits the transaction.
public void submit()
getTransaction().commit();
} // end apply()
1) Does there need to be any code that populates the columns or does the control sort that out
2) Once this is actually working, where would I get the ID of the inserted record ?
3) Would the PL\SQL processing code be placed in the AM ?

Similar Messages

  • Unable to get the filename from file upload UI element

    Hi,
    I added a FileUpload UI element.
    I created an attribute of type resource , assigned to the resource property of the file upload element.
    I created an action button called upload and added the following code.
    try {
           IWDResource resource = wdContext.currentContextElement().getFileupload();
          } catch (Exception e) {
             e.printStackTrace();
    when I debug to see the value of resource it is null.
    Please let me know where I am going wrong.
    Regards,
    Narayani

    Hi,
    Check if there are any space characters in your uploading path (file path).
    First try to upload a file without any space characters in the uploading path(file path). If the problem is with the space characters then use the below encoding & decoding to resolve that issue.
    Encoding while uploading the file:
    // Getting the file resource
    IWDResource resource = element.getCtx_va_FileResource();
    //Getting the resource name
    String resourceName = resource.getResourceName();
    //Encoding the resource name
    String encoderesourceName = java.net.URLEncoder.encode(resourceName,"UTF-8");
    Again while downloading you can use decoder.
    Hope this helps to resolve your issue.
    See this below link.
    Re: File Upload Problem
    Try this encoding even if there are no space characters.
    Regards,
    Charan

  • Image / file upload error         cannot upload image even after setting write permissions

    Hi there everyone
    I am having this problem when I try to upload a file (image file) to my server
    I have a dynamic for working fine , all the other fields insert the information ok then I try to add an image upload behaviour to a file field
    When I try to upload the file I get this error
    Error:
    An error occurred while inserting the records.
    File upload error: File upload error. Error creating folder..
    File upload error. Internal error.
    Developer Details:
    tNG_multipleInsert error.
    An error occurred while inserting the records. (MINS_ERROR)
    File upload error: PHP_UPLOAD_FOLDER_ERROR
    File Upload Error. No write permissions in "../../productimages/" folder.
    (FILE_UPLOAD_ERROR)
    So I login to my server and change the write permissions to 777 and then try again and get the same message
    I have closed DW and tried again and still get the same message......
    I think I have followed all the steps correctly..... I have done the same type of forms many time and tested them locally on WAMP testing server and all work ok......
    So..... Anyone got any ideas
    Any help would be great
    Have a nice day

    On 5/17/07 4:26 PM, in article [email protected],
    "Gü[email protected]" <> wrote:
    >
    > To my experience servers behave differently -- on some I really had to use
    > 777, others are happy with 755.
    >
    > in regards to "any user" :: On most ADDT respectively MX Kollection - based
    > backends I made the image & file upload feature available to user having e.g.
    > the "levels" 1 & 2, but not 3 -- I wouldn´t expose something like this to all
    > users
    >
    > Günter Schenk
    > Adobe Community Expert, Dreamweaver
    My backend is only for admin, so they are the only ones who can access the
    upload pages. My concern is an images folder on the site being 777. Can't
    anyone from the outside plant a file in that folder if they just know where
    to find it using an ftp program? ?

  • Unable to submit form without attachment if file upload fails

    Hi All,
    I have a form, in which I have a input file component.
    Scenario 1 - If i don't attach anything and submit the form, it is successful.
    Scenario 2 - If I attach a file of size less than 2 MB and then submit, it is successful.
    Scenario 3 - If I attach a file of size greater than 2 MB and then submit, ADF gives an error message saying " File is large" which is expected.
    3.1 - In the scenario 3, after file upload fails, I want to submit the form without attaching any file. But the form isn't submitted and the warning message always pops up.
    3.2 - If I upload file of size less than 2MB again and then submit, it is successful.
    Please help me in resolving the issue.
    Thanks,
    Harini.

    Try clearing the error messages
    <af:resource type="javascript">
    function clearMessagesForComponent(evt){
    AdfPage.PAGE.clearAllMessages();
    evt.cancel();
    </af:resource>Now all yo uneed to do is to call this javascript method e.g. using a <af:clientListener method="clearMessagesForComponent" type="focus"/>on a button or any other field.
    Timo

  • File upload with 'asp vb' backend

    Hello,
    I am trying to get file uploading with flex (flash buider) working. There are plenty of examples with a php backend, but i need the script for a 'asp vb' backend.
    I' ve tried lots of different approaches but can't get it right. Someone out there with a solution?
    Thanx!!

    Believe it or not I have to do this also.
    I have legacy ASP code that uses ASPUpload that I'd like to get working with my Flash CS5 and FlashBuilder Burrito front-ends.
    it's just multipart encoded.
    So, if you first test it with ASPUpload and a simple form, trying just FILE1 first, and it works with ASP backend then tackle the FlashBuilder side with some debugging.
    ASPUpload is still an extremely embedded component on tens of thousands if not more sites, and it was just updated, but I think the previous version just before this update, the one that's out there in code on so many sites, that is what Flash needs to work with.
    ASPUpload is doing its part, as it follows all the multipart encoded RFC rules and has worked for years.
    I'd love to join you in finding out what's going on here.
    This is a long-standing issue.
    I've done PHP also.  But again, enhancing an interface with FlashBuilder4 or Burrito, to integrate with working legacy code makes it hard when something is not working on the Flash side (it appears anyway) as ASPUpload form posts are extremely easy.

  • In File Upload the file name disappears once a drop-down option is chosen

    Hi,
    There is a pop-up which contains File Upload UI element, an input field and a drop-down list.  After specifying the file path, if i choose an option from the drop-down list, the file path disappears. However, the context attribute still holds the file path but at the UI level its not visible to the user. Please let me know what could be done for that.
    Thanks in advance.
    Regards,
    Deebika

    Hi Anoop & Heidi,
    Thanks a lot for your reply. It was really helpful.
    When contacted the framework people, they informed that once a file name is being specified in the client and a roundtrip is performed, in the meantime the file gets uploaded to the server. The file path is reset afterwards, in order to prevent the file from being transferred again and again.
    Regards,
    Deebika

  • ICR - FBICS3 file upload process

    Dear experts,
    In the process of ICR to we want to use the file upload option in the FBICS3(select documents) for reconciliation of the docs. And our file is placed in the application server. We have maintained the configuration in FBIC032 for the company codes(Here we are using multiple company codes), we mentioned the logical file path, custom structure as this file has some new fileds and we are data source as file upload in the data source field in this(FBIC032) config. But when I run the FBICS3 transaction it is not selecting the documents from the file placed on the application server. Can some one help me on this, whether i missed something in the config?
    Regards,
    Karthik.
    Moderator message: not related to ABAP development, please ask again in the appropriate functional or technical forum.
    Edited by: Thomas Zloch on Oct 22, 2010 11:23 PM

    Hi Rafael,
    Thank you for your answer.
    But the file upload functionality is not activated by the transfer type config but by the data source config (=File upload), no?
    Unfortnulately, the field data source cannot be modified for process 002 (always equals Documents of current process)
    BR
    Bernard

  • How to increase page size for balance file upload in Workspace.

    Hi All,
    Please suggest how to increase page size for balance file upload in shared Workspace pages.
    Thanks,

    A word of caution is in order regarding changing from facing to non-facing and back again. If you have overridden master page items, you'll get a second, non-overridden copy on all the even-number pages when that half of the master page is re-applied. This applies to master text frames which override automatically when text flows into them as well as to objects you manually override. I think you'll find this particular technique also only works for master text frames, whereas the Layout Adjustment should work in all situations where frames snap to guides.

  • File Upload capability

    Hi
    I implemented file upload capability using the following document.
    http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/web_complex006.htm
    This document saves the uploaded file to the system.
    Can someone please provide me the steps on how to save the uploaded file to the database?
    I am using jdev11
    Thanks

    Hi BradW,
    Thanks for your reply.
    I update MaxPermSize in the following locations:
    C:\Oracle\Jdev\jdeveloper\jdev\bin\jdev.conf
    C:\Oracle\Jdev\jdeveloper\system\system11.1.1.0.31.52.05\DefaultDomain\bin\setDomainEnv
    But the same error occurs again.
    Do I need to update in some other location? If so, could you please specify where can I increase the memory settings?
    Thanks

  • All plugins uptodate but on upload file get "USING one of the supported browser with latest Adobe Flash is required to experience enhanced file upload features

    I am freelancer. When I tried to upload files on elance it give following error and disable the upload button:using one of the supported browser with latest Adobe flash is required to experience enhanced file upload features.
    All plugins are up to date. Flash version 11.7 installed.

    I assume Firefox 19 worked fine on the site?
    Some sites may be mistakenly identifying Firefox 20 as Firefox 2, which is a very old version they probably no longer support. As a test, you could "lie" to the site about your Firefox version and see whether that little deception works.
    This take a minute to set up. Here's how:
    (1) Select and copy the following preference name to the clipboard:
    general.useragent.override.elance''.''com
    (2) In a new tab or window, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (3) In the filter box, type '''override''' and pause while the list is filtered
    (4) Make sure '''general.useragent.site_specific_overrides''' is set to its default value of true (or right-click and choose Reset if it is not).
    (5) Right-click anywhere in the preference list area and choose
    New > String
    then paste the preference name you copied. Click OK and enter TEMP or asdf or any text as a temporary placeholder. You should see the preference added in bold. Leave about:config open and switch back to this tab.
    (6) Select and copy the following useragent string to the clipboard ''(it's all one line)'':
    Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0
    (That's Firefox 19 on Windows 7 32-bit)
    (7) In about:config, double-click '''general.useragent.override.elance''.''com''' and paste to replace the temporary text with the new useragent string. Click OK, you're done here.
    Now try reloading a page where you need to upload (use Ctrl+Shift+r) and test that function again. Any change?

  • File upload fails if name of the file is in Japanese

    Hi all,
    I posted this message before, but could not get any response. So posting again.
    In my JSP app, I am using the latest MultipartRequest class to develop the file upload functinality through a form. Till now I was using MultipartRequest old release which was working fine for files names in English. But the new one supports international languages and therefore I am trying to use that to upload files named in Japanese. But it fails.
    Worse part is I dont get any error. But the file never reaches the desired location. I am trying to print the filenames in different Java methods just to see the progress, and I can see all the filenames/paths printed right. But the file never gets uploaded.
    Any hints?
    m_asu

    Afternoon!
    I had successfully done the same work . Besides Japanese filename, Korean and Chinese filenames are running ok.
    you should check following points:
    1. jsp's content-type:
    <META http-equiv=Content-Type content="text/html;charset=shift_jis">
    2. form's type:
    <form method="POST" name="aaaa" enctype="multipart/form-data" action = "MyServlet">
    if both points are right, perhaps you should download a new release of uploading file from http://www.servlets.com

  • File Upload Problem in JSF

    Hi all,
    I have a problem in file upload. I have a file upload third party component which uploads the file with the filter action depending on the url. My requirement is to trace the uploaded filename for addressing it with the database record. So I need the filename in my backing bean to store it in the database. Ho can i get the filename from view page to backing bean. Any Ideas and help please.
    Many thanx,
    vijaycanaan

    Mr BalusC,
    Yes Iam talking about a custom made upload component. The fileupload tutorials u send are good but my requirement is not meeting them. Among my requirements one is mutilple file uploads in the single view page. This is possible at present with my custom upload componet. Only if the problem gets solved. Any way once again please think on my problem and give your solution on it.
    Here is my problem:
    The problem is I have to access the components from view page which this kind of requirement possible in jsp by request parsing which results the key value pairs of the form components. This same thing/way I should get in backing bean from JSF view page.
    The solution I want may like as follows.
    Note this code is incorrect and wrong but for to understand my requirement.
    someobject.getComponentIdValue("clientID"); which returns a string value as d:\images\Tutle.jpg
    The clientID is upload file component' Id . In the request it may be the key associated with value as file complete path. By this kind of way my upload filter is able to get the orignal file. Ok i need this in my  backing bean to get the orignal filename to insert into the database. Please for this give the solution or reply.many thanx,
    vijaycanaan.

  • Progress Bars in File Upload Behavours

    Progress Bars in File Upload Behavours would be great.

    I think we need to be realistic ;)
    KTML4 - isn't going to happen, it was dropped, other 3rd party products are surfacing,
    sadly, we'll not see that again.
    Calendar was a separate Interakt application (not really a toolkit item)
    like the ADDT form control date/calendar picker - so I doubt that will happen
    That said - it would still get my vote for a comeback.
    Ajax tool - need to specify EXACTLY what tool and how it would expand on the ADDT and how it would relate to SPRY and other Components now being made available for DWCS4 ie YUI etc
    atb
    Paul

  • Problem in Flat File Uploading

    Hi everyone
    During a flat file uploading, I get a message for each record of my SKU (Stock Keeping Unit), for eg for SKU 1017023, I got a message
    <b>Value '1017023 ' for characteristic PISKU is in external format     RRSV     9</b>
    PISKU is the field name.
    The whole extraction is failing.
    Kindly provide me some suggestions as soon as poosible!!
    If possible mail me at
    [email protected]
    Regards
    Gajendra Singh

    Hi,
    It seems there is a space in the value '1017023 '.You have to edit in PSA and then send it again else delete the request and change the flat file entry and reload the data.
    Hope this helps
    Assign points if useful
    Regards,
    venkat

  • File Upload Problem in Mozila

    Hi;
    My code is workin in IE but problem in Mozila Fireforx:
    <%@page import="org.apache.commons.fileupload.DiskFileUpload"%>
    <%@page import="org.apache.commons.fileupload.FileItem"%>
    <%@page import="java.util.List"%>
    <%@page import="java.util.Iterator"%>
    <%@page import="java.io.File"%>
    <%@page import="java.io.FileNotFoundException"%>
    <%@page import="java.io.BufferedReader"%>
    <%@page import="java.io.FileReader"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Upload Process</title>
    </head>
    <body>
    <%
    String record=null;
    try{
    System.out.println("Content_type:"+request.getContentType());
    DiskFileUpload fu = new DiskFileUpload();
    fu.setSizeMax(100000000);
    List fileItem = fu.parseRequest(request);
    Iterator iter = fileItem.iterator();
    FileItem fi = (FileItem)iter.next();
    if(!fi.isFormField()){
    File file = new File(fi.getName());
    out.println("NAME:"+fi.getName());
    File nFile = new File(application.getRealPath("/"),file.getName());
    // BufferedReader br =new BufferedReader(new FileReader(nFile));
    out.println("Name:"+nFile.getName());
    out.println("ABPath:"+nFile.getAbsolutePath());
    }else{
    System.out.println("Field ="+fi.getFieldName());
    } catch(Exception ex){
    ex.printStackTrace();
    %>
    </body>
    </html>
    Problem is for AbsolutePath it looking file under project directory.
    :D:\Dir name\build\web\.....
    PLEASE HELP
    Thanks in Advance
    Mamun

    Mr BalusC,
    Yes Iam talking about a custom made upload component. The fileupload tutorials u send are good but my requirement is not meeting them. Among my requirements one is mutilple file uploads in the single view page. This is possible at present with my custom upload componet. Only if the problem gets solved. Any way once again please think on my problem and give your solution on it.
    Here is my problem:
    The problem is I have to access the components from view page which this kind of requirement possible in jsp by request parsing which results the key value pairs of the form components. This same thing/way I should get in backing bean from JSF view page.
    The solution I want may like as follows.
    Note this code is incorrect and wrong but for to understand my requirement.
    someobject.getComponentIdValue("clientID"); which returns a string value as d:\images\Tutle.jpg
    The clientID is upload file component' Id . In the request it may be the key associated with value as file complete path. By this kind of way my upload filter is able to get the orignal file. Ok i need this in my  backing bean to get the orignal filename to insert into the database. Please for this give the solution or reply.many thanx,
    vijaycanaan.

Maybe you are looking for

  • PDF SCANS ERROR MESSAGE: CAN'T "OPEN THE DEFAULT APP FOR THIS FILE TYPE" EG. PDF

    OFFICEJET PRO 8600 PLUS , WIN 7, SCAN TO COMPUTER AS A PDF FILE.  ERROR MESSAGE: "  CAN'T "OPEN THE DEFAULT APP FOR THIS FILE TYPE" EG. PDF

  • Videos Destroy HDD?????

    I have an ipod video and latest itunes. I was using ipodmini+itunes since the release of the mini, never had any issues. Now with the new video ipod I can't use any video functionality... heres whats happened: Sync ipod with library via itunes- all g

  • Issue with GR

    Hello All, I am trying to perform GR but I am getting an error "Latest Possible GR date 08/08/2011". I am trying to change the date in PO Delivery tab "Latest GR date". But when I save the changes it again takes 08/08/2011. How to change The latest p

  • I have 2 options iphone 5c or macbook air

    i have 2 options that my parents said i can do i can buy a iphone 5c or macbook air 13inch what one would be better

  • Question about RequestResponseBean

    Hi all, I know from SP19, the RequestResponseBean module is available to achieve async-sync without BPM. This module can convert an async call to a sync call. I'm on NW2004 SP18 so I have no access to this module. Could anyone answer me some question