Error message not displayed - Downloading files in a table

Hi!!!
I'm following the guide to download files onDemand in a table, you can find that guide at:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f
If found a problem with the guide: What would happen if there's an error while downloading or somenthing else? There the author doesn't explain how to show an error in the view.
What I'd like to do is to show a error message in the view where the table is.
I tried to add some code, but it doesn't finally show the error message.
I have a method that generates the file and returns the path of the file in the context, so I can read it. It return boolean (true if the file was generated, false on the contray). That method is called executeZgav_Sf_Formulario_Sv_Input(nroEmpleado, nroViaje, morei, datosEspejo); and is working fine.
I also have a static class that reads a file and returns the byte[] called: ManejoArchivos.getByteArrayFromResourcePath(wdContext.currentOutput_FormularioSVElement().getP_Path(), true);
But if for example, the parameters are incorrect and the file cannot be generated, the method is supposed to show an error but is not displayed on the screen.
I have some code after that which validates if the file could be read or not and returns the bytes of a prewritten PDF file with an error message.
Added code:
          byte[] r = null;
          boolean continuar =
               this.executeZgav_Sf_Formulario_Sv_Input(nroEmpleado, nroViaje, morei, datosEspejo);
          if (continuar)
               try {
                    r =
                         ManejoArchivos.getByteArrayFromResourcePath(
                              wdContext.currentOutput_FormularioSVElement().getP_Path(),
                              true);
               } catch (FileNotFoundException e) {
                    wdComponentAPI.getMessageManager().reportMessage(
                         IMessageData.ARCHIVO_NO_ENCONTRADO,
                         null,
                         true);
               } catch (IOException e) {
                    wdComponentAPI.getMessageManager().reportMessage(IMessageData.PROBLEMA_IO, null, true);

Hi Alejandro,
Try This.
try
catch (FileNotFoundException e) {
wdComponentAPI.getMessageManager().reportException("Given FileNotFoundException : "+e.getMessage(),true);
catch (IOException ex) {
wdComponentAPI.getMessageManager().reportException("Given IOException : "+ex.getMessage(),true);
Re: How to display which exception Is Raised?
Regards,
Mithu

Similar Messages

  • JSF Error Message not displaying/popping up in clickToEdit table

    I have an entity object validation rule which displays a message when the validation fails. I have set the Validation Failure Severity as an Informational Warning. I do want to user to continue if he is happy to do so. Everything works fine when testing in the model project.
    Now, in the ViewController project when I add the View Object to a page as a af:table component the Warning message only comes up if the tables Behavior/EditingMode property is equal to editAll AND if the inputText Behavior/AutoSubmit property is false. It actually seems like this is the only time the validation is performed…
    If I change the tables Behavior/EditingMode property to be clickToEdit the warning message does not come up anymore?
    If I change the inputText Behavior/AutoSubmit property equal to true, then the warning messagewill not come up in ether of the editAll or clickToEdit table. A orange border will be displayed in the editAll table, but no message?
    What is the difference, and how can I get the warning message to be displayed when the table is clickToEdit table?
    I am using JDeveloper 11.1.1.3 PS2
    Thanks

    Hi
    Just to mention. It seems this issue was a bug in 11.1.1.3, and it is fixed in 11.1.1.4...
    I still don't know how to get around the problem in 11.1.1.3, but atleast it is working in the latest version.

  • How do I view downloaded content when the error message, not a supported file type or because the file has been damaged, shows up?

    I trying to download a book as a pdf to view through my adobe reader. But every time I do I keep getting the same error message saying that the file is not a supported file type or because the file has been damaged it can't be opened or viewed. What do I do and how do I get it to work. Because as of now I only have one option of downloading the book and I've tried to download the app notable pdf to see it that worked but it didn't either. As of right now I'm using google chrome but I also tried using Safari but it's still not working. I have a Mac with a Mac OS X updated system. I need an answer ASAP. Can anyone help me?

    I have the same issue.  Almost none of the PDFs I download from Safari browser can be opened. Same message about the file being damaged or not really a true PDF.  Neither of these are the issue here. Size of file is not an issue. I have Acrobat Reader XI so I believe that's pretty up to date.  If I open with Text Editor the file is blank.  any ideas?

  • Error message not displayed in a pop up

    Hi ,
    I have a pop up screen in my web dynpro  with a input field and two buttons.
    i have a error message written in the WDDOBEFOREACTION method of my pop up window. But the message is not displayed on the window. But If the same is written in the event handler of the button click it is triggered.
    Please help me to display the message with the code in WDDOBEFOREACTION method  .
    The code is as below
    lo_nd_bp_data = wd_context->get_child_node( name = wd_this->wdctx_bp_data ).
    * get element via lead selection
      lo_el_bp_data = lo_nd_bp_data->get_element( ).
    * get single attribute
      lo_el_bp_data->get_attribute(
        EXPORTING
          name =  `BP_NUMBER`
        IMPORTING
          value = lv_bp_number ).
      CHECK lv_bp_number IS NOT INITIAL.
      IF zcl_rms_webdynpro_texts=>check_for_victim_bp( i_bp_number = lv_bp_number ) = abap_true.
    * get message manager
        DATA lo_api_controller     TYPE REF TO if_wd_controller.
        DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
        DATA: lv_p1 LIKE syst-msgv1.
        lo_api_controller ?= wd_this->wd_get_api( ).
        CALL METHOD lo_api_controller->get_message_manager
          RECEIVING
            message_manager = lo_message_manager.
        lv_p1 = lv_bp_number.
    * report message
        CALL METHOD lo_message_manager->report_t100_message
          EXPORTING
            msgid                     = ZMSG_CLS
            msgno                     = '222'
            msgty                     = 'E'
            p1                        = lv_p1
            cancel_navigation         = abap_true
            enable_message_navigation = abap_true.
      ENDIF.
    Edited by: SAP LEARNER on Jan 5, 2012 1:37 PM

    have a error message written in the WDDOBEFOREACTION method of my pop up window. But the message is not displayed on the window. But If the same is written in the event handler of the button click it is triggered.
    strange..
    wddobeforeaction will trigger then event handler wil trigger then wddoafteraction will trigger.
    Did you put a break point in wddobeforeaction?
    Regards
    Srinivas

  • Error Message not displaying full error msg in screen

    Hi Frds,
    Need to display the error message as my specified words.... . I have created a message class also... even though its not displaying mesage properly
    My Message i passed here . R&D Material already exists.........

    Hello Kabil,
    If you use '&' then your message will be truncate in Status bar message. Best option would be use 'and' instead of '&' the your problem will be resolved.
    Cheers,
    Vadamalai A

  • Why error messages not displaying in installed AIR app?

    Hi!
    Help me please understand how AIR handle errors. When I run air application from the Flex Builder and have some code that
    generates an error, a window appears with the error description, such this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at MyApp/genError()[C:\FlexProjects\MyApp\src\MyApp.mxml:10876]
        at MyApp/___MyApp_Button92_click()[C:\FlexProjects\MyApp\src\MyAppmxml:10880]
    So I can see where error is occur and handle it. But when I release build the same app, run it, click the button that generate error, nothing happens, no error messages etc. So users can not catch bug even if it happens and can't reported it ...

    Thanks Ted!
    I will make every effort to debug errors at development time, but can not be 100% sure that they can all be found immediately. Can I set in the compiler option some parameter to 'true' for displaying error messages or something like that?

  • Download folder does not display downloaded files; nor ask destination

    When I download a file, the Download folder opens but does not display the downloaded file. If I set the option to Ask for destination, it doesn't ask, just opens the Download folder with nothing displayed. This is happening on two machine.
    Thanks for the help.

    If you want to keep a file that is opened in an external program then you either need to save it in the program if it permits or use "Save Link As" in the right-click to save the file. Files opened in an external program are never guaranteed to stay in the location, so editing a text file of other file that is opened in a program and save it under the same name will likely cause you to lose this edit.

  • I keep getting error message safari cannot download file.

    Every time I try to download a Mac game from Bigfishgames I get casuarina cannot download file. Also will not allow me to download app. I am a new iPad user.  Am I doing something wrong?

    Correct, Safari can not be used to download files on the iPad. Also a Mac based game will not work on an iPad. Any available Apps for the iPad need to be downloaded from the App Store.

  • Error message not displaying when stock is zero

    Hi friends
    pls guide me how to solve , when ther is zero stock in the system for the particular item is not showing any error message , instead it is creating the delivery doc without any error message .
    pls tel me where would be the problem .....
    awaiting for the reply sooon ....
    Thanks in advance
    Mahi.

    Check Material Master, it it allows Negitive Stock. If yes then it will allow to process the Delivery Document.
    It is also possible that Availability Check is not maintained in Material Master ot settings of Availability Check.
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • I keep getting error message "not enough space on startup disk" on my macbook 10.6, even though I've deleted and compressed many files. Could something else be the problem?

    Somehow 1500 web pages were downloaded into my iphone app! That's when the trouble began Now, I keep gettig error message"not enough  room on your start up disc. "So I deleted most of theml, but when I compress/delete files, it doesn't help. Now i'm unable to back up to a disc, because I get a similar message about lack of room.. I can't download apple updates or printer updates. My computer is almost unusable. When I took it to the Apple store they had no idea what was wrong.
    I bought an external hard drive-Free Agent Go Flex which doesn't seen to function, and has no user interface and apparently little tech support. My cursor is all over the place. No one at Apple seems to be able to fix this computer. Any suggestions for my next move?
    Thank you.

    See Here for Troubleshooting
    Free Disc Space
    http://www.thexlab.com/faqs/freeingspace.html
    See Here for Resolving Startup Issues
    http://support.apple.com/kb/ts1417

  • Bearts Audio Control Pannel will not open. Get error message cannot find startup file

    Bearts Audio Control Pannel will not open. Get error message cannot find startup file!
    Downloaded and instaled up-date for IDT audio from driver up-date. After installation could no longer oppen Beats Audio Control Pannel.  Looked for download to re-install BEATS Audio but cannot find one.
    Any suggestions.
    Sound works with IDT driver installed.
    Pavilion P7-1500Z

    Hi,
    Try using Recovery Manager to reinstall the IDT HD Audio Driver ( this will also reinstall the Beats Audio interface ) - the procedure for using recovery manager to reinstall Software and Drivers is detailed in the document on the link below.
    Recovery Manager - Windows 8.
    Recovery Manager - Windows 7
    After the reinstallation has completed, restart the PC.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Mavericks Update - Error message - The product distribution file could not be verified

    Help!
    Trying to download mavericks (from 10.7.5) as I have just had a new hard disk isntalled and need to start from scratch.
    Wanting to re download iphoto but I can't as I need a newer OS so trying to download mavericks from the app store. My internet is very slow and keeps cutting out so I have tried a few times but it's not working.
    Now I'm getting an error message - 'the product distribution fil could not be verified'
    If anyone can help that would be great.
    Or even let me know where I can get a copy of iphoto to suit OS 10.7.5 so I don't need to download a whole new OS.

    You're trying to download a 5 GB file. If your Internet connection is lousy, you won't have much success. Try another network.

  • Every time I try to download Firefox, I get an error message tha says the file is corrupt. How do I fix it?

    The file will download approximately 40% and then I get an error message that says the file is corrupt and the download window closes automatically. In addition, I have had this trouble with two separate computers using two different operating systems.

    Download a fresh Firefox copy and save the file to the <u>Desktop</u>.
    * Firefox 6.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

  • Had to wipe and reload my computer, am trying to download web premium 5.5 but when i try to open and install gives me an error message of trouble extracting file try downloading again. How can i download?

    Had to wipe and reload my computer, am trying to download web premium 5.5 but when i try to open and install gives me an error message of trouble extracting file try downloading again. How can i download?

    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5.5: http://prodesigntools.com/adobe-cs5-5-direct-download-links.html

  • I am having problems with  Olympus .orf files one files cannot be read by Elements 10 and Lightroom 4. Both provide an error message saying that the file is not recognized. Any ideas?  minzen

    i am having problems with  Olympus .orf  which cannot be read by Elements 10 and Lightroom 4. Both provide an error message saying that the file is not recognized. Any ideas?  minzen

    That camera model is too new for your programs. Every camera has its own raw format and ACR must be updated to include the info for each new model as it comes out. The workaround would be to download the free Adobe DNG converter and use that to convert your ORFs to DNGs that your version of Camera Raw can read.

Maybe you are looking for

  • Printing multiple pdf files at once

    I have tons of invoices I need to print up. They were things I should have printed along all year, but I opted to save as pdf instead, now I need them on paper! Is there a way, perhaps with a workflow or 3rd party software, that I can select them in

  • Encoding Type XML Document

    Hi, I have an XML document which is essentially data pulled from the craigs list website. It contains alot of Ampersands and pound signs and other stuff which i have been told does not follow the UTF-8 encoding which i put in the tag at the top of th

  • Dbms_jobs problem

    Hi all, I have an issue with jobs in oracle. I have run a job in using dbms_job.submit... Now when i query user_jobs it shows one row for that perticular procedure. The column "*Failures*" of table user_jobs has value =1 I think my job has failed. Wh

  • Make option delete default

    Is there a terminal command to reverse the delete and option delete behavior in mail? So instead of having to hold option + delete, I can just hit delete and get the same results...

  • Check box script help please

    I'm going to give this one more try. I have been trying to get the script below to work to have a check box make a text field visable and hidden when it's checked and unchecked. if (checkbox.rawValue==1)      textbox.presence="visable" else      text