Scheduled page refresh

I have developed a Portlet using JPDK that access a database. It does a select and displays the result. Everything works like a charm.
I want to enable a scheduled refresh. That is to say, that I want my Portlet to be regularly re-executed, for example each 5 minutes.
To do this I thought about two ways:
-     IFRAME
I had inserted an iframe in my Portlet and I set the source of it to be a detail page. The problem was that the detail page does not have the same style that the one of the Portlet. I did not find any way to set it to be the same. Moreover I have seen some links in the forum to some iframe examples but they are dead
-     AJAX
I have read the excellent white paper of Oracle on this subject but my problem with it is that I do not want to implement a specific web service that returns the select result. I find it too a complicated solution for this simple problem…
So could anyone help me on this simple point how to regularly reload a Portlet ?

Hello,
To me, there are 2 ways to di so :
Simple way :
Add a javascript timer on your page. Each top of teh timer will refesh your page.
-> drawback : it reposts your request
Nice way :
Following the AJAX wokaround, you can use JAVASCRIPT to make an astnchronous request to a PL-SQL procedure that can send you your results in a XML fargment. If you modify your JAVA portlet to take this XML in input, you will ne able to refresh your datas.
AJAX in portal could be made very simply, just take a look at this link : http://julien.carnelos.free.fr/blog/index.php?2006/01/06/26-ajax-et-struts-par-l-exemple
(french tutorial for ajax and struts)
Put the javascript methods in a HTML portlet on your page and it works perfeclty.
Hop That Helps

Similar Messages

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

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

  • Is it possible to intitate total page refresh from plugin code

    In 11.1.1.4 EMAIGC we are facing following issue: Target status is not getting refreshed after dependent components status change (Which will be done through through EM Plugin UI actions). This will status will be reflected only after manual refresh.
    From our plugin code , after the dependent component start/stop operations we wanted to call total page refresh, is there any way to handle this?
    Thanks ,
    Ramadevi

    In 11.1.1.4 EMAIGC we are facing following issue: Target status is not getting refreshed after dependent components status change (Which will be done through through EM Plugin UI actions). This will status will be reflected only after manual refresh.
    From our plugin code , after the dependent component start/stop operations we wanted to call total page refresh, is there any way to handle this?
    Thanks ,
    Ramadevi

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

  • Error on open the Report Schedule Page from other application

    Hi,
    I want to open the only "Report Schedule Page" of the InfoView from my application. For this I am using the following url -
    http://servername:8080/businessobjects/enterprise115/desktoplaunch/InfoView/CrystalEnterprise_Report/schedule/get.do?objId=526
    The problem I am facing is that sometime the Report Schedule Page open successfully and sometimes it gives the following error -
    HTTP Status 400 - Invalid path /InfoView/InfoView/logon/logon was requested
    type Status report
    message Invalid path /InfoView/InfoView/logon/logon was requested
    description The request sent by the client was syntactically incorrect (Invalid path /InfoView/InfoView/logon/logon was requested).
    Apache Tomcat/5.0.27
    Please help me in resolving this issue?
    Thanks,
    Vicky

    Hi,
    first of all it is neither supported nor recommended to embed or call single components or pages of InfoView in other applications. You would have to write your own schedule page using the BO SDK.
    The problem you are facing looks like the component you are calling does not get or find a valid session to the BOE system in the desired place. But even if it would (sometimes you are seeing that) I doubt that it would work to schedule a report using this mechanism as the further requests when pressing the OK button will call other parts of InfoView then, which will probably cause other problems. So try to use another solution as stated above.
    Regards,
    Harald

  • Update report dynamically? (without page refresh)

    I have a page with several regions, and only one region is visible at a time. Each region contains a report as well as a drop-down to alter the data displayed in the report. Currently each time a drop-down value is changed it submits the page, which causes the "main region" to become visible since it is set by default to display first.
    Is there a basic tutorial I can follow on how to dynamically update the report output without a page refresh?
    Thanks,
    Steve

    Steve wrote:
    I have a page with several regions, and only one region is visible at a time. Each region contains a report as well as a drop-down to alter the data displayed in the report. Currently each time a drop-down value is changed it submits the page, which causes the "main region" to become visible since it is set by default to display first.
    Is there a basic tutorial I can follow on how to dynamically update the report output without a page refresh?The easiest way to do this is using dynamic actions. Create a Refresh dynamic action for each region that executes when the associated select list is changed:
    h4. When
    Event: Change
    Selection Type: Item(s)
    Item(s): <select list associated with region>
    h4. True Action
    Action: Refresh
    Fire On Page Load: Yes or No depending on the requirements of your application
    Region: <region to be refreshed>
    Ensure that the value of the associated select list is submitted into session state before the refresh by specifying it in Page Items to Submit in the Source section of the report region definition.
    There are some dynamic action tutorials on the Oracle Learning Library. Doesn't specifically mention Refresh in the abstract, so it may not cover this specifically, but it is an introduction to dynamic actions in general.
    (It's probably possible to create a single dynamic action to handle refreshing all of the regions: we'd need more comprehensive details of your application, preferably reproducing it or a simplified version on apex.oracle.com.)

  • Adding a new field in delivery schedules page

    Hi,
    I have a requirement for delivery schedules page of iSupplier Portal module of Oracle eBusiness Suite. I need to add a new field to the results page. However, when I check the "about this page", I see POS_SUPPLIER_INQUIRIES177_POS_PO_EXPECT_RCPTS_D11_111POS_PO_EXPECT_RCPTS_DDynamicVO as the view object name. I guess this is a dynamic vo and I have no idea where to find the definition, so I may add the new field via extending it.
    Can anybody help?
    Thanks

    Looks like you are trying to add an item in the inquiries page which is not the same as the extension mechanism we support. This is slightly tricky for the following reasons,
    - We donot support the latest personalization tool on inquiry pages and if you try to enter the personalziation tool on these pages you would still see the old personalization UI we supported in 11.5.9. In 11.5.9 we didnot support addition of new items which can be associated with a VO.
    - However custoemrs were using AK Developer to add a new item in case Inquiries when the page was in AK mode. The same will still hold good in JRAD mode, this time you have to modify the table definition directly. You need to read through the inquiries section in dev guide to understand how these tables get populated by the dynamic VO and how you can set the viewInstance and viewAttributeName for the additional item. You should spend a little more time understanding the inquiries creation but this should be doable.

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • Why does a box that says "uninstal set" keep popping up when i go to a new page, refresh the page, or ever open up the browser ever i upgraded to the new firefox?

    I upgraded to the newer version of firefox, and ever since then every time i go to a new page, refresh the page, or open it the interned a box pops up and says "uninstal set" and won't let me continue until i click "ok" why is this happening, and how can i fix it?

    go to Tools, add-ons, then only disable java 6.0.22 ONLY, then you have to click on restart. That solved my problem.

  • How do i get my reminders to appear on the scheduled page

    The scheduled page in 'Reminder' App stopped working.  The scheduled page is blank and will not load my reminders for each day.  The scheduled page in my reminder app freezes.  I have tried rebooting the phone and shutting it off.

    Hi Hearingaids;
    I'm sorry to hear you are having problems printing.
    To further assist you would you please provide some further information:
    1) What type of HP printer do you have?
    2) What is the model/product number of your HP printer?
    3) What program are you trying to print from?
    4) What steps are you taking to send your print job to the printer?
    I have included a link for you on how to find your model/product information.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=bph07555&cc=us&dlc=en&lc=en
    Happytohelp01
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • 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

  • XIR2 - Date format problem in pdf file when scheduled to refresh

    We have a number of Deski reports that are scheduled to refresh daily and then be saved as pdfs to a network drive.  Despite the date format being correctly displayed in the reports stored in the respository, when the scheduled jobs save the reports as pdfs, it is changing the date format to the American format, i.e. 11/13/2007 instead of 13/11/2007.  I've checked both the Date/Time and Regional Settings on the server and they are set correctly.  If I log into Deski on the server and open a report and manually save it as a pdf, it saves it with the UK format.
    So what do I need to change to get the scheduled job to use the UK date format?

    Hi Anne,
    If you schedule reports through Infoview then please perform below steps.
    - Login to Infovinfoview -> go to Preferences.
    - Change the My interface locale is to "English (UK)" and My current Timezone to appropriate time zone under Genera tab.
    - Log off and login again.
    - Try to schedule the report to PDF or any other format and check the issue.
    If you schedule reports through CMC, then change Timezone setting to appropriate timezone in Preferences and schedule the reports.
    Thanks and Regards,
    Purna.

  • Problem in scheduling data refresh of excel file that uses PowerPivot

    I think I have successfully created and enabled the gateway and data sources for refresh - they are both seeming to connect.  However, when I try to schedule a data refresh to occur in the PowerBI site for the Excel file I receive an error message
    that the connection could not be established and receive error message "Correlation ID: d118ab93-436d-44a9-8c09-564f64fe0c58".  Appreciate any assistance in figuring out how to resolve.  Thanks a lotl

    Let's track it here: https://social.technet.microsoft.com/Forums/en-US/42c806dc-2d82-4bcf-ab6e-c279e2692a68/problem-in-scheduling-data-refresh-of-excel-file-that-uses-powerquery-and-powerquery?forum=powerbiforoffice365 
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

Maybe you are looking for