Issue with File Download(messageDownload) on Search Page.

Hi,
I created a custom OAF search page which fetches values from one table. The document in getting stored in my custom table in a BLOB colums and NOT in FND_LOBS.
The table has 3 collumns along with others:
1st is primary key (Record_Seq) ==> number data type
2nd to store actual file name (File1Name) ==> varcahar2 data type
3rd to store the actual uploaded data (File1Data) ==> BLOB data type
The reason for having the “File1Name” is so that I can display the original file name of the document that was uploaded, instead of just the “view” in the search page results .
On the File1Data BLOB and created a messageDownload for that under query results table with following details:
ID : File1Data
ItemStyle : messageDownload
FileMIME Type : pdf
Datatype : BLOB
View Instance : LacEmpExposureVO1
view Attribute : File1Name
File View Attribute : File1Data
When I click on the "File1Name" data hyperlink, it is opening only the first document corresponding to the first record in the search page results.
For example, If my search page returns 10 rows then when I click on the file1name on any row, It is open the first row file name only.
I have a primary key column(RECORD_SEQ) in the Table / EO / VO which is displayed in the search page results.
Also one weird thing is happening:
If I try to do this more than 2 times then it is opening the update page with the first record from the search page results…
I tried to print the context and it is nul the first time, But the second time then context is changing to "update". Dont know how this is happening????
Any advice is greatly appreciated as it is very crucial for me to get this resolved ASAP. I have looked at several forums and did a lot of things as advised in the forums . But nothing seems to work for me.
Thanks,
Mir
CO code for the search page
===========================
if (pageContext.getParameter("Create")!= null)
System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of CREATE");
pageContext.setForwardURL
("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureCreatePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, //Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of UPDATE");
System.out.println("LacEmpExposureCO ==> RecordSeq in PROCESS FORM REQUEST is: " + RecordSeq);
HashMap params = new HashMap(1);
params.put("RecordSeq", RecordSeq);
pageContext.setForwardURL
("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureUpdatePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
params,
true, //Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
else {           
String strEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
System.out.println(strEvent);
System.out.println("Into the last ELSE part in LacEmpExposureCO.java");

Duplicate post -- Issue with File Download(messageDownload) on Search Page.

Similar Messages

  • Issue with file download from BLOB type data

    i have been using this for a while, with no problems, including on hosted machines.
    the upload to the database works fine.. not the issue, and the download script also works fine, on the local WAMP machine.
    but once moved to the server it fails.. the query does not work.
    i have a feeling that it is something to do with the managed hosting i am using, but they say no, i have tried it on 2 seperate hosted machines (different providers), with no joy.
    if i run the select query on the hoisting server via phpmyadmin, the query runs ok.
    any suggestions as to what may be causing the problem on the server compared to the local WAMP machine?
    i really don't know where to start looking, or where to point the hosting company.
    This is the php code to download the blob data, works fine on local WAMP setup, browser asks if you want to save the file/open etc. as expected.
    <?php require_once('Connections/connTracker.php'); ?>
    <?php
    // if id is set then get the file with the id from database
    if(isset($_GET['docindex']))
               {$id    = $_GET['docindex'];
            $query = "SELECT document_name, document_type, document_size, document_content " .
               "FROM tracker_documents WHERE document_index = ".$id;
    *** seems to be failing here when running the query ***
    $result = mysql_query($query) or die('Error, query failed');
               list($name, $type, $size, $content) = mysql_fetch_array($result);
         header("Cache-Control: maxage=1"); //In seconds
       header("Pragma: public");
         header("Content-length: $size");
               header("Content-type: $type");
               header("Content-Disposition: attachment; filename=$name");
               echo html_entity_decode ($content);}
    exit;
    ?>

    Hi Gun,
    You are the only one responded to my issue. I have allocated some points.
    Yes. I have checked the assignment in CRM organizational model.
    I did download the org. structure from ECC 5.0
    All objects including sales offices are activated for determination and I have verified with green light
    As per your suggestion if the sales area data is not matched between the two systems, then how come the error will not reappear during the bdoc reprocess?
    What is missing during the first time bdoc process? Looks something is missing for validation module?
    Any inputs?
    Thanks,
    Raj

  • FIle download not working in page fragment

    Hi All,
    I have to download a file . I am using Dynamic tab shell and in one pf my page fragement link to download a file is avaliable...
    I did a POC on jspx and its working fine but when i try to use the same code in my jsff (page frament ) its not working any idea that do i have to do anything specific to acheive the same..
    Thanks
    Shubhangi

    Shubhangi/Timo,
    was this resolved? I am having the same issue. File download works fine in a jspx page but the same code is not working when file download is used as part of a page fragment.
    I have a table column that has the filename as commandlink with a managed bean code as below.
    public oracle.binding.BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public void downloadFile(ActionEvent actionEvent) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    // myDocumentLocation specified in web.xml
    String DOCUMENTS_LOCATION =
    fctx.getExternalContext().getInitParameter("myDocumentLocation");
    if (DOCUMENTS_LOCATION == null) {
    // DOCUMENTS_LOCATION = "C:\\Documents and Settings\\xxloc\\";
    Application app = fctx.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = fctx.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, "#{row.OrderFileName}",
    Object.class);
    String s1 = (String)valueExp.getValue(elContext);
    System.out.println(s1);
    String filename = s1 ;
    File srcdoc =
    new File(DOCUMENTS_LOCATION + filename);
    if (srcdoc.exists()) {
    FileInputStream fis;
    System.out.println("exists");
    byte[] b;
    HttpServletResponse response =
    (HttpServletResponse)fctx.getExternalContext().getResponse();
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition",
    "attachment; filename=" + filename);
    response.setBufferSize(1024);
    // response.setContentLength((new Long(srcdoc.length())).intValue());
    OutputStream out = null;
    try {
    out = response.getOutputStream();
    } catch (IOException e) {
    e.printStackTrace();
    try {
    fis = new FileInputStream(srcdoc);
    int n;
    n = fis.available();
    while (n > 0) {
    b = new byte[n];
    System.out.println("b" +b);
    int result = fis.read(b);
    out.write(b, 0, b.length);
    if (result == -1)
    break;
    } catch (IOException e) {
    System.out.println("in file error");
    e.printStackTrace();
    try {
    out.flush();
    out.close();
    } catch (IOException e) {
    e.printStackTrace();
    fctx.responseComplete();
    It would be great if someone could guide me with this issue.
    Thanks,
    RAS

  • Issues with Lightroom downloading

    Is anyone else having issues with the download button for Lightroom 4.0 on the Adobe download page?  Nothing happens.

    Troubleshoot Adobe Download Assistant
    Mylenium

  • Issue with file to file in PI 7.3 (Splitting huge files)

    Hi All,
    Need your help in fixing the issue with file splitting
    We are doing some sample scenarios(file to file) on PI 7.3 server.
    We are trying to split a 10MB file by using the 'Advanced Mode' option in the sender file adapter. We gave max split file size as 2MB. The file got split into 5 chunks and was successfully sent to receiver file adapter. In receiver adapter we are able to see that. But in the target folder only 1 file was seen with size 2MB. All other chunks were missing. We need to have the whole data sent from source to target.
    How to fix this issue? please provide your inputs.
    Thanks and Regards,
    Lakshmi Narayana

    PI 7.3 has capable of processing larger size files.
    Questions:
    Have you picked EOIO quality of service? Hope you dont do mapping or content conversion for this file?
    have you seen this link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a06d79f3-d094-2e10-1a81-f4d802d0bcf1?QuickLink=index&overridelayout=true
    http://help.sap.com/saphelp_nw73/helpdata/en/44/682BCD7F2A6D12E10000000A1553F6/frameset.htm

  • Problem With File Download Dialog Box

    Hi all,
    I have jsp page that allows a user to export oracle data to excel.
    I have these code in my page:
    <%@ page contentType="application/vnd.ms-excel" %>
    response.setContentType ("application/vnd.ms-excel");
    response.setHeader ("Content Disposition",
    "filename=\"historicalrate.xls\"");
    I run the page and it popups a file download dialog box with Open and Save buttons.
    When I click the Save button a Save As window opens with a hr.xsl file name and Microsoft Excel Workbook(*.xls) as save type. It is what I want.
    The problem I have is when I click the Open button on the file download dialog box it displays data in excel format on a browser well. Then I click File > save as on browser's tool bar the Save As window pop up with no file name and a default Text(tab delimited)(*.txt).
    I need the file name and Microsoft Excel Workbook(*.xls) as default save type.
    Any help would be greatly appreciated.
    Please help
    Thanks

    I have the same problem with hui_ling.
    When user click on "Open", Excel start and open excel file correctly but the file name on excel title bar. 'Cause the file name is in Japanese characters. Any one can help me?
    Message was edited by:
    TNTVN

  • Problem with file download option in ALV via ITS. Please help!

    Hi Experts,
           I have a ALV report which I have web enabled using ITS service. In the ALV there is a delivered functionality for file download. It works fine when the report is run in the SE80. But when I run the ITS service for the report and choose file download option it displays a page saying "this page has been diaplayed due to technical reasons" with title "File properties". In addition it looks for Java runtime in the browser. After all this it opens a popup window for selecting path and file name.
    This is not user friendly and many customers have rasied their concerns on it.
    My question is that,
    Q1: What is the need of this "File properties page"? Why ITS calls this while ABAP editor does not?
    Q2: Is there any way we can suppress this so that it directly opens a popup window for selecting path and file name?
    Please help me.
    Thanks
    Gopal

    Hello Klaus,
    i have also the problem with these intermediate screens!
    We have in between installed patch 22 for ITS 6.20 and SP18 at SAP Netweaver 2004!
    But they are still not processed invisible for the users.
    Are there any additional parameters, which controls this behaviour(~webgui_updown_make_visible is not used!)?
    How can i check, if i have really a.ex. the actual ws.jar-file or other related files of the patch?
    We are using the standalone ITS with an own (modified) IAC with an own CI-design for the webpages. The intermediate screens are displayed with the "normal" SAPGUI-design because of the parameter ~generatedynpro. Without this it does not work, because the template SAPLSIT_0100 is missing!
    Or do you have an example for such a intermediate template with the applet for an upload of a file?
    Thanks in advance
    Felix

  • Problem with File download in ALV via ITS. Please help!

    Hi Experts,
           I have a ALV report which I have web enabled using ITS service. In the ALV there is a delivered functionality for file download. It works fine when the report is run in the SE80. But when I run the ITS service for the report and choose file download option it displays a page saying "this page has been diaplayed due to technical reasons" with title "File properties". In addition it looks for Java runtime in the browser. After all this it opens a popup window for selecting path and file name.
    This is not user friendly and many customers have rasied their concerns on it.
    My question is that,
    Q1: What is the need of this "File properties page"? Why ITS calls this while ABAP editor does not?
    Q2: Is there any way we can suppress this so that it directly opens a popup window for selecting path and file name?
    Please help me.
    Thanks
    Gopal

    Hello Klaus,
    i have also the problem with these intermediate screens!
    We have in between installed patch 22 for ITS 6.20 and SP18 at SAP Netweaver 2004!
    But they are still not processed invisible for the users.
    Are there any additional parameters, which controls this behaviour(~webgui_updown_make_visible is not used!)?
    How can i check, if i have really a.ex. the actual ws.jar-file or other related files of the patch?
    We are using the standalone ITS with an own (modified) IAC with an own CI-design for the webpages. The intermediate screens are displayed with the "normal" SAPGUI-design because of the parameter ~generatedynpro. Without this it does not work, because the template SAPLSIT_0100 is missing!
    Or do you have an example for such a intermediate template with the applet for an upload of a file?
    Thanks in advance
    Felix

  • Recent issues with already downloaded movies redownloading on thier own

    This appears to be a recent issue. But I have purchased and downloaded the following movies:
    How to Train Your Dragon
    How to Train Your Dragon 2
    ParaNorman
    These movies downloaded fine. No problems with them downloading or with playback. I have been having trouble downloading GOTG. (Nice to know I am not the only person.) This morning I start up iTunes and the above listed movies started downloading again. I have been having some issues with the recent versions of iTunes. Problems that I have never had before. Starting with iTunes 11 and continuing with iTunes 12, it seems to be losing track of what I have purchased. Ignoring what is currently in my Library and re-downloading already downloaded material. This cluttering up my Library with duplicate files I can't seem to get rid of. In some cases I am afraid to delete the duplicates. No telling what the impact will be.  Does anyone know a way to stop this? Or is this the new normal with iTunes. I had been considering limiting myself to just digital downloads. But with some of this strange behavior in the part of iTunes I will continue to purchase Blu-rays or DVDs for the foreseeable future.

    Have posted an updated version of the MST to my webspace here:
    http://homepage.ntlworld.com/minkus/shockwave/shockwave115606mst2.zip
    This new version fixes the following issues (changes to this version in bold):
    MsiInstaller repair & errors on first run as non-admin (removes 'AppData' directory entries)
    DCOM errors once Shockwave is installed (adds double quotes to the beginnning of LocalServer32 value)
    Incorrect TypeLib paths in the registry (fixed to use built-in [SystemFolder] property)
    Default CLSID description value missing (set to 'Shockwave ActiveX Control', as per the executable installer)
    Incorrect Shockwave 10 paths in the registry (fixed to use built-in [SystemFolder] property)
    Misspelt 'OptionalComponets' registry key (renamed to 'OptionalComponents')
    Missing .dcr, .dir, .dxr Content Type registry values (included in the executable installer)
    Fixed incorrect AppID registry key (set to use installer's [VERSION] variable)
    Removed 'Launch SWDNLD.exe' shortcut created in Programs subfolder (people don't want this - see here)
    I have tested this on my network and it all seems to work fine. Unfortunately my original plan to use the executable installer didn't work out as it does not include the Shockwave 10 compatibility components described here and here, so it looks like I'll have to keep this MST file up to date with the latest versions until Adobe fix the problems themselves...
    If you want to see the changes that I have made, load up Adobe's 11.5.6.606 MSI file in Orca, then use Transform / Apply Transform to apply the MST, and look for the entries in green.
    Please post any feedback to this thread, and I will try to respond if I can help!
    Chris Hill

  • Issue with RTL order in hyperlinks on Pages 5.2

    Hello,
    I am having an issue with the Arabic order when trying to add a hyperlink to a text in Pages 5.2. When I type the sentence without the hyperlink the order is perfect, however when I add the the URL link to the selected text the sentence order becomes corrupted.
    Could you please let me know if there is some feature that I am missing to apply or is just that the RTL support on Pages 5.2 is not very good?
    Do you have a workaround to this problem?
    So far the only way to solve it that I found it was to create a transparent text box with the link over the sentence. However I would like to found a better solution to this.
    Screenshots for reference:
    Correct order without link.
    Incorrect order with link
    Thanks in advance for your time and help.
    Leo

    negative101 wrote:
    Unfortunately I need to work on Pages 5.2 due to client requeriments. And also like you mention playing with the Text Direction is does not work since it change the whole paragraph direction and not just a specific selection.
    You client insists on .pages format?
    See this for other potential options regarding text direction:
    http://support.apple.com/kb/PH14203

  • Issues with my Macbook pro, the current page disappears and it goes back to the desktop.  I can't figure out what's wrong.

    I have been having problems with my Macbook ever since I had it in for service to replace the battery.  The issue is when I am surfing the page disappears and goes back to the desk top, and I have to reload it again.  This happens quite often while I am online, and is a definite glitch.
    Please help.
    Sam Oliverio

    String[] message = {
        "One, two, buckle your shoe",
        "One, two, buckle your shoe",
        "Three, four, shut the door",
        "Three, four, shut the door",
        "Five, six, pick up sticks",
        "Five, six, pick up sticks",
        "Seven, eight, lay them straight",
        "Seven, eight, lay them straight",
        "Nine, ten, this is the end",
        "Nine, ten, this is the end"
    if(n>0)
        System.out.println(message[n]);
    else
        System.exit(0);

  • I am using Windows XP SP3, I have problem with file download while resuming downlod giving error "file...could not be saved, because the source file could not be read." Please help me

    I am using Fire Fox 5 beta version. After pausing the long file download, when I press the Resume download button the above message appear each time asking "Contact to Administrator". This problem was not with Fire Fox version 3 and above. Please Help Immediately. Thanks in advance...

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • Issue with file name in receiver Communication channel

    Hi Experts,
      I am sending the files from SAP Application server to third party Application server.
    In my source folder i have different types of files with different names.
    but i need to pickup the files which is coming as of type sss_3300_was.txt and sss_3400_was.txt.
    what would be the logic for this.what my understanding is if i put sss_* it will works.
    If suppose the file is Exist in the folder as sss_3300_was.txt , so it will picked up and places in target folder.
    and next time if the file type is sss_3400_was.txt then that will pick up and places in the target folder.
    my question is, in the receiver comm channel what would be the file name scheme. i have tried with * and / but system has not been accepted as * can not be given.
    Kindly suggest what should i put in Receiver CommChanne file name sheme.
    Appreciate your inputs
    Thanks,
    Bhaskar

    Hi Satish,
    Thanks for your valuable inputs.
    Actually i need to change the subjet when i am asking other question...
    first thing is suppose i have 10 files like sss_3100_was, sss_3300_was, sss_3400_was........sss_3900_was  in the sender application folder and should be moved to receiver [target] folder with the same name.
    as you said mentioned above below is my undertsanding, please correct me if i am wrong.
    In sender cc
    1.  i will give file name as sss_*
    2. i will flag ASMA and also check file name.
    In receiver cc
    1. I will give file name as sss_*
    2. i will flag ASMA and also check the file name
    The above is my understanding with respect to your inputs,  is it correct?
    in receiver cc i have tried file name scheme as sss_*  but when i see the receiver CC log its telling that * is not allowed.
    may be i have not flaged ASMA at that time, but now i will flag ASMA in receiver CC dose it works? just need to confirm from you.
    Regarding seconf issue.
    when file is picking up from the source folder from SAP Application server as i can see file is picking up well and posting in third party folder and even in the sender cc and receiver cc logs i could see all shown in success.But when i see in the SXMB_MONI in the inbound interface the data are coming in the special charater format like @$??? and so on.But when i checked in SAP Appl server the same file contains the three lines of data like material number purchase order number and so on and it is Text file.
    below mentioned are done configs for sender CC by me.
    MP: file
    TP: NFS [as  it is SAP appl server]
    filepath:/
    file name: sss_*
    file type :text
                   add time stamp
                   ..... and so on
    Kindly advise me if any changes are required and also provide me inputs in case any correction.
    Thanks,
    Bhaskar Reddy

  • Permission issues with files put on desktop by Vista

    Hi Folks,
    I posted this before and got no response so I'm trying again.
    Trying to finally solve an issue that has dogged me ever since upgrading to Lion in the summer. Since installing Lion 10.7 (clean install), I now seem to be having File Sharing issues with a fellow colleague who is on Vista. When trying to open a file placed on my desktop by this user (who has been set up as a "real" network user in Sys Prefs) I get the following message:
    "You do not have permission to open the document "Some_Image.jpg".
    Contact your computer or network administrator for assistance.
    I have to do the following In order to gain access:
    1. Unlock small lock icon in bottom right of Get Info Window
    2. Enter Password in dialog that says "Finder wants to make changes. Type your password to allow this."
    3. Click the now enabled plus sign below list
    4. Select my self from the list of users
    5. Change privilege to "Read & Write" in Privilege column adjacent to my user name.
    Both Vista Machines do this to me although Windows 7 does not. UPDATE: one user has updated his vista install to WIndows 7 and I have this problem again.
    I had hoped that the 10.7.3 update would have fixed this problem for me as I read that the update addresses some Networking issues, but it hasn't.
    Any thoughts here?
    Thank you,
    J.E. Flynn

    Oddly enough, I can't even seem to provide "Write Only (Drop Box)" access to the Windows clients.
    My limited understanding of Widows networking and sharing is starting to rear it's ugly head.
    If I set up File Sharing and give the windows client access to a shared folder. It can copy files but still I do not have access to those (as described above).
    The only way I can get a Windows machine to access my Mac is for them to type my computers local IP in the Explorer address bar " \\192.168.1.XX " and login as me. Obviously, this is not desirable
    All other attempts to login from a Windows client are now failing.

  • File Download links on ADF pages

    Hi All, My requirement is to display no. of document links in pages. I am trying to use <af:fileDownloadActionListener> .
    I am getting list of files/document while loading the page from backing bean and looping through it using <af:forEach>..
    when i click on any link to download the document then fileDownloadBean.download function is called. So in backing function
    download how i know which document user has clicked to download ? Any idea ?
    <af:panelList id="pl1" clientComponent="true" >
    <af:forEach var="file" items="#{fileDownloadBean.listFiles}" >
    <af:commandLink text="#{file}" actionListener="#{fileDownloadBean.buttonClicked}" />
    <af:commandLink text="#{file}" visible="false" id="cl2" actionListener="#{fileDownloadBean.buttonClicked}">
    <af:fileDownloadActionListener filename="#{file}"
    contentType="application/msword"
    method="#{fileDownloadBean.download}" />
    </af:commandLink>
    </af:forEach>
    </af:panelList>

    Hi Tim, I tried to follow same step as mentioned in your blog..but getting y error no object found by id...
    function customHandler(event){ 
    var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("::cl2");
    alert('hello');
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.forceFullSubmit();
    actionEvent.noResponseExpected();
    actionEvent.queue();
    In my program commandlink is rendering by for each loop...i think in for each loop...iterating component does not assign proper ids...
    <af:panelList id="pl1" clientComponent="true" >
    <af:forEach var="file" items="#{fileDownloadBean.listFiles}" >
    <af:commandLink text="#{file}" clientComponent="true" partialSubmit="true" actionListener="#{fileDownloadBean.buttonClicked}" />
    <af:commandButton text="#{file}" id="cl2" visible="false" clientComponent="true" >
    <af:fileDownloadActionListener filename="#{file}"
    contentType="application/msword"
    method="#{fileDownloadBean.download}" />
    </af:commandButton>
    </af:forEach>
    </af:panelList>
    I appreciate your help..
    Thanks

Maybe you are looking for