Partial refresh of a page

hello!
i have 2 regions in my apex-page:
1. a sql-report region, that has in each row a link to a pdf-file.
2. a html region which consists of an iframe, that shows the pdf if a user clicks on the link in the sql-report:
<div style="width:800;height:300;">
<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&*P1_LINK*."
</iframe>
this works fine, but when a user clicks on a link to a pdf the whole page is refreshed, not just the pdf. is it possible to to refresh just the field P1_LINK and the iframe (with the pdf) and NOT the sql-report region (due to performance reasons)? if yes, how? do i need ajax? thx in advance!
best regards,
christian ropposch
Edited by: Christian Ropposch on May 11, 2010 3:05 PM

if you provide a name for the iframe, you can set the target in the href's..
I would also provide it with an ID and Name, as you might want to do some fun JS stuff with it in the future.
You can actually with JS change the content
HTML way:
a href="http://www.google.com" target="pdfIFrame"
I would stick with the HTML-eidtion..
The iframe should work as the older frames, eg. you have to set the name in the iframe too.
Also I see there was missing a > in your iframe code.
<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&P1_LINK." name="pdfIFrame">
</iframe>
Maybe you should also consider styling the iframe via. CSS. Use ID or Class on the Iframe to do so.
Edited by: user9178158 on May 11, 2010 3:26 PM
Edited by: user9178158 on May 11, 2010 3:27 PM

Similar Messages

  • Partial Refresh of a Page (Chart Refrech : parameter change)

    Hi,
    I have page with som reports and 1 chart.
    I would like to refresh only the chart (flash one) using a button ... So, It is OK for a simple query (the partial refresh process is working : the OTN example used). But when the query used for the chart are base in item (select *... from my_tab where cl=:P1_CHART_HIST), the refresh is not taking into consideration the parameter change (refresh needed after changed the value in the item P1_CHART_HIST...)...
    I hope that you see what I mean and do you have a solution for this ...
    Regards

    if you provide a name for the iframe, you can set the target in the href's..
    I would also provide it with an ID and Name, as you might want to do some fun JS stuff with it in the future.
    You can actually with JS change the content
    HTML way:
    a href="http://www.google.com" target="pdfIFrame"
    I would stick with the HTML-eidtion..
    The iframe should work as the older frames, eg. you have to set the name in the iframe too.
    Also I see there was missing a > in your iframe code.
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&P1_LINK." name="pdfIFrame">
    </iframe>
    Maybe you should also consider styling the iframe via. CSS. Use ID or Class on the Iframe to do so.
    Edited by: user9178158 on May 11, 2010 3:26 PM
    Edited by: user9178158 on May 11, 2010 3:27 PM

  • JSF - CommandLink action - Partial Refresh for Multiple Pages in a Form

    Hi,
    I have a 3 JSP Pages, say ( 1.jsp, 2.jsp, 3.jsp) called as designed in the FORM below :
    --------------PAGE 1.jsp-----------------------------------------
    | Input Box 1 |
    | Input Box 2 |
    | Input Box 3 |
    | |
    | <DIV> |
    | PAGE 2.JSP |
    | </DIV> |
    | |
    | |
    | |
    | <DIV> |
    | PAGE 3.jsp |
    | </DIV> |
    |________________________________________ |
    Page 1 has some input boxes and onBlur() of one of the input Boxes --> I call some Ajax code pass Values from Page 1.jsp to Page 2.jsp --> build URL for Page 2.jsp and display it in the specifiedDIV area above.
    Similarly, Page 2.jsp has some inputs --> pass inputs from Page2 to Page 3----> build URL for Page 3.jsp and call it in DIV areaabove .
    Now,
    Page 3.jsp has a commanButton which I click and upon success submission refreshes the whole screen & loads only Page 3.JSP
    Is there a way that when i click on the submit button on Page3.jsp above, only the part of the whole form that has Page 3.jsp refreshes and rest of the screen remains as it is. I mean Page 1 & Page 2 do not get refreshed.
    I would really appreciate if you could assist with some code examples

    Don't know if I get it right, but it's not wise to discover wheel, when it's alredy discovered. Mix of JSF 1.2 with RichFaces should do. You can set form to be submited in ajax, you have ajax components, finally you have attribute 'reRender' in commandButton (or whatever you use) which tells which part of page should server rerender, so just indicate it by element id :].
    In short term You may try to divide your page with sub pages (suppose you use subview) on 3 forms. In JSF 1.2 RI h:form always send whole form, and so rerenders whole form

  • How to do a partial refresh of a form and report on the same page?

    Hi all,
    im trying to make a page where you have a report on top and when you click the link instead going to the form page, the form page is on the bottom of the report. lets say im trying to send an id from the report to the item below so that i could fetch the rest of the item. however when i pass,other items would still refer to this one as null.
    if im not mistaken this could be done with submit,but i want it to be partial refresh..
    i tried steps here but this only worked when the lower part is a also a report:
    https://forums.oracle.com/thread/2345863
    i also tried this,but this actually submits a page..
    Grassroots Oracle: Apex Tutorial - Form &amp; Report sharing the same page
    would it be possible to get a form and report in one page as partial refresh?
    Message was edited by: T101_cyberdyne

    If so, you need to create a dynamic action with a javascript action to set the id of the report row in the id form field, and a subsequent pl/sql action to fetch the record based on the id. You can use this record to set the other form field items.
    For the example in the above link the code looks as follows.
    the javascript action:
    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text()
    $s('P26_EMPNO',empno)
    the PL/SQL action:
    declare
    cursor c_emp is
    select * from emp
    where empno = :p26_EMPNO;
    BEGIN
    for r_emp in c_emp loop
      APEX_UTIL.SET_SESSION_STATE('P26_ENAME',r_emp.ename);
      APEX_UTIL.SET_SESSION_STATE('P26_JOB',r_emp.job);
      APEX_UTIL.SET_SESSION_STATE('P26_MGR',r_emp.mgr);
      APEX_UTIL.SET_SESSION_STATE('P26_HIREDATE',to_char(r_emp.hiredate,'dd-mon-yyyy'));
      APEX_UTIL.SET_SESSION_STATE('P26_SAL',r_emp.sal);
      APEX_UTIL.SET_SESSION_STATE('P26_COMM',r_emp.comm);
      APEX_UTIL.SET_SESSION_STATE('P26_DEPTNO',r_emp.deptno);
      APEX_UTIL.SET_SESSION_STATE('P26_ORDNO',r_emp.ordno);
    end loop;
    END;
    Hi Vincent,
    Yes! im looking for something similar. This looks interesting. I did look into apex_util.set_session_state yesterday but didnt know how to apply. perhaps i was doing it wrong.
    Question though, so basically first use the javascript to send the EMPNO from top report to the EMPNO in the form fields below.
    Then based on the EMPNO received in the form, do a loop to get the rest and put it into session. Correct?
    if i'm not mistaken i did something similar,but when i tried to set session for the rest,it refers to to the p26_EMPNO still as null..does the javascript sets the id of report to the id of the form or does it just send over?
    i'll try it out.
    Thanks.

  • I want to refresh my jsf page on the click of command button.

    Hi all,
    i m using JDEV 11.1.2.1.0
    i have created one jsf page with fragment i want to refresh my whole page on the click of command button which is present in fragment page.Besause i want to refresh some field but those are present in jsf page so i cant apply partial trigger because command button property in fragment page backing bean class and those attribute which i want to refresh its property in other class.
    thanks.
    Rafat

    i didnt get you from your content so i go with subject for giving your answer
    refreshing some of the fields
    BindingContainer bindings = getBindings();
    DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("xIterator");
    ViewObject vo = dciter.getViewObject();
    Row row = vo.getCurrentRow();
    vo.executeQuery();or else drop execute operation as button to execute vo.
    to refresh a page
    partial trigger nice options.
    to performs instant refresh
    af:poll component
    so if you don mine give me some scenario using hrschema i may give a liitle try to my small brain :)

  • Partial submit question, only partial refresh...

    I all,
    I use a partial submit on a page on a CommandLink.
    I have also a PartialTrigger for the part I want to refresh.
    It seems that when I click, the link, the entire page is submited and only the PartialTriggered part is refreshed.
    Is it possible to avoid the entire page to submit on have only the partialRefresh because, the only data which has changed is changed with a setActionListener enclaused in the CommandLink.
    Thanks.
    Michael

    Hi,
    no, PPR does not refresh independent of a submit
    Frank

  • 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

  • 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>

  • Is it possible to refresh the home page or report page automatically?

    Hi.
    I'm develping EM plugin with EM 11 extensibility.
    Is it possible to auto refresh the home page or report page?
    It contains the view data(real time 30 sec page..) select list combo at the matric detail page.
    and it is displayed on the right of the top at the database main page
    Thanks,
    wonjo.
    Edited by: wonjo on Oct 5, 2010 10:49 PM

    Also, there are enhancements in progress to the extensibility framework which will, in future versions of EM, allow this type of control over chart/table refresh for plugins.

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • How do I make an embedded Javascript element(embedded MS Excel chart) automatically refresh so that viewers do not have to refresh the entire page to get updated information.

    I am creating a web page that features an embedded chart made by MS Excel. I would like the chart to automatically update(refresh) to show viewers live information without having to refresh the entire page. I have found that there is a way to enable this through Excel but with my current subscription cannot access that feature. I am hoping that there is a way to achieve this using Adobe Muse CC. If it is not possible, I would like to know if there is a way to add a "refresh" button that refreshes only the embedded section(Excel Chart) of the page for viewers to use manually. Thank you for your help.

    Update! The embedded spreadsheet is actually embedded using HTML rather than javascript.

  • ReturnToPortal() doesn't refresh the portal page

    In the community preference page, when finishing changing the preference, calling IPortletResponse.ReturnToPortal() closed the preference page but didn't refresh the portal page. What needs to be done to refresh the portal page so the portlet can be refreshed with the new pref data?
    ALUI 6.1MP1.
    TIA!

    This is why it doesn't work...
    There is a bug that I filed for this, basically that icon on the portlet header works for user and admin preferences... it make sense to add community preferences there too to make it all consistent.
    The problem is: community preferences behaved differently.. in 5.x, the only way to edit them was to go through edit this community... the refresh mechanism is built into the community editor.
    In g6 that didn't change... you still need to go through that route to actually update the portal with the new preferences. going through the icon does nothing. user and admin prefs will work b/c they also worked like that in 5.x.
    Basically, it's a bug b/c community prefs never worked like that... adding it to the button promoted the sense that it should work, which it never did...
    so you have to go through the edit this community route to make it refresh.

  • 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

  • Dashboard prompt Refreshes the whole page

    Hello Experts
    When i change a dashboar prompt on the dashboard, it refreshes the whole page instead of that one report where the dashboard prompt applies. How can i limit to just refresh or update only the reports it is suppose to instead of all the reports on the dashboard page. Please advise.
    Thanks
    Ravi

    I agree to what you are saying, in my case if i have 3 reports on the dashboard page only report is is prompted the other two reports are not, still those reports gets refreshed which means i get processing rotating clock on all the 3 reports even though the 2 reports dont change with the prompt selection and then all the report appears. It is just annoying for the users, so i just want that one report to update or refrsh and the other reports should stay still. Hope i am little clear this time.
    Thanks
    R

  • Refresh automatically a page each 10 seconds

    Hi all,
    I need refresh automatically a page each 10 (or any) seconds. Maybe someone knows
    how do that. I don't have idea about this.
    Thans for your help.. is really URGENT

    Check this thread...
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=59772

Maybe you are looking for

  • TS1398 when i update my software to 6.1.3(10B329)to I phone 4s the wifi is not working and not auto join the network that i have already connected to

    when i update my software to 6.1.3(10B329)to I phone 4s the wifi is not working and not auto join the network that i have already connected to

  • Headphone thingy

    The other day I plugged in some headphones into my mac. Later I took them out. Now the headphone jack is lit up red and my mac won't play any sound. If I try to put the volume up there is a circle with a line through it underneath. If I plug my headp

  • Address issue

    Good morning Experts, we have a very strange issue with IT0006 for Norway. We have an employee which works in Norway but lives in Sweden. So normally our HR would just enter the Swedish address in IT6 how they do for similar cases in other countries

  • IDOC of message type EUPEXR

    hi all, When I run RFFOEDI to gereate IDOCS, IDOCS of message type EUPEXR and PAYEXT are generated. I need to pass a value in a field in the control record for the IDOC of message type EUPEXR but in FM : FI_EDI_EUPEXR_IDCREF01_OUT  ( which is uesd to

  • Problems with default domain with Weblogic 9.1 server

    Hi, Today I've been installing Weblogic 9.1 on our Red Hat (CentOS 4) server. After good experiences with BEA Weblogic local on my Windows machine I'm trying it on the server. But after installing Weblogic and setting a default domain (automagicly ge