XML Editor - Page crashes by clicking the export button

Hello

I have an obligation to open a pdf file of the xml editor report at the click of a button. I captured the event the submitButton and written the code as follows:

{if ("Event.Submit". Equals (S1))}
OAApplicationModule am = (OAApplicationModule) pageContext.getRootApplicationModule () .findApplicationModule ("XXAM");
XMLNode xmlNode = (XMLNode) am.invokeMethod ("getQuoteDataXML");

Get the HttpServletResponse of PageContext object. The release of the report is written in HttpServletResponse.
DataObject sessionDictionary (DataObject) = pageContext.getNamedDataObject ("_SessionParameters");
HttpServletResponse response = (HttpServletResponse) sessionDictionary.selectValue (null, "HttpServletResponse");
try {}
ServletOutputStream os = response.getOutputStream ();

Set the output report file name and Content Type
ContentDisposition string = "attachment; filename is ABC.pdf ';.
response.setHeader("Content-Disposition",contentDisposition);
response.setContentType("application/pdf");

Download the file of XML as the XMLNode
ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();
xmlNode.print (outputStream);
ByteArrayInputStream InputStream = new ByteArrayInputStream (outputStream.toByteArray ());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();

Generate the PDF report.
() TemplateHelper.processTemplate
((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getAppsContext ();
"ASO."
templateCode,
((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getLanguage ();
((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getCountry ();
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF,
NULL,
pdfFile);

Write the PDF report to the HttpServletResponse object and rinse.
Byte [] b = pdfFile.toByteArray ();
response.setContentLength (b.length);
OS. Write (b, 0, b.length);
OS. Flush();
OS. Close();
} catch (Exception e) {}
response.setContentType("text/html");
throw new OAException (e.getMessage (), OAException.ERROR);
}
pageContext.setDocumentRendered (false); I don't know why, but found something similar online
}

The download window opens correctly. But, the mouse icon is changed to hourglass and I can't click on anything. I have to move to any other window in my system and return to this page click on save button. Also, once the file is downloaded, I can't click on anything on this page. I have to use the back button on the browser to return to the previous page.

Really appreciate any help to solve this problem.

Thank you
Bharath

Hi Bilodeau,

I suggest you go with the "submit" button and to avoid any problem with because it seems you are doing custom development.

Even if you want to go with button, set the type of action as the action of fire (if it is available, I have not worked a lot on the button) and check if it works.

Kind regards
Out Sharma

Tags: Oracle Applications

Similar Questions

  • cursor not click the logout button in yahoo, rediff etc pages?

    cursor not click the logout button in yahoo, rediff etc pages. For example, once I open my yahoo page, the mouse pointer does not change its appearance to the finger type when I try to click the logout or Inbox. This does not happen with chrome or explorer.

    This problem can be caused by that extended the Yahoo! toolbar or extension of Babylon also well down and covers the top of the browser window and therefore links and buttons in this part of the screen not clickable.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • What happened to the button on the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? I use it all the time and it is not on FF4.

    What happened to the button on the left end of the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? You can look at the drop down window of pages and just choose whatever you want. I use it all the time and it is not on FF4. I want to go back to the old FF.

    If you right click on your back button, or click and hold down the mouse button, it will display the list. (I prefer a click-right, because sometimes my fingers slide when I try to click and hold)

  • Cannot view XML input using XSL style sheet. Fix the error and then click the Refresh button, or try again later.

    This is the message I got when my backup stopped and said cannot complete backup. Need answers?
    Cannot view XML input using XSL style sheet. Fix the error and then click the Refresh button, or try again later.

    --------------------------------------------------------------------------------

    A name was started with an invalid character. Error during processing of the resources ' file:///E:/WindowsImageBackup/ray-PC/Backup 2011-0...

    Hi lrl1of5,

    (1) do you use Windows Backup and Restore?

    (2) if it works well before?

    (3) remember to make changes?

    It is sufficient to indicate the complete error message you receive.

    Method 1: Run the fixit available in the links below and check if that makes a difference-Worth to try
    Difficulty of broken desktop shortcuts and common system maintenance tasks

    Note: FixIt would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of DATA loss from that particular area.

    Method 2:  Clean boot the computer, then try to backup again

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

  • How to open 2 sites on start and 1 Web site when you click the home button?

    How to open 2 sites on start and 1 Web site when you click the home button?

    You can change your shortcut on the desktop Firefox with two starting URLS. To try:

    • Shortcut on the desktop: right-click on the icon, choose Properties
    • Icon taskbar pinned: clic click right on the icon, right click in Mozilla Firefox, click on properties

    Windows normally selects the shortcut tab. If this is not the case, go ahead and click on the shortcut tab.

    You will see the target highlighted. On 64-bit Windows, which is usually either not less the following:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    

    For the specific shortcut launch pages, you can add them to the end, for example:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -url "http://www.dilbert.com/" -url "http://www.gocomics.com/pearlsbeforeswine"

    After OK'ing the Properties dialog box, you can test everything right now to confirm that Firefox is now launching a window with tabs. Either:

    • Double-click the shortcut on the desktop
    • right click on taskbar icon pinned, click Mozilla Firefox

    Who do you want?

  • Impossible to return to the place where I ieft off after clicking the back button

    When I browse Smugmug photos, after you select the gallery that I want, when I'm done and I click the back button it brings back me initially galleries and not where I chose the last Gallery or photo. IE and chrome don't do that.

    Thank you for your question and I'm happy to help you. I understand that the back button does not work as expected in Firefox, all seeking to smugmug.

    At the same time as a work autour, if you right click on the back button, it will give the list all the pages that are visited.

  • Cannot access the page customize or see the menu button!

    I had two modules different twitter (Twitbin and App Twitter). The first was one that I enabled again, because I wanted to see if it has improved for some time. After restarting my browser, however, most of my toolbars have been on different parameters. I managed to get my bookmarks toolbar, showing once again. However, now:
    -I can click on "Customize" under the tools, but the page appears empty (if any)
    -the orange "firefox" button at the top left disappeared
    -menu button (three horizontal lines) disappeared

    In addition, restarting somehow messed up my manager's Session module. It lists my tabs/windows have saved, but they never load.

    I searched everywhere, but have not found any real answers (page customize and SM have been the most frustrating of all this). I completely remove the add-on twitter, I chose not to use, but it changed nothing about how it was.

    Thank you
    -A

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    For Firefox versions prior to 29,0:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the "Reset Firefox" line

      button.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    For Firefox 29,0 and above:

    1. Click the menu button

      click Help

      and select troubleshooting information. Now, should open a new tab containing your troubleshooting information.

    2. At the top right of the page, you should see a button that says "Reset Firefox"

      . Click on it.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • The documentation for the Contacts of Vista tells me to use the export button in the toolbar to use this feature. However, there is no export button.

    Where is he?

    Where is he?

    1. what email program are you using? Outlook Express, Windows Mail, Windows Live Mail, Microsoft Outlook, Hotmail, Yahoo! Mail etc etc?

    2. What do you do with the contacts? Export it somewhere?

    If you are using Windows Mail > open it > menu bar, click on file > click Export > click Windows Contacts > pick CSV > click on the export button > the rest should be self-explanatory.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • I'm looking to have an input field with the search button, search button click the search button below the search results to display. How can I do?

    I'm looking to have an input field with the search button, search button click the search button below the search results to display. How can I do?

    Hello

    998765 wrote:

    You are right

    Please pass by the database 2 day + Application Express Developer's Guide

    Check this code example

    1 create a text field element I say P1_INPUT_FIELD

    2. create a button

    Name of the button: search

    Action: Send the page

    3. change your report query and where clause to your query below

    It will search on ename and empno, in this way, you can add more columns

    SELECT EMPNO
               , ENAME
               , SAL
               , MGR
               , COMM
      FROM EMP
    WHERE TRIM(UPPER(ENAME)) like '%' || TRIM(UPPER(:P1_INPUT_FIELD)) || '%'
           OR TRIM(UPPER(EMPNO)) like '%' || TRIM(UPPER(:P1_INPUT_FIELD)) || '%'
    

    4. we find the source of the region-> page article to submit-> P1_INPUT_FIELD

    Hope this helps you,

    Kind regards

    Jitendra

  • My portfolio is currently configured to allow access when locked. I used to be able to double-click the home button and seems my card and I would enter my access code. I have updated to IOS 10 and I am no longer able to do this.

    My portfolio is currently configured to allow access when locked. I used to be able to double-click the home button and seems my card and I would enter my access code. I have updated to IOS 10 and I am no longer able to do this. All the settings are there. I have an IPhone 6.

    Are? you double click in front of the screen of the iPhone are? (pending). This is what seems to work for me.

    I hope this can help.

  • Can't let site when I click the back button, it keeps just returning on the site, have to close firefox and try again.

    Can't let a Web site when I click the back button, it keeps just returning on the site, have to close Firefox and restart my search.
    The website below is just an example, it is a little more.
    Is this a problem with Firefox or this particular Web site?
    Thank you for your help.

    I thank very you much for trying to help me.
    I think you pointed me in the right direction, I tried on IE (ugh!) and he worked there. It's been awhile that this HARD drive has been in service and I think it's time to do a clean reinstall of everything.
    Once again, thank you.
    fredsbroke2

  • Trying to export from Ultiboard I can't get the export button

    I am trying to export a circuit of Ultiboard design to a DXF file. The export button is grayed out and non-operational. I can't use either shortcut keys. I tried this with my circuit and a circuit or smaple with no luck. Any suggestions to fix this?

    Hi Ray,

    Have you enabled Ultiboard? Export is not available during the demonstration test.

  • Click the Start button

    Please can you help me? After you click the Start button, I have can then see all my programms.  What this means if 1 program islite up at orange, after I've just updated the program in question?

    The orange highlight in your Start Menu is to note the programs that have been recently installed, updated or upgrades. It is simply a way to let you know that the changes have occurred. The orange highlight helps you find the new or changed item.

  • I want to open the background app after clicking the ok button in the alert illustrated?

    I have an application I have let down in the background.

    After awhile, I show an alert for help:

    synchronized(Application.getEventLock()){
                            UiEngine ui = Ui.getUiEngine();
                            Screen screen = new Dialog(Dialog.D_OK, "Alert!", Dialog.OK
                                                        , Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), Manager.VERTICAL_SCROLL);
                            ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);
    }
    

    After this code, I add this, but the background application opens instantly, no waiting user click on the ok button:

    UiApplication.getApplication().requestForeground();
    

    How can I take the app in the foreground after the user clicks the ok button?

    Seek to create a DialogClosedListener and make your first query in this plan.

  • You can cancel the licenses? I was on my phone and went to save a preview but click the license button on an image, I don't actually want to. I didn't upload. Is there a way to cancel it so I don't lose one of my ten monthly images?

    I was on my phone and went to save a preview but click the license button on an image, I don't actually want to. I didn't upload. Is there a way to cancel it so I don't lose one of my ten monthly images?

    Any help would be great. Thank you!

    Hello

    We don't have a way to cancel it, but as a gesture of goodwill, I added a license credit to your account so that you can select another image.

    Please delete the one you want.

    Kind regards

    Bev

Maybe you are looking for

  • Question about orders in single-user mode

    Hi all, I am a super novice of mac system. I searched the web and the apple community, and I have not found much information on how to use the single user mode. All suggested link to read and learn about the single-user mode and terminal?

  • Cannot install mactex.pkg

    I tried to install mactex.pkg (LaTex for mac) but without success. When I double-click on a file, the icon appears in the dock but I get the following error message: operation could not be completed. (error com.apple.installer.pagecontroller - 1). I

  • Satellite Pro PSAI5E A1 - HARD drive upgrade

    Hello I have a Toshiba Satellite Pro model A1 - PSAI5E and I need to upgrade the hard drive.Does anyone know if it is easy to do with this model because it is old enough? More, I have to get a 2.5 IDE hard drive? Thank you very muchTom

  • Error code: 0 X 80040705 (cannot install Windows Live Essentials 2011)

    I wish that windows Live essential install but I get above error, I had over 10 tims try again.  How can I fix this error?

  • Analyze the Mac address with the regular expression matching

    Hello world I have a problem with the function of regular expression matching, I try to analyse the response both a query arp - a 192.168.0.15 to retrieve the MAC address of the remote IP address, I used the following regular expression: ^ ([0-9a-fA-