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

Similar Messages

  • 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

  • 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

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

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

  • 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

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

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

  • Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Sorry for the delay getting back to this.
    Thanks to Fruhulda and Peter for their comments regarding the refusal of Pages to let me make 3D charts. 
    In answer to the questions put to  me in this regard :
    1. Pages version : Pages '09  v.4.1 (923)
    2. Mac O/S :          v.10.6.8 
    3. 3D chart :          Can't find a 'name', but upright bars with rounded corners ???
    4. Moved apps :    Not that I'm aware of!  All should be as installed off the disc.
    5. A note :              I have been able to create these in the past - related to a SW update? 
                          and ... can create these charts perfectly in Keynote (go figure).
    Thanks to all.
    CM

  • ADF Task Flow Binding - Refresh ifNeeded being invoked even WITHOUT any Parameter change

    Using JDeveloper 11.1.1.6.0
    Issue: Task Flow Binding property "refresh = ifNeeded" seems to be triggered even without the mutation of the input parameter.
    As per definition, "ifNeeded: refresh the ADF Region if the value of a task flow binding parameter changes." (Reference: 17.5 Refreshing an ADF Region)
    Now for the setup which reproduces the issue.
    I'll focus at the fragment bounded task flow level and will skip the jspx side.
    taskflow: main-flow.xml
    contains a single fragment mainFgmt.jsff
    has a managed bean defined SampleBean.java as pageFlow scope.
    taskflow: sub-flow.xml
    contains a single fragment subFgmt.jsff
    has an inputParameter SampleBean.java (because it is an input parameter, by default it will be at pageFlow scope)
    !important - has a nested taskflow (task flow call as defined in the component pallete) called inner-flow (see below)
    the nested taskflow is the default activity
    the nested taskflow has an outcome pointing to subFgmt where outcome = "return"
    taskflow: inner-flow.xml
    contains a single fragment called stop.jsff
    has a return activity without outcome = "return"
    stop.jsff has a navigation pointing to the outcome.
    Finally mainFgmt.jsff has a task flow binding (pageDef)
    with id = "sub-flow.xml"
    refresh = "ifNeeded"
    parameter SampleBean being submitted as sub-flow's input parameter. (id=sampleBean, value=#{pageFlowScope.mainSampleBean})
    Assume that code compiles.
    In this scenario where the only tricky condition is the inner nesting (defined by !important), when the inner nesting decides to invoke its outcome to visit sub-flow's fragment, mainFgmt is restarting its taskflow which makes sub-flow start over again.
    Another way of saying it is, if sub-flow starts a nested activity and that nested activity exits out to utilize sub-flow's view. The high level definition which is mainFgmt's refresh ifNeeded is restarting sub-flow.
    In the above example if you notice, the bean (SampleBean) is not really being utilized except that it is completing the purpose of refresh=ifNeeded. This scenario is only to simplify the setup - in practical use this bean will be mutated to be utilized as a refresh mechanism.
    Now interestingly, if I change the pattern a bit then the issue will not happen:
    Don't use the nested taskflow (inner-flow) as the default activity, let a fragment of sub-flow hold the initial view.
    Navigate to the nested flow.
    Exit nested flow.
    Everything works.
    Now in this scenario, it seems like the sub-flow needs to have a view established first for it to be properly be used.
    So my questions are as follows:
    Can I consider the behavior of the refresh=ifNeeded as a bug in this usecase?
    Would it be better to utilize a different way of refreshing (maybe combination of refresh condition) to get around the issue?
    Is the use of the task flow as defined logical or does it cross any boundary or best practice that might be causing this behavior?

    Hi,
    actually you lost me in your description due to complexity. I lived under assumption that sub-flow already is a region on a view in main flow, but then you sad that
    "!important - has a nested taskflow (task flow call as defined in the component pallete) called inner-flow (see below)"
    which then confused me as to I have no idea if inner flow now is the second level nesting or first level nesting (should be second level nesting). If sub-flow is a region then having "has an inputParameter SampleBean.java (because it is an input parameter, by default it will be at pageFlow scope)"  is an unnecessary broad scope because the region wont live longer than view scope.
    Anyway, it seems that a region refresh is triggered by the lifecycle involved, which can be by design or a bug. I suggest you file a Service Request with support and provide a test case as purely from the description, its hard to parse and understand what is going on.
    Frank

  • 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();

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

Maybe you are looking for