Need to generate XML report  (when user clicks the button)from Application Express 4.0.0.00.46

I am new to Apex so I invoke all the APEX GURUS to help me !!!
Here are details.
When the user hits a button from APEX page he can download an XML report
here is the parameterized SQL query:

Duplicate thread: https://community.oracle.com/message/11325665

Similar Messages

  • Showing universal work list when user clicks a button in webdynpro java

    Hi,
    I am developing webdynpro java application, when user clicks a button i want to display Universal worklist in the portal, if user is logged in then it directly shows in portal otherwise it should asks for username and password.
    Thanks,
    Madhu

    Hi Pithre,
    For this you have to use portal navigation classes, Same scenario occurred in previous forums, search thoroughly before you post the question.
    Go to the below link, May u r problem will be solved.
    Universal Work List & Web Dynpro
    Regards,
    Pradeep

  • Invalidate session when user clicks back button

    I want to invalidate the session when user clicks back button, so that user cannot refresh and reload a page.
    Any suggestions will be highly appreciated.
    Message was edited by:
    sam_amc

    * SessionInvalidator.java
    * Created on October 27, 2006, 9:18 AM
    package web;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * @author javious
    * @version
    public class SessionInvalidator extends HttpServlet {
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            String reposted = request.getParameter("reposted");
            if("true".equals(reposted))
                HttpSession session = request.getSession(false);
                if(session == null)
                    // This is step 4 and beyond
                    out.println("<html>");
                    out.println("<head>");
                    out.println("<title>Servlet SessionInvalidator</title>");
                    out.println("</head>");
                    out.println("<body>");
                    out.println("<h1>Servlet SessionInvalidator at " + request.getContextPath () + "</h1>");
                    out.println("I said, your session is now invalid! Now where are those Duke Dollars at?");
                    out.println("</body>");
                    out.println("</html>");
                else
                    Integer hitCount = (Integer)session.getAttribute("hitCount");
                    if(hitCount == null)
                        // This is step 2 (the "good" - "stay" page.)
                        out.println("<html>");
                        out.println("<head>");
                        out.println("<title>Servlet SessionInvalidator</title>");
                        out.println("</head>");
                        out.println("<body>");
                        out.println("<h1>Servlet SessionInvalidator at " + request.getContextPath () + "</h1>");
                        out.println("Your session is good.<br>");
                        out.println("If you click the browser's back button, you will invalidate your session.");
                        out.println("</body>");
                        out.println("</html>");
                        hitCount = 1;
                        session.setAttribute("hitCount", hitCount);
                    else
                        //We've used up our good visit
                        session.invalidate();
                        // This is step 3
                        out.println("<html>");
                        out.println("<head>");
                        out.println("<title>Servlet SessionInvalidator</title>");
                        out.println("</head>");
                        out.println("<body>");
                        out.println("<h1>Servlet SessionInvalidator at " + request.getContextPath () + "</h1>");
                        out.println("Your session is now invalid");
                        out.println("</body>");
                        out.println("</html>");
            else
                // because the javascript in the following output will never allow a user
                // to continue clicking back any further than this, we can safely create the session.
                // (or perhaps the session can already be created here and this may not be necessary).
                // A problem lies where if the user chooses to "select" a page back in history they thereby
                // potentially skip back "over" this functionality, thus defeating the purpose of it.
                request.getSession(true);
                // This is step 1 (indirection)
                out.println("<html>");
                out.println("<head>");
                out.println("<title>Servlet SessionInvalidator</title>");
                out.println("</head>");
                out.println("<body onload=\"document.getElementById('invalidatorForm').submit()\">");
                out.println("<h1>Servlet SessionInvalidator at " + request.getContextPath () + "</h1>");
                out.println("<form id=\"invalidatorForm\" action=\"SessionInvalidator\" method=\"POST\">");
                out.println("<input type=\"hidden\" name=\"reposted\" value=\"true\">");
                out.println("</form>");
                out.println("</body>");
                out.println("</html>");
            out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }The problem with even attempting to do this is that with today's browser capabilities, users can optionally choose to jump to a particular page in the browser history and this may not necessarily be the most recent page. In this case, you would also want to invalidate the user's session after already having been there (whatever page that may be). Then you have situations when the user may wish to jump back in history to external pages they were visiting before they reached your own site's pages. Then what happens when they start clicking forward, forward, etc... from there? This is why I prefer writing Swing Clients as alternatives to browser applications. There are soo many possible ways break web applications made for standard web browsers both maliciously and simply by accident or irregular user patterns. Regardless, this servlet would work based on the assumption that all the user(s) would "ever" do aside from moving logically forward is clicking on the browser's "back" button.
    cheers!
    Message was edited by:
    javious

  • How can we enable tick icon when user click any button

    how can we enable tick icon when user click any button in captivate 6@

    hi first of all thanks for imitate action.
    actually i want to make a menu (TOC) with tick icons, on starting all ticks are disabled but when i click on any button from my menu i want to enable tick for that particular button so that user can know easily the visited button.

  • When user clicks on button the document linked to this path must be display

    hi sap masters,
    i am developing a screen prog in which i have a requirment which is i have pushbutton called WEB.
    When user clicks on button the document linked to this path must be displayed
    ex :  www.google.com
    how can i display can i have some info please.
    thank you,
    pasala.

    Hi,
    Kindly go through the below programs....
    RSHTML01                       Demo for HTML Control: Use as general WWW browser
    SAPHTML_R3HTTP_DEMO            Demo for HTML Control: Use as general WWW browser
    SAPHTML_UI_DEMO                Demo for HTML Control: Use as general WWW browser
    UPWB_HTML_DEBUG                Demo for HTML Control: Use as general WWW browser
    Hope it helps.
    Regards
    Arbind

  • Weird thing about when user click Update button

    Hi,
    I got a very weird thing when i want to add some my code in button "1" on click event. I use below code to capture the on click event when user click "Update" button, so i can do some tasks(assign some fix value to a specific field). I found i can capture the event only once. Once the document is updated and i open second recordl then my code is never exexuted then. No error, no exception. Is anyone know what happen?
    Thanks,
    Lan

    Hi All,
    Yes, you are right. After i use try block, i can see the error. I thought I should be expected an red exception alert in the B1 info bar.
    Thank you !
    Lan

  • Calling billing and delivery transactions when i click the button in webdyn

    Hi,
    How to call the transactions like billing and delivery when i click the button.I am developing a webdynpro alv report in that 2 buttons are there.one is confirmation and another is cancel.
    I want to call the billing transaction when i press the confirmation button?

    Hi Lakshmi,
    It is not possible to directly call a transaction code from a wev application. Calling a transaction involves launching of SAP Dynpros which is not supported by WDA frame work.
    One possible ways is to use transactional iViews in Portal. We can Associate a transaction code to this and when called, it launches the same in an R/3 Screen.
    If you are using portal as a triggerring point of your web dynpro applications, then the below requirement is achieved by doing the following.
    1. Create a BDC report program to call transaction CAT2 skipping the first screen.
    2. The report has the same input parameters as that of the transaction CAT2.
    3. Associate a transaction to the report program sat 'ZCAT2'.
    In the event handler of the button in your web dynpro do that following
    Data declarations
    Local Internal tables(lt_)
    lt_bus_parameter_list TYPE wdy_key_value_table,
    lt_launcher_parameter_list TYPE wdy_key_value_table,
    Local Work area's(ls_)
    ls_keyvalue_pair TYPE wdy_key_value,
    Local Variables(l_)
    l_pcdpageurl TYPE string,
    l_componentcontroller TYPE REF TO if_wd_component,
    l_port_manager TYPE REF TO if_wd_portal_integration.
    Constants(c_)
    CONSTANTS:
    c_transaction_code TYPE string VALUE 'ZCAT2',
    c_okcode TYPE string VALUE 'F8',
    c_param1 TYPE string VALUE 'P_Data_Entry_Profile',
    c_param2 TYPE string VALUE 'P_person_number'.
    l_componentcontroller = wd_this->wd_get_api( ).
    l_port_manager = l_componentcontroller->get_portal_manager( ).
    Fill all the business parameters
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = c_param1.
    ls_keyvalue_pair-value = 'Data Entry Profile'.
    APPEND ls_keyvalue_pair TO lt_bus_parameter_list .
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = c_param2.
    ls_keyvalue_pair-value = 'Person Number'.
    APPEND ls_keyvalue_pair TO lt_bus_parameter_list .
    Fill the launcher parameters for the transaction
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'AutoStart'.
    ls_keyvalue_pair-value = 'Yes'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'GuiType'.
    ls_keyvalue_pair-value = 'WinGui'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'OkCode'.
    ls_keyvalue_pair-value = c_okcode.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'System'.
    ls_keyvalue_pair-value = 'SAP_R3_HumanResources'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'TCode'.
    ls_keyvalue_pair-value = c_transaction_code.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'Technique'.
    ls_keyvalue_pair-value = 'SSF'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    CLEAR ls_keyvalue_pair.
    ls_keyvalue_pair-key = 'WinGui_Type'.
    ls_keyvalue_pair-value = 'Shortcut'.
    APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    SAP has provided us with customizing table to maintain the path for the iView.Here Resource_key is the key field to get the path.
    We create a new entry in this table using which we uniquely identify the path of the iVew that needs to be launched.
    get the url of the pcd page for the common transaction iView
    SELECT SINGLE b~text
    INTO l_pcdpageurl
    FROM t7xssserstring AS b
    INNER JOIN t7xssserres AS a
    ON a~respcdpage = b~guid
    WHERE a~ressource = /rio/zcl_hse_constants=>c_common_resource.
    Navigate to the Injury Illness details
    CALL METHOD l_port_manager->navigate_absolute
    EXPORTING
    navigation_target = l_pcdpageurl
    navigation_mode = l_port_manager->co_show_external
    use_sap_launcher = abap_true
    business_parameters = lt_bus_parameter_list
    launcher_parameters = lt_launcher_parameter_list.
    The folowing is the flow of the program:
    When user clicks a button to launch transaction CAT2, the event handler associated to it called.
    Here we populate an internal table with the parameters to call transaction ZCAT2 and the iView is launched by calling navigate_absolute method with the right path.
    I am not very much sure as to how the iViews are set up but there is a provision to read the key valure pair there. The values are read and the tranzation ZCAT2 is called which will inturn launch CAT2 transaction.
    By adding Skip First screen statement we can get in the details directly.
    Hope this helps.
    Regards,
    Sravan Varagani

  • I cannot get a new tab to open when I click the + button.

    Usually when I click the + button, a new tab would open up. But during the last couple of days it has not worked. I click it and nothing happens. I've searched for a solution, but I can not find one. What do I need to do to correct this problem?

    That can a problem with the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

  • HT201209 Trying to redeem a free download for a song from KLove. When I get into my acct & try to redeem it, it just keeps bringing up the "sign-in" box. When I click the button on KLove's webpage to redeem it takes me to that page but does the same thing

    Trying to redeem a free download for a song from KLove. When I get into my acct & try to redeem it, it just keeps bringing up the "sign-in" box. When I click the button on KLove's webpage to redeem it takes me to that page but does the same thing

    Get the redeem code from the KLove page:
    http://www.klove.com/music/store.aspx
    ...and enter it into the Redeem Code box in the iTunes Store.
    You will have to sign in to your iTunes account.
    It worked fine here.  If that doesn't work for you, let us know what went wrong.

  • My DVD drive won't open when I click the button

    Hi there
    I'm hoping someone can help me.
    My DVD drive won't open when I click the button.
    I've tried clicking on eject on the DVD Drive icon in My Computers and it comes up with an error message.
    I think I deleted cookies the other day. Could that have anything to do with the problem?
    Any help would be greatly appreciated as I really don't want to send my laptop away to a technician.

    Hi
    Try to open the CD/DVD drive manually.
    Near the eject button you will find a small hole.
    You could use a small object like staple and could push it carefully into this hole.
    Usually this should helps to open the drive manually.

  • I am trying to download icarly episodes and it does not go any further than clicking on buy season button. nothing happens when i click the button

    i am trying to download icarly episodes and it does not go any further than clicking on buy season button. nothing happens when i click the button?

    I would first try resetting the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • HT3205 I have 7 lights on my macbook. What does it mean when the first 5 light up when I click the button?

    I have 7 lights on my macbook. What does it mean when the first 5 light up when I click the button?

    Run an Apple Hardware Test (extended version):
    http://support.apple.com/kb/ht1509
    Ciao.

  • How to show the data in table format when user click the Graph

    Hi,
    I have a graph in my report. If user click the graph is there a way to show
    the data behind it?
    Thanks.
    Regards,
    Jun

    Hi All,
    Any idea how to do this?
    Thanks.
    Jun

  • Can I keep the CC value when user click the REPLY TO button in outlook?

    Hi all,
    I have set the CC value when I send email out. But when user reply the received email, the CC value will be displayed in the TO field. If anyone knows how can I keep the CC value unchanged when user reply the received email?
    Thanks very much.

    It depends entirely on the mailer they're using, you have no control over it.

  • How to avoid the page to move up when I click the button on the Tableview?

    Hi, EP fellows.
    I currently have 3 tableViews and 1 header form set in one jsp page (I know, it may not be a good design to put three tableView in one jsp page.....but for the sake of avoiding client side eventing between each tableViews..I combined them into one jsp page). I set the Load/Navigation value to be URL. 
    Here is the problem. Everytimes I click on the Navigation button (Up/Down) to navigate the tableView data to another page, the whole page will move up and away from the table that I navigating.
    I know it is bacause the page get refreshed, and go to the first item of the page. In this case, how do I avaoid the page to move up and away form the tableView? As it is really look bad when user click on the button, they have to scroll back to the tableView they click.
    Thanks for advices.
    Kent

    As far as i remember,this javascript function pops user a dialog to save a file:
    javascript: document.execCommand('SaveAs','1',null);
    But i m not sure will it pop up for pdf, just try to google javascript to save a pdf file.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Nautilus will not Start after system update

    I just updated my system with "pacman -Syu" and it now will not open the nautilus file manager. Looking inside the journal it shows the following error: gnome-session[647]: Window manager warning: Log level 16: AT-SPI: Error in GetItems, sender=(null

  • QI stock batch assignment in Process order component

    I have stock of raw material in MMBE against different batch and stock type. Suppose I have 3 batches - B1, B2, B3 for raw material R1. Now in MMBE R1 RM has stock in unrestricted stock batch B1, B2 and QI stock B3. If I am creating a process order f

  • Export hangs in 11.2.0.1

    We recently upgraded our databases (in Dec) from 9.2.0.6 to 11.2.0.1. After the upgrade, the export job (using original exp)hangs intermittently. It runs fine for a few days and then hangs. The export usually finishes in 1-3 minutes. But, when it han

  • What if no icon in address bar to create a shortcut on desktop?

    what do i drag to create a shortcut if there is no icon on address bar

  • Web hosting using Mac Pro

    I want to run a website and wondered if any of you could recommend a web hosting services in the UK that supports Mac OS X.