Problem doing partial refresh (pull) of HTML region

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

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=120However, 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 foundPulling an ordinary report is OK.
Igor

Similar Messages

  • Partially refresh the sql report region by clicking the region selector tab

    Hi,
    In my page i have a region display selector tab. This region selector tab contain show all,booking,service,.. etc. when i click the booking tab,sql report region will appear. My intention is when i click the booking tab i want to refresh that region partially to display the record according to sql query in that region source of report region.
    how to do this?
    skud.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • Problems in partial refresh

    Hi everyone
    In my jsp page(second page) ,I have 2 Radio buttons and I am getting some parameters from the previous jsp page(first page).
    I have to refresh partially the second jsp page based on the click event of any radio buttons placed there.But when I refresh ,the parameters obtained from the first page becomes null.
    I want to retain the parameters and hide some fileds(in second page) based on the Radio button selected.
    Can anyone help me to solve this issue?
    Thanks
    -Jegan

    send the parameters as hidden fields in the second jsp n forward it to the client
    so that the fields of the old jsp could be retained along with
    the vslues of the paramenter of the second jsp. no need of any refresh
    or use cookies or sessions

  • Problem pulling HTML region using AJAX

    Hi,
    I am using Ajax with Oracle apex, it pulls the report region ok, but when i try to pull the html region, it doesn't. I tried several different ways and in firefox, it does pull the html region but not also pulls the header and footer. On IE, it gives a javascript error.
    Is there any way to pull the HTML region from a page using AJAX on IE. I am using the htmldb_get.js's functions for ajax.

    see
    http://apex.oracle.com/pls/otn/f?p=11933:48
    working perfectly with latest version of apex on ie, ffox and opera.

  • JQuery problem after ADF partial refresh

    Hi,
    I am using JDeveloper 10.1.3, and am trying to spice things up a little with some jQuery. However some of this code does not work as I expect after a partial refresh. In a simple page for testing purposes I have:
    bq. &lt;afh:script text=" \\     $(document).ready(function() { \\         oldBackgroundColor = $('#outputText').css( 'background-color' ); \\         $('#outputText').css( 'background-color', 'red' ); \\         newBackgroundColor = $('#outputText').css( 'background-color' ); \\         alert('background color was ' + oldBackgroundColor + ', now ' + newBackgroundColor); \\     }); \\ "/&gt;
    and
    bq. &lt;af:outputText partialTriggers="button" id="outputText" value="some text whose background color changes"/&gt; \\ &lt;af:commandButton partialSubmit="true" immediate="true" id="button" text="partial submit button"/&gt;
    When the page is initally loaded, the background color of the text is changed to red, and the alert is displayed saying something like 'background color was transparent, now red' (browser dependent).
    When the button is pushed, the background reverts to transparent (as expected as it is being loaded again). The alert is also displayed with the same message (indicating the color has been changed), but the background on the screen does not change.
    Is this what anyone would expect, and should it be possible? My javascript knowledge is pretty basic so I haven't got very far looking through the code trying to figure it out. Any ideas would be much appreciated.
    I am using version 1.2.6 of jQuery from [http://docs.jquery.com/Downloading_jQuery]
    The full source of the jspx is:
    &lt;?xml version='1.0' encoding='windows-1252'?&gt;
    &lt;jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"&gt;
    &lt;jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/&gt;
    &lt;jsp:directive.page contentType="text/html;charset=windows-1252"/&gt;
    &lt;f:view&gt;
    &lt;afh:html&gt;
    &lt;afh:head title="List"&gt;
    &lt;meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/&gt;
    &lt;afh:script source="/javascript/jquery-1.2.6.js"/&gt;
    &lt;afh:script text="
    $(document).ready(function() {
    oldBackgroundColor = $('#outputText').css( 'background-color' );
    $('#outputText').css( 'background-color', 'red' );
    newBackgroundColor = $('#outputText').css( 'background-color' );
    alert('background color was ' + oldBackgroundColor + ', now ' + newBackgroundColor);
    "/&gt;
    &lt;/afh:head&gt;
    &lt;afh:body&gt;
    &lt;af:form&gt;
    &lt;af:outputText partialTriggers="button" id="outputText"
    value="some text whose background color changes"/&gt;
    &lt;af:commandButton partialSubmit="true" immediate="true" id="button"
    text="partial submit button"/&gt;
    &lt;/af:form&gt;
    &lt;/afh:body&gt;
    &lt;/afh:html&gt;
    &lt;/f:view&gt;
    &lt;/jsp:root&gt;

    I don't have 10g release in my computer right now.
    But I have tried the same in 11 + build of JDeveloper
    Done little changes and it worked
    below is the code
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" title="My Test JQuery Page">
    <af:resource type="javascript" source="/js/jquery-1.4.4.min.js"/>
    <af:resource type="javascript">
    $(document).ready(function () {
    $("#outputText").css("background-color", "red");
    function changeColor() {
    $("#outputText").css("background-color", "yellow");
    </af:resource>
    <af:form id="f1">
    <af:outputLabel id="outputText"
    value="some text whose background color changes"/>
    <af:commandButton id="button" partialSubmit="true"
    clientComponent="true" text="partial submit button">
    <af:clientListener method="changeColor" type="action"/>
    </af:commandButton>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Partial Refresh for Chart Region

    Hi all,
    I am using Application Express 4.0.1.00.03.
    I need to know whether partial refresh is available for Flash Charts or not?
    If yes how?
    Thanks in advance...
    Edited by: jyothi on Aug 17, 2011 9:06 PM

    Hi,
    There is undocumented JavaScript function apex_RefreshChart for refresh flash chart.
    Regards,
    Jari

  • How to Display PHP Output as Portlet in HTML Region using utl_http.request

    I wanted to be able to parse PHP functions to add more functionality to my Page. nothing fantasy, something simple like: http://phpsysinfo.sourceforge.net/phpsysinfo-dev/?template=classic
    Where the realtime values are retrieved from the OS. this represent some kind of problem to me, I know how to do it from Shell Script, Perl or PHP, but not from PL/SQL.
    Based on my experience using Oracle Portal, Portlets, I think we really can make use of the feature used in Portal called Web Clipping. [ This feature basically goes to some Site a retrieve part of the site to show in the current page]. Well the PL/SQL utility utl_http.request does something similar.
    Make sure your request page does not retrieve some headers because that would cause a problem in your page and will not show up.
    This is what I did:
    <b> 1.- </b> Grant Privileges to execute [ <b> utl_http.request </b> ] to the owner of your schema.
    login into the OracleXE / APEX as SYS then go to the Object Navigator, then click on packages, find the utl_http.request then click on it, later click on grant and select your schema owner for your applicaion.
    <b> 2.- </b> Logout as SYS then login as your application schema user. just to test the functionality go to the sql command then enter the following command and then click run:
    <b> select substr(utl_http.request('http://www.oracle.com/'),1, 255) from dual; </b>
    If your output is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Oracle 10g, Siebel, PeopleSoft | Oracle, The World's Largest Enterprise Software Company</title> <meta name="title" content="Enterprise Applications | Database | Fusio
    <font color='blue'> Wow It worked </font>, this really could be useful !!, If not go back to step 1 and check your permissions to execute, or perhaps your Internet connectivity.
    3.- Once we know the package works and we can retrieve content from the Internet. lets go to some of our pages add some HTML Region.
    4.- Create an item and put into the new region. the source will be SQL, For the purposes of my test the query to the Oracle Page failed, so I decided to give a shot with a simple PHP script with no headers.
    The internal server is: http://mytest.com/hello_world.php
    Where the content of the hello_world.php is:
    <?
    echo '"<b> Hello World </b> ";
    ?>
    This PHP works fine and display the basic Hello World. can be the same server or not, also noticed this can be another port perhaps using something like Ruby,Mason or Java.
    <b> 5.- </b> Finally in my Item the source type is SQL and looks like this:
    <b> select substr(utl_http.request('http://mytest.com/hello_world.php'),1, 255) from dual; </b>
    Apply the changes and run the page !!!
    Excelent It worked as expected. now you know how use utl_http.request to create webclipping in your OracleXE / APEX from remote pages, or how to use it to parse the output from CGI, Perl, PHP, Ruby or Java pages.
    Note: [ Just make sure to strip the headers or parse into a PL/SQL Procedure to clean then show ]
    Best Regards <b> Dino </b>.
    Brains R Like Books only work when they R Open.
    http://www.htmldbhosting.com/

    Sorry, from your post in the LabVIEW board I did not understand that it was the Output message that you were looking for.
    I thought you wanted the results from your test steps displayed on the user interface. 
    It is the “Output Panel” in the sequence editor that displays your output message, but I do not know if there is default Output panel activeX indicator for user interface that the TestStand engine would update automatically like it does the execution view.
    Maybe someone else knows 
    As also pointed out, the UI messages is your other option.
    The Output Message event number is 40 
    http://zone.ni.com/devzone/cda/epd/p/id/3879
    UIMsg_OutputMessages–(Value: 40) TestStand sends this message at periodic intervals when it holds references to output messages that calls to the OutputMessage.Post method queue. TestStand transfers the queued messages to an OutputMessages collection attached to the UIMessage.ActiveXData property for this event. An application that processes output messages should copy the output message references from the collection in UIMessage.ActiveXData to its own private OutputMessages collection by passing its private collection to the OutputMessages.CopyMessagesToCollection method. An application calls the Engine.NewOutputMessages method to create a private OutputMessage collection. TestStand generates this event only if the Engine.OutputMessagesEnabled property is True. Because there can be more than one handler for this event, the application should not modify the OutputMessages collection the UIMessage.ActiveXData property holds.
    Omar
    Message Edited by OmarGator on 10-09-2008 10:12 AM

  • Using bind variables in HTML Region source

    <nl>
    http://apex.oracle.com/pls/apex/f?p=49417:1   workspace: SVK demo/demo
    I am having problems incorporating an item variable into a string of embedded html that should popup a modal video when the button is pressed.
    Item 1 works fine and that is what I want to accomplish with item 2, but when I pass :p1_url, it does not work even though the contents of the two items text areas equivalent.

    svk1965 wrote:
    If you look at my app, you'll see what I am attempting. Click on the button "Pass Hardcoded URLs in Variable to HTML Region" and a modal video will pop up. The goal is to display video in a modal window. The first example in my app works just fine. It is the second one that is causing me problems. BTW - Sequence 18 in the second DA does the same thing as Sequence 10 in the first - and it does work there so I am not sure that removing it is the right thing to do. I am not trying to set a region value per se, but populate the region source and sequence 10 does just that. So I don't think it is "useless" as you say.I can't see anything in the documentation or any previous posts here that indicates that DAs are supposed to work that way. If you can point me to some I'd like to see it. Which is not to say I like the idea. Plays too fast and loose with terms and concepts.
    Rather than trying to use a "Set Value" DA, my understanding would be to manipulate the region content via an "Execute JavaScript Code" DA, which works exactly as intended.
    I'll have to investigate this DA behaviour with a simpler example that doesn't involve hidden regions and Dynamic Acrion plugins.

  • HTML Region: Image from item name

    Im having problems getting item states into html region.....
    I have setup an item that will hold the picture web address: e.g. P1_HTML_TEST = '/webserver/smile.jpg'
    Not any of the below retreive the item state.... what is the proper meathod of doing this?
    It seems that the value isnt being retreived at all.
    <img src=$P1_HTML_TEST. alt="">
    <br>
    <img src="$P1_HTML_TEST." alt="">
    <br>
    <img src=:P1_HTML_TEST alt="">
    <br>
    <img src=":P1_HTML_TEST" alt="">
    <br>
    $P1_HTML_TEST.
    <br>
    :P1_HTML_TEST
    <br>
    Thanks

    <img src="&P1_HTML_TEST." alt="">Please consult the documentation at:
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11947/concept.htm#sthref197

  • ADFf 11g, view does not refresh when model changes

    Hi,
    I am really missing something about adf faces (jdev 11.1.1.3.0).
    I have a web app, with jspx, tabpanels and pojo data controls.
    Since there is a complex logic to open new pages/tabs, sometimes I have to open new pages/tabs programmatically, and also sometimes I have
    to refresh the model behind pages/tabs programmatically.
    When I say "programmatically" I mean that the model refresh is not started by an user action on the webpage, but is started by logic in the model layer
    (say, for example, you receive a JMS message and you want to reload the content of an entire page).
    I can succesfully update the model, using debug println I can see the model is updated, but there is no way I can update the view.
    I tryed with the "addPartialTarget" code and so on, but it does not work.
    I've also bought and read "Oracle JDeveloper 11g Handbook" and "Oracle Fusion Developer Guide", but I can't find anything that can help me.
    Can someone explain me: what am I missing? I am sure there is some concept in ADF Faces I missed: this framework is too
    big not to offer what I need, so I miss something for sure.
    I hope to get an answer, I hope Shay reads this too.
    Thanks all.

    Hi,
    Active Data Services (chapter 20 in the book) is what would allow you to synchronize the screen with the model changes. The problem you face is because the data you see is what is stored in the iterators of the binding layer. An alternative solution to using ADS is to use an af:poll component that refreshes the display component when the model has changed. For this your model exposes a method that returns a time stamp that changes whenever the data has changed. Upon af:poll expiring, it calls a managed bean method, which - through the ADF binding layer - checks for the time stamp and compares it with a local saved copy (whenever the time stamp has changed, the client side will e.g. write it to the viewScope or pageFlowScope). If the time stamp has changed, the managed bean re-executes the method populating the iterator for the UI components and then issues a partial refresh of the component(s). Instead of PPR'ing each component in turn, you can try setting the ChangeEventPolicy property of the iterators to ppr"
    This should solve the problem. The latter example is also explained in chapter 20, but for ADF BC
    Frank

  • HEADER AND FOOTER IN HTML REGION

    I want to create a repeatable HTML Header (not an ApEx region Header) for a HTML region as described in
    http://www.html4newbies.com/header_footer_tip.php
    I want to include the header at different points in my HTML region
    It says that you need to save the Header in an external file and then reference it using the line
    <!--#include file="header.html" -->
    Can you do this in ApEx? I've uploaded the file with the header code into ApEx but how do I reference it? I've tried
    <!--#include file="#WORKSPACE_IMAGE#header.html" -->
    but it doesn't recognize it.
    Or is there a better way to do it?
    regards
    Paul P

    Can a shortcut be plugged in the middle of report output?
    The problem I'm grappling with is the page setup for a report prior to printing.
    If I use a template, the header will still appear only once if the report is large and pagination is turned off.
    Is the only way to define a "page" in ApEx through Pagination?
    If I have a report with no pagination set and the number of rows set to, say 10000 and I want to print off the report, how would I place a page header or footer every 66 lines (i.e. simulating portrait on A4)?
    Am I using the wrong application for this?
    regards
    Paul

  • Discoverer 10.1.2 does not refresh new added column

    Hello,
    I need help to add a new item to EUL Business Area folder for a new added column in the database table.
    When I refresh the folder in the BA EUL, the result shows no difference between the folder and the underlying table in the database; however, when I quey the table in the database, a new column is there. The refresh of the folder in the Discoverer Admin tool cannot find the newly added column. Weird!! The first time saw this problem.
    Could someone shine some light on it? Would be really appreciate it!
    Ping

    I have a slightly different problem and can't solve it! When I refresh the EUL, the result shows the differences between the folder and the underlying tables in the database. However, it does not refresh the EUL in Discoverer Administrator 10g. Nothing happens! When I try to refresh again, the same list is shown... Does anyone know what could be happening?
    Thanks

  • How to load a large amount of HTML into HTML region?

    I am trying to display a clickable image map (HTML <map>) in a region. The HTML source for the image map is fairly large and will not fit in the Apex editor (HTTP 400 error when I Apply Changes). I would also rather not manage that much HTML in the Apex web editor. So I stored the code in a file and added it to my applications file storage.
    I have tried various methods of getting the HTML to load when the page is rendered. I tried a URL region, but that leads to all kinds of ACL/security issues that we do not want the customner to have to deal with. i also tried some PL/SQL:
    DECLARE
    l_file_id NUMBER;
    BEGIN
    SELECT id
    INTO l_file_id
    FROM APEX_APPLICATION_FILES
    WHERE filename = 'myhtml';
    APEX_UTIL.GET_FILE(
    p_file_id => l_file_id,
    p_inline => 'YES');
    END;
    But that just replaces the entire page, not just the region it's defined in (even when the HTML is without <head> etc).
    Various attampes wih #APP_IMAGES#myhtml and &APP_IMAGES.myhtml just give me the translation of the APP_IMAGES variable.
    So, how do I load a large chunk of HTML into a region dynamically at run time? I also need this to interact with APEX in the sense that JavaScript will set APEX variables and cause a SUBMIT when the use clicks on the image map.

    Hi Andy,
    ATD wrote:
    Does your HTML define the regions/points on the map using AREA tags?Yes. it is actually generated using MapSefrver from huge tables of SDO_GEOMETRY (Oracle Spatial).
    If so, you could define a report template that does this and use this for a report based on a table that has the settings for shape, coords, href etcHmm, the code (HTML map) is auto-generated so if I understand you correctly, this might be difficult. One of the HTML is approximately 180KB of text.
    I found a way to do this using dynamic PL/SQL. I created a new table that has a varchar filename and a CLOB for the file data. I then imported the HTML into the table using SQL Developer (copy&paste, nice!). I then created an HTML region and used the following:
    declare
    html clob;
    len number;
    st number;
    c number;
    begin
    select length(data)
    into len
    from FILES
    where name = 'state_query.html';
    st := 1;
    while len > 0
    loop
    if len > 32000 then
    c := 32000;
    else
    c := len;
    end if;
    select substr( data,st,c )
    into html
    from FILES
    where name = 'state_query.html';
    htp.p( html );
    st := st + c;
    len := len - c;
    end loop;
    end;
    Edited by: CoyoteTech on May 13, 2009 7:27 AM

  • Hyperlinked JSP Page does not refresh contents

    I have a very typical problem.
    In my application whenever I call a jsp page using hyperlink without any querystring attached to it the page called does not refresh. However when I press refresh on the browser it does refresh the contents. Basically in this page I am using some session variables to fetch data. So I do not call the page by passing querystring instead set the attributes of session variables and then the page is called as a hyperlink.
    However if I call the same page using submit the values are refreshed.
    Help on this urgently will be appreciated.
    Thanks
    Manish

    Just set 'no-cache' option for the jsp page and test it. It should work. only you need to do is
    response.setDateHeader("Expires",0);
         response.setHeader("Pragma","no-cache");
         if(request.getProtocol().equals("HTTP/1.1")) {
              response.setHeader("Cache-Control","no-cache");
    have fun!!
    ---rajsekhar

  • Using a Target in an HTML Region

    Hi, I have a page with an HTML Region, which links to an external html page. The external page has links to other, secondary external pages. I'd like for the secondary links to open and replace the original external page within the same region on my HTMLDB page.
    I've considered trying to create a FRAME inside the region, then using the HREF TARGET= in the external files to point to that FRAME. But, I'd like to be able to do this without manipulating the html code inside the external pages (though that might be an option if I can't get there without doing so).
    Any other ideas?
    Thanks as always for your help...
    Mark

    Mark,
    Try using an iframe rather than a frame

Maybe you are looking for

  • How do i import movies from my sony camera into iphoto?

    When I imported my photos from my sony cybershot into iphoto my videos did not come along with them. I've been using a canon with canon image browser until now and never had this problem. HELP!

  • Placement of 2 background images

    I want a background image for the body of my site like the one used here; https://www.fortnumandmason.com/ The image they used is here; https://www.fortnumandmason.com/Common/images/Global/bodyBkg015.jpg They have used a big image, 100k i think. This

  • Using Component Object Model+ (COM+) in webdynpro

    Dear friends, How can I use Component Object Model+ (COM) in webdynpro? Is it feasible to use COM to access SQL Server 2005 Database. Thanks and Regards, Tarani

  • QA40 making usage decision for 03 lots with rejected MIC also

    Hi Friends , QA40 is making Usage decision for 03 type lots having defects also and also for the lost having rejected MICs . can anybody explain why its so because SAP help has mentioned that for automatic UD there should be no rejected MIC . Regards

  • DVD studio pro 4 font size

    I have a book approved by apple that shows how to size the fonts. However, in my version, the fonts are already sized and I can only go from given to given. EG. 24, 36, 48. How do I go to eg. 40 size font.