1 Reply Latest reply: Jan 30, 2013 12:34 AM by kortchnoi RSS

    Problem doing partial refresh (pull) of HTML region

    kortchnoi
      In my application, I have a page where on the left I have a list of documents and, on the right, selected document in PDF format.

      The right region is defined as HTML:
      <object id="DataPDF" data="f?p=&APP_ID.:18:&APP_SESSION.:APPLICATION_PROCESS=odp_show_doc::::" type="application/pdf"></object>
      The function odp_show_doc gets PDF document from a web service and returns a PDF BLOB that fills the region.

      However, to refresh the region with valid document data, I have to resubmit the page each time the user selects a new document.

      To refresh the page partially (only the PDF region), I have tried to use Carl Backstrom's example (http://apex.oracle.com/pls/otn/f?p=11933:48) to pull the PDF content from another page, but to no avail.

      I have defined another page (2) with a region that does the job. When I go directly on that page, I see the PDF region filling. But when I try to pull the same page with the code
      var gReturn; 
      var get=new htmldb_Get(null,html_GetElement('pFlowId').value,null, 2); 
      get.addParam('P0_NUM_DOC_GED', numDocGed); 
      gReturn = get.get(null,'<htmldb:BOX_BODY>','</htmldb:BOX_BODY>');  
      alert(gReturn);
      I get the following error:
      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML2.0 EN">
      <html>
         <head>
            <title>404 Not Found</title>
         </head>
         <body>
            <h1>Not Found</h1>
            <p>The requested URL /pls/apex/wwv_flow.show was not found.</p>
         </body>
      <html>
      In this case, the odp_show_doc is never called (I have added some debug info in this ODP function).

      Has anyone an idea of what I am doing wrong and what correction should I do to make this pull work?

      Thank you.


      Igor
        • 1. Re: Problem doing partial refresh (pull) of HTML region
          kortchnoi
          Well... It seems to work directly on the machine, if I use the following URL when calling the application:
          http://localhost:8080/apex/f?p=120
          However, when I call the application from outside with the URL
          https://app-url/pls/apex/f?p=120
          , pulling the region based on on-demand-process results in:
          The requested URL /pls/apex/wwv_flow.show was not found
          Pulling an ordinary report is OK.

          Igor