Partial page refresh

Hi everybody,
Well, I want to create a real-time region, like refreshing second per second. I found in this forum something about PPR templates.
But what is this? How can I use this? Where I find this?
I'm using the Apex 4.0.2 version.
Thanks guys
Raul

Yes, this can be done in Ajax, now depends if you have worked on Ajax or not? You just need to intanciate XHR object, i.e. xml http request, call a custom jsp where you retrieve the values using jdbc, and update the OAF page.If you have not worked extensively on javascript using ajax features i would advice not to go via that route as you may not support it in future.
--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Partial page refresh is not working in APEX 4.0

    Hi All,
    I have a report region in my application,I have selected the following properties for the region,
    Pagination scheme - Row ranges X To Y (with next and previous links)
    Enable partial page refresh - yes
    Display position - bottom -right
    Their is an arrow mark link(next /previous) in the right bottom corner,when i click on that ,the region is displaying the next 15 rows, but the region is not getting refresh,the scroll bars are al went off if i click the previous/next link.
    After that i refreshed the page by clicking F5 ,scroll bar is appearing now.
    In the region header and footer i have added this code,
    <div style="overflow:auto;">
    </div>for scroll bar
    Please some body help me to fix this issue..
    Thanks & Regards,
    Ramya.
    Edited by: Ramya on Apr 15, 2012 10:42 PM

    Hi All,
    I fixed this issue.
    I used Skillbuilders modal popup plugin, to open the form page as popup when i edit the record.To implement this plugin i have already created dynamic action for edit ,create and autoclose the popup.
    In the dynamic action i changed the EVENT SCOPE from BINT To LIVE and tested the application.Now its working fine.
    I can able to edit the record after i hit the next/previous pagination link .
    Thanks ,
    Ramya.

  • (Classic) Report losing pagination on partial page refresh - APEX feature request

    I have a page with both an Interactive Report and some classic Report regions.
    Based on user updates, there are many occasions where I need to do a partial page refresh.
    Thanks to plugin http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/refresh-interactive-report-1.0_361.html
    I'm able to refresh my IR, but not my classic report (unless I do a submit of the whole page) without losing pagination.
    Request: Will a Dynamic action 'Refresh without losing pagination' be part of future apex versions?
    Now, in apex 4.2, is there another work around available for classic reports?
    (I use 'submit page' now as action, but it's at least a second slower as a partial refresh, and because I need it on every user update, this second becomes a big addition to user frustration).
    Thanks, JP

    Here is the solution for your problem:
    https://apex.oracle.com/pls/apex/f?p=31517:243
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494

  • Event handler when using partial page refresh ?

    Hi
    I have a calendar, which uses partial page refresh. The problem is how to make javascript wait until the calendar has loaded and then do some updates on the calendar (after the user has pressed the next button that runs apex.widget.calendar.ajax_calendar('S','next');, for example ). I thought I could add "onreadystatechange" (or onload) event handler to the calendar like this: onreadystatechange="checkState()", where the function would check the state and if ready then do the updates. This doesn't work. Could somebody please tell me why not ?
    Tiina

    Hi,
    It seems that ajax calendar missing event apexafterrefresh.
    I do not know is this "bug" or just feature.
    That event would be useful to your case , if I understand correct what you looking for.
    For workaround , you can over write original function by placing this to calendar region footer
    <script>
    apex.widget.calendar.ajax_calendar=function(p_calendar_type, p_calendar_action, p_calendar_date, p_calendar_end_date){
    var l_cal_type_field = $v('p_cal_type_field_id');
    var l_cal_date_field = $v('p_cal_date_field_id');
    var l_cal_end_date_field = $v('p_cal_end_date_field_id');
    var l_cal_id = $v('p_calendar_id');
    var l_calendar_region = 'calendar' + l_cal_id;
    if ( p_calendar_type != 'C' ){
      $s(l_cal_date_field,$v('p_calendar_date'));
    }else{
      if ( $v(l_cal_date_field) == '' ) {
       $s(l_cal_date_field,$v('p_calendar_date'));
      if ( $v(l_cal_end_date_field) == '' ) {
       $s(l_cal_end_date_field,$v('p_calendar_end_date'));
    // create and apex.ajax.widget object
    var a = new apex.ajax.widget('calendar',function(){
      /* start the return function */
      if(p.readyState == 1){
       document.body.style.cursor = "wait";
      }else if(p.readyState == 2){
      }else if(p.readyState == 3){
      }else if(p.readyState == 4){
       $x(l_calendar_region).innerHTML = p.responseText ;
       $s(l_cal_date_field,$v('p_calendar_date'));
       if (p_calendar_type == 'C') $s(l_cal_end_date_field,$v('p_calendar_end_date'));
       document.body.style.cursor = "";
      /* DO HERE THINGS AFTER CALENDAR REFRESH */
      }else{return false;}
    // code for next,previous and today
    if (p_calendar_type == 'S'){
      p_calendar_type = $v('p_calendar_type');
    }else{
      $s(l_cal_type_field,p_calendar_type);
    a.ajax.addParam('p_widget_mod',p_calendar_type);
    a.ajax.addParam('p_widget_action',p_calendar_action);
    a.ajax.addParam('x01',l_cal_id);
    var lDate = (!!p_calendar_date && p_calendar_date !== '')?p_calendar_date:$v(l_cal_date_field);
    if (p_calendar_type == 'C') {
      var lendDate = (!!p_calendar_end_date && p_calendar_end_date !== '')?p_calendar_end_date:$v(l_cal_end_date_field);
    a.ajax.add(l_cal_date_field,lDate);
    if (p_calendar_type == 'C') a.ajax.add(l_cal_end_date_field,lendDate);
    a.ajax.addParam('x02',lDate);
    if (p_calendar_type == 'C') a.ajax.addParam('x05',lendDate);
    a.ajax.add(l_cal_type_field,p_calendar_type);
    a._get();
    </script>Where I have comment *"do here things after calendar refresh"*, you can hook own scripts.
    Of course this is not best way, but might help you till ajax calendar support dynamic actions fully
    Regards,
    Jari
    Edited by: jarola on Oct 20, 2010 3:11 PM

  • Oracle Apex partial page refresh problem in IE

    Hi All,
    I'm using a button to refresh a region by enabling ppr .
    On click of the button , m redirecting to url and the url target is as follows
    javascript:jQuery('#VH_SCROLL_EMP88').trigger('apexrefresh');
    Its working fine in firefox and chrome but not in internet explorer. When I click the button in IE I just get the following
    [object Object] in the page
    When I click back button of browser I'm getting the original page
    Please help me to understand and rectify this
    Regards
    Sasidharan

    a) What version of IE are you using, this probably factors greatly in this question
    b) If you want to partially page refresh a region, it looks like you're using a sledgehammer when all you need is your clicking finger
    - can you create a dynamic action for your button that applies a 'refresh' action to your selected region

  • Partial page refresh in REQUEST scope

    Hi,
    I was going through the various example of partialTrigger.
    But in I am unable to find the example in where we can use the partialTrigger with having our backing bean into request scope. means Can we do partial page refresh without keeping our backing bean into session scope?
    Can we do partial page refresh across different fragments (different jsf fragment - jsff ) with having the our backing bean in a request scope?
    Is there any way that we can achieve this?
    Please can any one provide some input or help on this?
    Thank you in advance.
    - Kumar

    Hi,
    Can we do partial page refresh without keeping our backing bean into session scope?
    Yes, don't know how you get to this idea that you couldn't. You can use ADFFacesContext.getCurrentInstance().addPartialTarget(component)
    Can we do partial page refresh across different fragments (different jsf fragment - jsff ) with having the our backing bean in a request scope?
    You are posting a JDeveloper 11 question without saying it first. Also note that there is a JDeveloper 11 forum here on OTN. To answer the question, I don't think that you can do this and that instead you would use a region and contextual events to refresh the area
    Frank

  • POP LOV and Branching ( Partial page refresh)

    I have a POP LOV (Shows description and returns id). I want to change certain elements on the screen based on the user selection.
    It is not possible via POP LOV. I cannot use selection lov since the number of values returned is going to be very large.
    is it possible to achieve this functionality in any way using POP LOV ?
    Appreciate your help.
    Rgds

    Scott,
    Thanks for your input. I think I didn't frame my question correctly, sorry about that. I will describe further
    I want the page to refresh after a value is chosen using POP LOV. THis is required to hide/show certain elements on the screen and also to populate another Dependant LOV.
    For example, choosing country should populate dependant "city" or states lov. I have to achieve some functionality similar to this. I do not want to "Submit" the page, because I don't want to save anything at this point in time.
    So it would be partial page refresh (Similar to OA Framework) without submit.
    Rgds,
    Venkatesh
    Message was edited by:
    Venkatesh_pr

  • Partial Page Refresh - Text Box Update

    Hi,
    I have a page where there are numerous regions, each containing two or more text fields. I want these to update periodically using partial page refresh.
    I have got the partial page refresh working but my text fields are not being updated. How would I get them to update? I know I can't call a page process from javascript, only application processes.
    Cheers
    Simon

    Hi John,
    I think you'll need to create two dynamic actions. One of type PL/SQL block with null; as the source and enter the items to submit. The second is the Refresh Region Dynamic Action..
    Martin
    http://www.talkapex.com

  • Partial Page Refresh Samples

    Hi Guys,
    Where can I find some cases/page in HRMS 9.1, which leverage partial page refresh, a new features from PeopleTools 8.50?
    Thanks,

    Yes, this can be done in Ajax, now depends if you have worked on Ajax or not? You just need to intanciate XHR object, i.e. xml http request, call a custom jsp where you retrieve the values using jdbc, and update the OAF page.If you have not worked extensively on javascript using ajax features i would advice not to go via that route as you may not support it in future.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Std Page refresh issue

    Hi,
    On a standard page, I have added a column of itemtype link to a table through personalization, which shows status.
    On click of link, I'm calling a custom read only page (has its own custom AM and VO) in a new window. Its a simple readonly table with data from custom VO.
    Problem is after clicking on the link and new window opens, if i do any action on standard page, control goes to standard process request and std page gets refreshed.
    How can i avoid this, i dont want std page to be refreshed.
    In personalization, i have given link item's destination uri as
    OA.jsp?page=/xxx/oracle/apps/ar/irec/accountDetails/webui/xxstatusHistPG&invNum={@TrxNumber}&retainAM=Y
    I tried retainAM=N as well as removing that parameter but still same issue.
    Any help is greatly appreciated, Thanks!

    Hi Gustavo,
    There is partial page refresh on std page, in extended CO PR, I have added event on column amount (to do validation on tab out)
    as well as on select check box (it defaults rem amount into pay amount). For link, I'm opening new page by setting destination URL property in link item properties.
    I cannot code for parameter based pop-up as Im in 11.5.10 and using JDeveloper 9.0.3 (added screen behaviour below)
    Hi Shobhit,
    I tried the approach you suggested. Based on session parameter, Im controlling the code in std extended CO PR.
    It worked, I mean at least it doesn't error out now like before with navigation error. However it refreshes the page as control went to PR.
    I entered some amount in amount text field, and then clicked on "partially paid' link. it opens a custom page in new window.
    after that if i select any other record using check box, it goes to PR and refreshes the page. Is it possible to avoid this.
    Thanks
    Prabhu
    Its a payment screen, where i can pay multiple invoices. added select check box for the same. added below code on check box to capture event in PFR and default remaining amt to pay amount text field. i also have payment status link as column in the same table. on click of it i open a new custom window to show transaction details.
    if i select some invoices and modify amounts, and then if i click on status link just to see the status before clicking on pay button, this issue happens. as page refreshes on any action, all my modifications are gone.
    Select checkbox has been added using personlization and hence has to set set fire action in PR.
    Code in PR:
    Hashtable paramsWithBinds = new Hashtable(1);
    paramsWithBinds.put ("param", new OADataBoundValueFireActionURL(chkbox, "{$TrxNumber}"));
    chkbox.setFireActionForSubmit("selectPPR", null, paramsWithBinds,false, false);

  • Partial Page Rendering with HTMLDB2.0. How can I do it?

    Hi,
    somebody told me, that PPR is implemented in HTMLDB 2.0. So not the whole page will be rerendered after a submit but a single region. I know this very helpful feature from the ADF-Java Server Faces. How can I do it with HTMLDB 2.0?
    Bye,
    Rumburak

    Hello,
    Take a look at this thread.
    Netflix: Nice UI ideas
    Also just so you know PPR Partial Page Refresh is an Oracle term you would probably have better luck looking for AJAX or XMLHTTP when looking in the forums
    Carl

  • ADF Faces : partial page rendering in f:subview

    hi
    Please consider this blog post, "ADF Faces: How-to issue a PPR event from a f:subview and how-to PPR of subviews" :
    http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-how-to-issue-a-ppr-event-from-a-fsubview-and-how-to-ppr-of-subviews/
    In this post, Frank Nimphius writes : "... PPR from a containing page to the subview - unfortunately - only works for the whole subview, which means that the included page is getting refreshed. Because the f:subview component does not support PR, you need to work with a wrapping ADF Faces container, like af:panelGroup ...".
    But, it looks like such partial page rendering in a subview can be done without a specific "wrapping ADF Faces container" like this ...
            <h:form id="firstPPRPageFormID">
              <af:panelPage title="firstPPRPage">
                <af:panelHeader text="components on firstPPRPage">
                  <af:panelForm>
                    <af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
                      <af:outputText value="#{dateUtil.currentDateAsString}"
                                     partialTriggers="firstSubviewID:firstSubviewCButton"/>
                    </af:panelLabelAndMessage>
                    <af:panelLabelAndMessage label="dateUtil.currentDateAsString">
                      <af:outputText value="#{dateUtil.currentDateAsString}"/>
                    </af:panelLabelAndMessage>
                    <f:facet name="footer">
                      <af:commandButton text="firstPPRPage button"
                                        id="firstPPRPageCButton"
                                        partialSubmit="true"/>
                    </f:facet>
                  </af:panelForm>
                </af:panelHeader>
                <f:subview id="firstSubviewID">
                  <jsp:include page="/firstSubview.jspx" flush="true"/>
                </f:subview>
              </af:panelPage>
            </h:form>... and where firstSubview.jspx contains something like this ...
      <af:panelHeader text="components on firstSubview">
        <af:panelForm>
          <af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
            <af:outputText value="#{dateUtil.currentDateAsString}"
                           partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
          </af:panelLabelAndMessage>
          <af:panelLabelAndMessage label="dateUtil.currentDateAsString">
            <af:outputText value="#{dateUtil.currentDateAsString}"/>
          </af:panelLabelAndMessage>
          <f:facet name="footer">
            <af:commandButton text="firstSubview button" id="firstSubviewCButton"
                              partialSubmit="true"/>
          </f:facet>
        </af:panelForm>
      </af:panelHeader>Note the value ":firstPPRPageFormID:firstPPRPageCButton" for the partialTriggers attribute.
    see http://verveja.footsteps.be/~verveja/files/oracle/PartialPageRenderingInSubview-v0.01.zip (check README.txt)
    questions:
    (1) Why exactly does this approach seem to work?
    (2) Because of question (1), what could be potential issues with this approach?
    regards
    Jan Vervecken

    Jan,
    good job ! I actually never thought of reversing what I said about PPR'ing a component from a subview.
    Actually
    partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
    works because the leading ":" makes ADF Faces to start the component search from the root container. Note that if you use af:form instead of h:form, the trigger is
    partialTriggers=":firstPPRPageCButton"/>
    I'll update my blog
    Frank

  • Partial Page Rendering - newbie question

    I am a newbie to ADF and I am in the process of trying out the tutorial "Developing Ajax-Based User Interfaces with ADF Faces Rich Client Components" http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_56/jdtut_11r2_56.html
    I have a question regarding Step 4. I am not very sure where to post this question, if this is not the correct forum, pardon me.
    Under "Step 4: Implementing Partial Page Rendering" there is this following comment
    In order to have a refresh of the Product Details when you select another row in the Product table, we need to set the Partial Rendering behavior. To do so, perform the following steps:
    Similarly On Step 3, sub step 26 states "Finally, double-click on any of the rows in the product table. Notice that the Product Details pane does not reflect the change in the selected product. To implement this synchronization, we need to add partial page rendering functionality."
    Question: even before I tried any of the changes mentioned in step 4, I am finding that the product details pane does show information related to the product selected on the panel collection (in other words it is displaying the master detail information automatically). What am I missing here? As per the training document it is supposed to work only after implementing changes mentioned in step 4. Can one of you kindly point out if this is a mistake in documentation or if I have misunderstood the statement?
    Thanks
    A Sreedhar

    Frank,
    Thank you very much for the quick turnaround; I appreciate it.
    Yes, I am using what seems to be the latest version of JDev (11.1.2.3.0); and yes the ChangeEventPolicy for the iterator is set to "ppr". Thank you for pointing that out.
    Does that mean ppr is standard for most components (when I say components, I mean adf tables, button's etc), don't we need to add any special events to get that to work?
    I just wanted to see, what will it due if the ChangeEventPolicy for the iterator is set to "None"; made the change saved it, there were two iterators I changed the "ChangeEventPolicy" on both to none; saved it and ran the page. It worked same as before; I was expecting it will not load the corresponding data at the child level, but it did. can you kindly point out what is wrong.
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="root" RangeSize="25" DataControl="StoreProducts" id="StoreProductsIterator"
    ChangeEventPolicy="none"/>
    <accessorIterator MasterBinding="StoreProductsIterator" Binds="products" RangeSize="25" DataControl="StoreProducts"
    BeanClass="tutorial.model.Product" id="productsIterator" ChangeEventPolicy="none"/>
    </executables>
    Thanks
    Aravind S

  • Store data in R/3 without page refresh

    Dear BSP-Masterminds,
    we need to store data in R/3 without a recurrent page refresh. The problem is that our engineers are using PDA's and the page refresh is taking too much time. The engineers are changing equipment data on the PDA's. Every time they click on  save button, the data get send to the R/3 system and the checking, if the data are correct, takes up to 30 sec. Additional the new page refresh on PDA takes another 20 sec. It would be great to find a solution which stores the data somewhere and by hitting the 'final save-button' the data get checked and saved.
    The worst case scenario would be a table of around 600 equipment data, so it might be a huge table that has to be stored somewhere. I thought of a client side cookie but I have no experience if it is possible to store such a big internal table and by the way I don't know if this would be possible on a PDA.
    Every little hint is welcome!
    Regards
    Nicola
    P.S.: Please excuse any spelling mistakes )

    Hi,
    Javascript as such can't do it without refreshing the page. You need to use the AJAX function. But you don't need to be scared about it. Just look at the web logs I've mentioned and you'll understand it quickly.
    Here's an additional AJAX tutorial
    http://www.w3schools.com/ajax/default.asp
    Eddy
    PS. Reward the useful answers and you will get <a href="http:///people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself">one point</a> yourself!

  • Animated gif and page refresh problem

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

Maybe you are looking for

  • "not responding" message across the top of mozilla several times a day and my entire computer lags when I receive that message.

    about two to three weeks ago mozilla started to lag on occasion with the "not responding" message across the top of the browser. it would freeze while i was playing facebook games or while i was watching youtube videos or just trying to scroll down a

  • Help Saving a .pdf file

    I've created a .pdf file ,but when i open the file,after i've created it ,it displays the left toolbar with the preview of all the pages of the entire file. The question is: How can i save the file in a way that it only displays for me the images wit

  • SRM-SUS Vendor registration BSP enhancement.

    Hello Gurus, Need help on vendor registration screen enhancement on SRM SUS. Its BSP application. How to enhance the BSP application. I need to add almost 20-25 fields in the SRM-SUS Vendor registration process screen. How to achieve this. Appriciate

  • Online-Printing with Documaker

    Hello, I've installed IDSServer, IDSShared and IDSClient in version 2.2 on my Windows 7 pc to play with it. Because of that I've selected http as queuing mechanism. Now I want to print a dummy hello world-pdf via the java messaging mechanism. I have

  • I Cloud Photo Stream

    What has happened when only 1 of 20 photos turn up on my computer in Photo Stream.??