Asynchronous refresh

Hi experts,
here's the problem, I am riddling about:
My WD ist triggering a backend process via an action, let's say a button-action. That process could take quiet a while. So, as the WEB AS timeout is set to 60 seconds, the WD runs into this timeout, depending on the runtime of the backend process. Increasing the WEB AS timeout-value isn't a real option, because in practice the time needed by the backend is unknown.
So, I want my WD to wait for the rsult of the backend without timing out, with a nice waiting message and without the user interfering.
Regards
Torsten

Hi Torsten,
interesting problem. I think, there is no perfect solution.
Options
A) use a timer ui-element for polling
If the main wd-application is using up too many resources (memory), terminate it after starting the backend process, start another simple wd-app that just does the polling and in the case of success displays a link to the main wd-app. 
B) increase timeout
C) send an email with a link to the user when data becomes available or email the data
Would be interesting to hear, what your solution looks like.
Regards,
Silke

Similar Messages

  • How to refresh metadata of a remote copy of the master cat ?

    I have exported my mastercat to a copy on a USB disk which I take with me on trips attached to a notebook.
    I want to maintain the metadata during the trip and to have all previews remotely available.
    The copy contains only the cat and the previews, but no negatives.
    As already this remoteCat and the previews have a size of 200 Gigabyte, it is not an option to "refresh" by simply exporting the whole mastercat to USB-disk again before each trip.
    I want only to refresh the remotCat with the newest metadata content and additional previews.
    But this refresh-import into the existing remoteCat fails, as obviously metadata and/or previews are only refreshed with the "import from another cat" option if the negatives exist in the destination cat. And this is never the case with this remoteCat.
    The import dialog correctly identifies how many cat items have changed metadata, but these cat items are not refreshed after import.
    Note: the other way round, refreshing the masterCat with changed metadata from the remoteCat works, as the mastercat always has all negatives online available.
    How to do this refresh ?
    In addition is there a way to copy the "MyLocations" list from MAP module to another catalogue ?
    The export obviously only transfers the position data of each negative, but not the myLocations list.
    This makes it uncomfortable to update the positions on the remote cat.
    best regards
    LR4.4

    So you want to asynchronously refresh a part of the page. There is one general solution to accomplish this: implement AJAX.

  • Using JSP parameters as input in a JavaScript function

    hey
    I have a JavaScript function, which I call with JSP parameters.
    The function call looks similar to:
    <button onclick="myFunction(<%= jspParameter%>);"> </button>
    However, this JavaScript function is called from a jsp page, which is asynchronously refreshed upon a click of the button.
    The problem is that the JavaScript function does NOT function when I click the button for the first time (or maybe it functions, but with the old value of the jspParameter).
    Only after the second click it starts taking the jspParameter.
    Can you please tell me how to properly get the jspParameter as input in my case....
    thank you

    I'm sorry, you're right - I didn't give enough details.
    My whole page consists of several jsp-s.
    The jsp, from which I call the JavaScript function is just one part of the whole page. I'll call it partToBeChanged.jsp.
    When I press the button, the partToBeChanged.jsp should refresh asynchronously and call the JavaScript function using the new jsp parameter as input.
    To be more precise, here is roughly how myFunction looks like (JavaScript):
    function myFunction(url, jspParam) {
         var XMLHttpRequestObject = false;
         if (window.XMLHttpRequest) {
              XMLHttpRequestObject = new XMLHttpRequest();
         } else if (window.ActiveXObject) {
              XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
         if (XMLHttpRequestObject) {
              XMLHttpRequestObject.open("GET", myServlet + url, true);
              XMLHttpRequestObject.onreadystatechange = function() {
                   if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) {
                        //plug server response in the target place.
                        //The target is an id of a division, which holds the partToBeChanged.jsp page
                        //The server itself uses RequestDispatcher to direct the response to the partToBeChanged.jsp     
                        //NOTE: partToBeChanged is only a part of the whole HTML page, which is refreshed dynamically               
                        document.getElementById('target').innerHTML = XMLHttpRequestObject.responseText;
                        //changes the content of a div, which is IN ANOTHER .jsp fragment (different than partToBeChanged.jsp)
                        y = document.getElementById("div_to_change");
                        y.innerHTML = jspParam;
              XMLHttpRequestObject.send("");
    }the jspParam is a java object, initialized in the servlet and used in partToBeChanged.jsp
    To summarize: the servlet dispatches the response to the partToBeChanged.jsp page, which uses the jspParam as input for myFunction, and myFunction tries to change the content of the "target" div accorting to the jspParam. However it changes as expected only after the second button click.
    Thanks a lot for any help....

  • BI publisher report not refreshing when associated OBI EE report is changed

    We have a dashboard that has an OBI report at the top, and a linked BI Publisher report underneath. The BI Publisher report is supposed to reflect a template version of the results in the OBI report.
    On the initial load of the report, the two reports are synched and matching. However, when you change a prompt with a request variable for the OBI report, the BI publisher report either blanks out or shows the prior information which no longer matches. If I change defaults in the OBI EE report, resave, then reload, the BI Publisher always gets it right the first time, just never again after that.
    Since all my research to this point led to a caching issue, here are the report properties that matter(?):
    Report properties:
    Caching –
    Enable Data Caching = unchecked
    User Level = checked
    Document Caching = unchecked
    User Can Refresh Report Data = checked
    General -
    Run Report Online = checked
    Show Controls = checked
    Allow Sharing Report Links = checked
    Open Links in New Window = checked
    Asynchronous Mode = unchecked
    Auto Run = checked
    Also – how do you make PDF the default output for a BI Publisher report? When we load this dashboard, it always tries to run the RTF version, and we have to Cancel, choose PDF and then refresh to get the PDF version.

    when you change a prompt with a request variable for the OBI reportUse Presentation Variable instead of Request Variable. Make sure you keep the same name for both Parameter in the BIP report and Presentation Variable in BI.
    If helps mark
    ~
    http://cool-bi.com

  • Refresh SQL Report (Submit Page Item)

    I want to add a search field in a SQL Report. I have something like this
    SELECT * FROM emp
    WHERE  emp_no  LIKE  :P1_SEARCH || '%'I want to do the search asynchronous, on keypress. The problem is that a SQL Report doesn't have a "Submit Items:" atribute like a interactive report.
    So after i refresh the report:
    $a_report($x('P1_REPORT_ID').value,'1','10','100');The report is refreshing (the circle icon on top of the screen) but nothing changes cause the :P1_SEARCH doesn't submits.
    How could i submit a page item from JS ?
    King Regards,
    Cearnau Dan
    PS: I'm using APEX 4 and using dynamic actions it's the same like the Javascript call.(still doesn't submits the :P1_SEARCH item)

    Hi Dan,
    I would suggest not to use the undocumented
    $a_report($x('P1_REPORT_ID').value,'1','10','100');It's very likely that it will be changed in APEX 4.1
    Dan.Cearnau wrote:
    PS: I'm using APEX 4 and using dynamic actions it's the same like the Javascript call.(still doesn't submits the :P1_SEARCH item)That's true, but have a look at Anthony's blog posting http://anthonyrayner.blogspot.com/2010/07/report-filtering-with-apex-40-dynamic.html which explains a workaround to pass the new values for a classic report as well.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Asynchronous update of Flash chart error in IE

    Hi gurus,
    I had a post a while ago about an update command for a flash chart:
    [Asynchronous update of flash chart when select list value changes|http://forums.oracle.com/forums/thread.jspa?messageID=3491745]
    The goal was when I clicked a button or changed a select list the flash chart should update. Here is the command to update the flash chart:
    apex_RefreshChart ($v('pFlowStepId'), $v('Pxx_REGION_ID').substr(1), navigator.language );This worked really well in Firefox but IE always created an error:
    Details zum Fehler auf der Webseite
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 5 Oct 2009 06:16:52 UTC
    Message: Object doesn't support this property or method
    Line: 1
    Char: 31991
    Code: 0
    URI: http://apex.oracle.com/i/javascript/apex_3_1.jsTry this example:
    [http://apex.oracle.com/pls/otn/f?p=65555:23|http://apex.oracle.com/pls/otn/f?p=65555:23]
    I found out that IE used another function to get the client language. I fixed that but an error still occurs:
    Details zum Fehler auf der Webseite
    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Mon, 5 Oct 2009 06:27:02 UTC
    Message: Unkown error.
    Line: 49
    Char: 5
    Code: 0
    URI: http://SERVER:8080/apex/f?p=150:1:10579031101899::NO::P1_I_ID,P1_INSTANCE_NAME:1,DB1That is the javascript I used now:
    //check the Browser type to set the right browser language
    function fnc_checkBrowserLanguage()
    var nav_lng="en"; //default language string
    if(navigator.language)nav_lng=navigator.language;
    if(navigator.browserLanguage)nav_lng=navigator.userLanguage;
    if(navigator.systemLanguage)nav_lng=navigator.systemLanguage;
    if(navigator.browserLanguage)nav_lng=navigator.browserLanguage;
    if(navigator.userLanguage)nav_lng=navigator.userLanguage;
    if(window.navigator.language)nav_lng=window.navigator.language;
    return nav_lng;
    // return 'en-us';
    function fnc_setTablespaceItem (pItem)
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=dummy',0);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
    // alert('Item '+pItem+' Session State set to '+$x(pItem).value+'!');
      var v_flow_id = $v('pFlowStepId');
      var v_region_id = new String($v('P1_REGION_ID_TU').substr(1));
      var v_browser_lang = fnc_checkBrowserLanguage();
      //alert(v_flow_id);
      //alert(v_region_id);
      //alert(v_browser_lang);
      var vOriginal_apex_RefreshChart = apex_RefreshChart;
      apex_RefreshChart = function(v_flow_id,v_region_id,v_browser_lang)
        vOriginal_apex_RefreshChart(v_flow_id, v_region_id, v_browser_lang);
      apex_RefreshChart(v_flow_id, v_region_id, v_browser_lang);
      get = null;
    }If I set the alert boxed all variables have a value. Firefox works well. And I have no idea what I could do next???
    Tobias

    I just found out that the original time based flash update option creates the same error I get all the time. It can be configured under:
    Chart attributes > Refresh: Asynchronous Update = YES and Update Interval (Seconds) = 10
    Error: (line 49) (JScript - script block):
    function __flash__addCallback(instance, name) {
      instance[name] = function () {
        return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));
      }By the way I use the newest APEX version: "Application Express 3.2.1.00.10"
    Seems more like a general error? Everybody should be able to rebuild this under IE 8 or IE 7. I use IE8!
    Created source code:
    &lt;script type="text/javascript" language="javascript">
    function chart_r2258227549390282_InitRefresh(pNow) {
      setTimeout("chart_r2258227549390282_InitRefresh(true)",10000);
      if (pNow){apex_RefreshChart (1, '2258227549390282', 'de');}
    apex_SWFFormFix('c2258227549390282');
    &lt;/script>It still works well with Firefox.
    Tobias
    Edited by: Tobias Arnhold on Oct 6, 2009 2:37 PM

  • Refresh problems

         Hi,
         we are developing a classical chess game, and we started using the Swing JButton with success, but when we tried to run our applet in IE it failed... we read about it and we decided to implement our own ImageButton (extending button and creating an Image) , instead of downloading and using the Java Sun pluggin. But with this new own ImageButton, the chess Board sometimes doesn't refresh as before and the pieces remain static. It seems that our Board isn't repainting, but when we activate the frame, then the pieces move OK. Can anybody help us ?
    Thanks in advance

    Are you using Toolkit.getImage or Applet.getImage? If so, the images are loaded asynchronously, and you'll want to use MediaTracker to wait for them to finish loading before trying to display them. You should only have to do this for each image once. Once it's in memory, you shouldn't need to worry about it any longer.

  • Scroll bar moves on asynchronous postback in IE 11

    Hi all,
    I have an .aspx page with a number of user controls, each of which has a GridView control within an UpdatePanel.  These UpdatePanels initiate asynchronous postbacks to update the GridViews.
    With IE9, and with the
    MaintainScrollPositionOnPostback
    property set to true, the main .aspx page would not scroll when the asynchronous postbacks occurred.  Now with IE11 the page scrolls, usually to the top, but not always.  I get similar behavior with Chrome.
    I am also setting the focus on a control within the grids.  I think this is the immediate cause of the problem, as the problem goes away if the code for the focus is removed.  But this worked in IE9.
    I have tried some of the JavaScript solutions found online but to no effect.  We are using Visual Studio 2013 with C# and Windows 7.
    Thanks,
    Eric Lindberg

    Hi,
    Compatibility changes in IE11
    doScroll has been removed. use scrollTop or scrollLeft instead. If your project uses a shim (jquery etc) it may have a wrapper method.
    to debug your asp web page scripts, f12>Debug tab, select "Break on all errors" from the dropdown and return to your web page and refresh it (without closing the developer tool). Include any error messages with your questions or if possible
    a link to your website.
    Regards.
    Rob^_^

  • WLS 8.1 SP5 Message bridge doesn't refresh connection after idle time out

    Hi,
    I am seeing in the log after enabling the debug flags that message bridge intermittently stops refreshing the connection without logging further info and causing a production failure.Bridge is forwarding the message from WLS 8.1..5 DQ to the remote MQ 6.0 queue.
    Below is the snippet which doesn't come in the log which suggests that bridge stops refreshing the connection.
    <BEA-200027> <Bridge "CASLDNSenderBridge" works in asynchronous mode and has not received messages for the predefined maximum idle time. The connections to the adapters will be interrupted and reestablished.>
    The above message does appear everytime but intermittently it stops and the messages put after this leading to the exceptions.The bridge has been configured in asynchronous mode and the idle time out is configured as 60 secs.
    Can somebody please let me know if there is any known issue with 8.1 SP5 where message bridge stops refreshing connection intermittently or how to debug this further.

    I would normally suggest raising the issue with support, but I recall hearing that 8.1 is nearing the end of its support cycle, so I'm not sure that's an option for you. Other options:
    - try upgrading to a newer SP, or better yet, a new version of WebLogic
    - try changing to synchronous forwarding
    - examine thread dumps from when the bridge appears to be stalled
    - post the exception that bridge is throwing when it tries to connect
    - try patching MQ (the problem could be on the MQ side, and perhaps an older version of the bridge may not be fully capable of handling all of MQs minor quirks)
    - write a program to (A) detect inactivity on the src destination, and (B) somehow restart the bridge and/or all of WL when this occurs
    Tom

  • Firefox Embedded Flash swf not shown in asynchronous desktop

    Hi all,
    in a jsp I embed a binary property of a content node that includes a flash .swf file. All that in an asynchronous desktop, using Firefox.
    I use the follwing code:
    "<embed scale="exactfit" quality="high" menu="false" width="600" height="400" hswLiveConnect="false" src="<%=myPropertyUrl%>">
    When the page is loaded by "normal" browser request, the flash animation inside the jsp renders as expected. After click on an url (<a> ....</a>) inside the same JSP the portlet content refreshes (via Ajax request), only the flash disappears. After F5 it's back agian.
    The problem does not exist with IE!
    How do i need to handle this for Firefox?
    Thanks for help.

    Firefox uses the object if there isn't a classid to specify an ActiveX control for IE.<br />
    You didn't specify such a classid (classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"), so there is actually no need for the embed in this case.<br />
    As jscher2000 posted above, an object tag only works in Firefox if there is a data attribute present (copy of the movie param) to specify the Flash file and a possible MIME type.
    <pre><nowiki><object style="width:420px;height:272px" data="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" >
    <param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" />
    <param name="flashvars" value="mode=mini&amp;backgroundColor=%23222222&amp;documentId=121102153057-a8027186d32d406698ae9cd6ce0305ed" />
    <param name="allowfullscreen" value="true"/>
    <param name="menu" value="false"/>
    <param name="wmode" value="transparent"/>
    </object></nowiki></pre>

  • Refreshing Flash Chart Report based on a Multi-Select List

    I have P13_SYMBOL multiselect list object..
    Set "HTML Form Element Attributes" property of P13_SYMBOL to onchange="javascript:getchart(this);"
    I have written following code at page HTML Header section.
    <script type="text/javascript">
    function getchart(filter)
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=GET_CHART',0);
    get.add('G_SYMBOL', filter.value);
    var ret = get.get();
    if(ret)
    var d = document.getElementById('P13_SYMBOL');
    d.innerHTML = ret;
    Created Application Item G_SYMBOL
    Created Application Process GET_CHART as follows.
    DECLARE
    vSymbol VARCHAR2(100);
    BEGIN
    htp.p(:G_SYMBOL);
    EXCEPTION WHEN OTHERS THEN
    htp.p('No such symbol!');
    END;
    Flash chart flash following query.
    select null link, TIMESTAMP label, OPEN value1, HIGH value2, LOW value3, CLOSE value4 from "DCF"."DAILY_STOCK_QUOTE"
    where symbol=:G_SYMBOL
    order by TIMESTAMP
    When I change symbol in multiselect list flash chart doesn't get refresh.
    Any idea what is the wrong with the code?
    Edited by: user8638468 on Mar 3, 2010 12:39 PM
    Edited by: user8638468 on Mar 3, 2010 5:30 PM

    Hey there...
    The reason it's not refreshing is because you actually have to tell the flash chart that it NEEDS to refresh. Unless you have Asynchronous Update turned on, the chart will not refresh itself when the data behind the chart has changed. And even if you DO have Asynchronous Update, on, (Which you don't want to do), you'd likely see some lag between your user's change and the data in the graph changing.
    You can do this by using an APEX JavaScript function called apex_RefreshChart().
    1) Edit the chart and go to the REGION DEFINITION tab.
    2) In the REGION SOURCE, scroll down to the bottom and ad the following code
    <script type="text/javascript">
    function myRefreshChart(){
       var chartName = '#CHART_NAME#';
       chartName = chartName.substring(1);
       apex_RefreshChart(&APP_PAGE_ID., chartName, 'en-us');
    </script>3) At the end of your JavaScript function, call the new function myRefreshChart().
    That should force the chart to refresh by re-executing the underlying query and passing back in the data to the chart.
    NOTE: This function is not part of the publicly documented API's so it's likely not supported, but it does work!
    Look for a blog post with more detail sometime tomorrow.
    Hope this helps.
    Doug Gault
    http://www.sumneva.com
    http://douggault.blogspot.com

  • Can I use asynchronous update on a chart I generate from my own DB Package?

    I have created a database package that will generate a stacked bar graph in SVG with dynamically generated series based on a requirement I have been given.
    I would like to know if it is possible to take advantage of the asynchronous update mechanism available on Application Express for its own SVG charts?
    That is, as long as the package as a callable URL, can it be made to refresh as if it were a native SVG component of Application Express?

    Hello,
    Do not split your posts up across different threads askign for the same thing, it confuses the subject and makes it harder for people to help you.
    Asking a question should not be like a shotgun more like a sniper rifle, guess whos been playing first person shooters latley ;)
    Use this code in your plsql package to link in the correct javascripts.
    htp.prn('<script xlink:href="'||v('IMAGE_PREFIX')||'javascript/svg_js_includes/svg_common/oracle.svgInit.js"/>');
    htp.prn('<script xlink:href="'||v('IMAGE_PREFIX')||'javascript/svg_js_includes/svg_common/oracle.svgNodes.js"/>');
    htp.prn('<script type="text/ecmascript">');
    htp.prn('<![CDATA[');
    htp.prn('function htmldb_Load(evt){');
    htp.prn(' myTimer = setTimeout('svgSync();','5000');');
    htp.prn('}]]>');
    htp.prn('</script>');
    and add attribute to the top level &lt;svg> tag
    onload="htmldb_Load(evt)"
    that will reload yoru svg every 5 seconds
    Carl

  • Asynchronous call

    Hi Reiner,
    I have created my delegate and callback function for an Asynchronous windows application. After the BeginXXX function that has been processed,the return parameters at EndXXX is ok, I see the values of my table returned in the debugger. However because my table is a datamember from the Proxy field i dropped and configured earlier and bound to a datagrid, the values are not binding to the datagrid. In synchronous mode, it works, and in this mode it does not bind. I am not really a VS expert, is there another command I should be using to refresh the contents of my table after the async call?
    cheers

    Hi Li,
    I solved the problem already. You might be interested to look into this. In the FAQ I was asked to bind my data to the data grid with either one of two ways;
    (1) Populate the DataSource property of the DataGrid with the <proxy> and DataMember property with <TableProxyField>; or
    (2) Populate the DataSource as <Proxy>.<TableProxyField>
    I found with Asynchronous that I can't do method (1), which has been giving me that problem of the DataGrid not being refreshed after the EndXXX returns my table value. Is this a limitation per se? or was it always meant to be?
    It works fine with method (2)
    tschuss
    Message was edited by: Khoon Cheng Ho

  • Asynchronous update and View customization

    Hello!
    I faced with an issue: I have a custom view of the some list with about 9 columns with long header title. For best viewing in properties of header cells we unchecked No Wrap option. And that view became looks good. After that we enabled Asynchronous update
    option with refresh interval, and after that action my view in browser was looking like I don`t unchecked No Wrap option. But when I open that view in SP Designer for editing it looks properly, instead browser.
    When I disable Asynchronous update my view became looks properly (with word wrapping in header cell). Can you advise to something to help me solving this issue.
    Thank You in advance!

    Hi,
    See you can develop reports of fetch it from standard transactions.
    Also for your info, you can fetch it from tables. Ir you run tables like VBRK, VBRP by entering revelant data you can find the previous as well as current sales data.
    For finding returns sales data, you need to pass the necessary return document type (returns memo etc) in the above said tables.
    Hope this helps you
    Regards,
    Dhananjay

  • Flash Chart Disappear on refresh

    I am using Apex 4.0.
    When using flash charts it works fine until you use asynchronous update.
    The chart just disappear .
    When you refresh the page it is back but only until the asynchronous update.
    I have the problem with the dial and line graphs.
    It worked fine in the previuos release of apex.
    I have tested it wiit IE8 and Mozilla Firefox
    Any ideas ?

    Hi Mike,
    In response to your question:
    Will this patch also fix a problem with multiple series scatter chart showing no data when some of the series return no data?
    The patch that Dimitri has referred to only contains a fix for the APEX 4.0 asynchronous chart update issue with Flash 5 charts. This patch has also been incorporated into our 4.0.1 patch release. Can you please elaborate on the "problem with multiple series scatter chart" that you've referred to? If you could also provide a testcase on http://apex.oracle.com, I'd be happy to take a look.
    Regards,
    Hilary

Maybe you are looking for