Dynamically refresh to report regions

I have a page with multiple regions. Two of the regions are report regions that I want to refresh dynamically. I am using 4.0. I created a dynamic action that fires based on an item's value changing. It contains two actions, a 'Refresh' action for each region. Only one region will refresh. If I put an 'Alert' action between the two 'Refresh' actions, then both regions will be refreshed. I have tried to do this multiple ways, such as using the $a_report() function from within my page level javascript. Results are the same. I can get one region to refresh, but not two. Any ideas or suggestions on why I can not refresh multiple regions?

Thanks for your reply. I tried what you said and still no luck. I then created a new page with two simple regions, a select list, and a button to trigger the refresh. I wanted it be stripped of any other items or code and I used your javascript. It still only refreshes one region. I am requesting space on the Oracle site and will create my test there. Maybe there is a bug in the version we have installed. Our version is 4.0.0.00.46.

Similar Messages

  • Apex 4.2 dynamic action to refresh a report region on a different page

    Hi,
    I open up a pop up window from a report region. When the user is done in the pop-up window and closes it, can I trigger a refresh on the report region using dynamic actions without actually reloading the whole page? I know I can use dynamic action on a page to refresh the report region on the same page.
    Thanks,
    Sinan

    Sinan,
    So long as the region to be refreshed is still loaded, you can do this. I don't know how you are loading your pop-up or unloading it but, the principle should be the same as what I provide below.
    Assume that you have set the static ID for your report to MY_REPORT. (Be sure you have checked "Allow Partial Page Refresh" in the Report Attributes).
    $('#confirmBox').find('div#userConfirmationMessage').html( '<span class="userInputRequest">Would you to Refresh your Report?</span>' );
    $('#confirmBox').dialog(
        autoOpen: true,
        modal: true,
        title: 'Refresh Conformation',
        buttons:
            'No': function ()
                $(this).dialog('close');
            'Yes': function ()
                $(this).dialog('close');
                 $('#MY_REPORT').trigger('apexrefresh');
    -Joe

  • Refresh two report regions separately

    hi all,
    I have two report regions on a page. I can add a Button to sumbit the page upon clicking, which will refresh the two reports. Is there a way to refresh each report region on demand separately?
    Denis

    then its simple, create two dynamic actions for each button
    go for advance option on "click" event
    Selection type: button
    select the respective button (template of this button should have "#BUTTON_ID# substitution string")
    and in the action select "refresh" then in affected element select the respective region.
    Regards
    Ani

  • DA refresh 2 report regions

    Hello All,
    I have a DA that refreshes 2 report regions ( SQL query) . This works perfectly fine in 4.0.1.
    However when I import it to 4.0.2 , just one region refreshed while the other fails.
    Appreciate any guidance in figuring out the issue here
    Details of DA :
    Event : change
    Selection type : Item
    Item : hidden item whose value is used in where clause
    True Actions :
    1) Execute PLSQL to submit the hidden item
    2) Refresh report1
    3) Refresh report2
    APEX version : 4.0.2.00.07
    Thanks,
    RD
    Edited by: RD on Jan 16, 2012 4:45 PM

    Hi RD,
    you could use Firebug for Firefox (on the Console you will see the AJAX calls) or the Developer Toolbar of Google Chrome to check if all 3 AJAX calls are executed and what you get in the response. I think that should help you to track down why it's working on one machine but not on the other. Please also have a look at the actual response in the AJAX calls if it's useful data.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Dynamic generated SQLfor report regions

    is it possible to do the following to generate the sql statement of a report region dynamically?
    for example i have on page 1 some checkboxes ( to show or not to show columns of the report)
    checkbox1: show col1
    checkbox2: show col2
    checkbox2: show col2
    based on the selection of these checkboxes i would like to dynamically generate the sql content of a report region on page2
    Select col1, col3,
    from my_table

    Andy, thank you very much! this looks perfect to me.
    just one more question:
    Is it ( or will it be) possible to change the sql source of a report region itself dynamically
    my "dream" would be an object related approach like :
    reportregion_name.sql_source = v_sql;
    where v_sql is generated dynamically by a procedure or process.
    i had a look at ps/sql dynamic regions, but i have the feeling that i would loose all advantages of APEX ( like page rendering,...)

  • Refreshing sql report region based on values from another region - 4.0

    Greetings All,
    I have a page with two regions, say region 1 and region 2. I have a before header process that fetches values from db based on criteria entered from another page. Region 2 is a sql report region with bind variables from region 1. When this page is rendered region 1 renders properly however sql report region always returns no records. What am i missing here?
    I would like to have the region 2 render a report based on the values from region 1. Region 2 has a sql query that looks something like
    select
    colum 1,
    column 2,
    column 3
    from table t1
    where t1.c1 = :p10_item1
    and t1.c2 = :p10_item2Using apex 4.0
    thanks
    Seetharaman

    If these items hidden, try making them display only .
    Also what happens when you move the items from region 1 to region 2.
    From my experience items do not have much of a dependency on the region they are attached to other than cases when the region is not rendered(when its condition fails) and then the item values become null(bcoz they themselves are not rendered).

  • Dynamic query in reports region(multiple condition)

    Hi I have this sql query in the report region. And everytime I will run the report and choose to put a value on :P3_REQUESTID and the rest of the variables to null.It doesnt display the report.The same goes to other variables except for :P3_OOTSELECT.
    If I choose to put a value on :P3_OOTSELECT and the rest to null, thats the only time that report will be displayed.
    What am I missing here?
    SELECT req_id,
    order_no,
    cust_nm,
    cust_req_type,
    entered_by,
    alt_ref,
    decode(cnt_rfs,null,null,'Yes')RFS,
    rec_id
    FROM oot_curr_stats
    WHERE (trunc(create_dt,'MONTH') like :P3_OOTSELECT OR
    trunc(create_dt) between to_date(:P3_FROMDT,'dd/mm/yyyy') AND to_date(:P3_DATETO,'dd/mm/yyyy'))
    AND req_id like '%'||:P3_REQUESTID||'%'
    AND sla_tag like :P3_SLATAG
    Thanks,
    acinorev

    Veronica (?),
    It doesnt display the report.
    What do you mean by that? The report query doesn't execute? Or it does execute and shows "no data found" or something?
    If you "choose to put a value on :P3_REQUESTID and the rest of the variables to null" then this part of the predicate won't match any rows (I'll replace the null bind variables with null):
    (trunc(create_dt,'MONTH') like null OR
    trunc(create_dt) between to_date(null,'dd/mm/yyyy') AND to_date(null,'dd/mm/yyyy'))
    Then you AND that with other terms but by then it's too late.
    Perhaps I misunderstood.
    Scott

  • How to create a inline message for report region...

    Hi,
    Can any one pls tell me the document link for to create a inline error message for report region?
    im trying to do a dynamic validation for report region.i've manually created a report region with apex item.
    im searching it for long time, im cant able to find any demos or example.
    Pls help.....
    Thanks in advance...

    Any help???

  • Dynamic action with interactive report region refresh

    Hi!
    I'm using APEX 4.02
    I've got a page with 2 regions.
    Region1 is a (input) form
    Region2 is an interactive report on the same table as region 1
    When entering values on the form I'm trying to dynmically lookup similar records in the table with the interactive report.
    I've made a dynamic action on the change of the form fields which should refresh the interactive report region. I can see this one fires if I add a alert to debug if it fires.
    The dynamic report is based on a query with bind variables pointing to the form fields, for example
    where
    field1 = :P2_FIELD1
    This works great on the page load, so no dynamic action is fired but I can see the rows in the report region are the ones I am looking for.
    But the refresh of the report region is not working, it is never refreshing and/or showing the correct data after a change of the form fields, so it looks like the dynamic action "refresh region" is not working on the interactive report.
    Any ideas why this can go wrong ?
    I would like to solve this using standard dynamic actions and preferrably not via PL/SQL or JS, shoudl be possible if I should believe the documentation... ;)
    Cheers
    Bas
    Edited by: bklerk on 26-apr-2011 3:07

    Hi,
    When you change value to item, I assume you do not set value to session state.
    Use interactive report advanced attributes "Page Items to Submit" , set items session state before report is refreshed.
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/app_comp.htm#sthref1235
    Similar post/issue here
    Hide and show region - hides on refresh
    Regards,
    Jari

  • Partially refresh the sql report region by clicking the region selector tab

    Hi,
    In my page i have a region display selector tab. This region selector tab contain show all,booking,service,.. etc. when i click the booking tab,sql report region will appear. My intention is when i click the booking tab i want to refresh that region partially to display the record according to sql query in that region source of report region.
    how to do this?
    skud.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • Refresh PL/SQL Report Region (not Page) using Select List value

    Hi,
    I've got a report region based on a 'PL/SQL function body returning a SQL query'which gets generated on selecting a value from a Select list item, The Select List action is 'Redirect and Set value' but this causes the whole page to refresh rather than just the report region. I've tried to refresh the report only using a dynamic action on the Select List item (Action now reset to  'None') but now the report is not appearing on choosing from the List. Can anyone suggest a solution that will allow me to refresh this report without refreshing the page? I am using APEX 4.2.2 and the report syntax is as follows:
    DECLARE
      v_statement VARCHAR2(500);
    BEGIN
      SELECT query_text
        INTO v_statement
       FROM sql_queries
       WHERE query_id = :P2_QUERY ;
       RETURN v_statement ;
    END ;
    where P2_QUERY is Select List Item,
    regards,
    Kevin.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • SQL Report Region Refresh

    Application Express 4.0.2.00.09
    Oracle 11 XE
    How do I setup a Dynamic Action to refresh my region every X number of seconds? I can refresh the region easy enough on events, but I can't seem to figure out the timing thing. Maybe I just need some sleep...
    Austin

    Joe -
    Interestingly enough, I have not yet found a good way to alter the Report Region title with the last update time. I would think there is a way to do it, but I do not currenlty have that knowledge, nor the time to thoroughly investigate how to do it. I do have a bit to share about the mechanics of the refresh discussed earlier in this thread.
    Consider this code, place in the footer of a SQL Report Region:
    <script type="text/javascript">
    <!--
      var d = new Date();
      document.write("Last Updated: " + d);
      setInterval("jQuery('#INTRADAY_IRR').trigger('apexrefresh');", 2000);
    -->This will place the date as a footer to the SQL report. The javascript will then refresh the report every two seconds. (or whatever timeframe you specify) Now, in my SQL for my report, I added an additional column that is the current time. My SQL would look something like:
    SELECT foo,
            bar,
            to_char(sysdate, 'HH24:MI:SS') update_time
    FROM dualThis SQL will show when the data was last fetched from the database, while the footer of the region shows the time when the region was loaded by the browser.
    If you run the page with these, or similar, parameters, you will notice that the update_time column in the report changes with each refresh, however, the region footer does not change. This is because the script isn't called everytime the data is refreshed. This would indicate that using the methodology mentioned previously in this thread, the entire region is not refreshed but simply the dataset and the report itself. This would mean that you would have a quite difficult time updating the region title from the SQL code alone... I'm not saying it is impossible, I just don't know how to do it...
    Having said that- I do have a work around.
    Consider this as the region title:
    <div id="MyUpdatedReport" ></div>Now consider this code in the region header:
    <script type="text/javascript">
    function getUpdatedDate() {
      var d = new Date();
      document.getElementById('MyUpdatedReport').innerHTML="Region Title - Last Updated: " + d;
      t=setTimeout('getUpdatedDate()',2000);
    </script>And this in the region footer:
    <script type="text/javascript">
    <!--
      setInterval("jQuery('#INTRADAY_IRR').trigger('apexrefresh');", 2000);
      getUpdatedDate();
    -->
    </script>We create a DIV tag as our header. Then we have a function in the header that updates our div tag every two seconds. In the footer, we tell APEX to refresh the data every two seconds, and we tell our function to begin working. Effectively, you have a timestamp indicating when, theoretically, the data should have been refreshed. Now, this timestamp in the Region Title is NOT the true update time, but, theoretically it should be close. You should probably test this to see if you want to use it. Personally, I don't like this solution and I don't think I would ever implement it in any sort of production application. However, in an application that is just for me, I might hack something like this up.
    The key part of this work around would be to keep your times synchronized. It would be of no benefit if APEX was refreshing the data every 60 seconds but the title was refreshing every 6 seconds. Yikes, that could confuse a few people.
    I hope this has been a help.
    Austin

  • Dynamically refresh a list box in a web report

    Dear All,
    I am having a serious issue with one of my web reports. I am using Oracle 9i PL/SQL Cartridges for developing my web reports. The problem is :
    I have a drop down box for department and also a list box for locations.
    I want to dynamically refresh the locations list box whenever the user selects a department.
    I know I have to refresh the page somehow to get the list box requery from the database.
    Can anyone please send me a sample code or suggest how to do it. I am new to PL/SQL cartridges.
    Thank You

    hello,
    althought his is not a PL/SQL cartridge forum i'll give it a shot.
    the basic behind the solution would be that your procedure need input values that would be used to create this cascading effect. so you would have e.g. input values for region and country for a form that should provide selection fro region country and city.
    when the procedure is called for the first time without any parameters, it would generate a drop down list for the first (region) parameter. when the user selects a value javascript would kick in that would submit the form that basically calls itself, but this time passing the value for the region parameter.
    now the procedure would create two drop down lists (region and country) because it had a value passed for region. both drop down lists would have a javaScript event that would submit the form. the only difference would be that the region list would need to clear the value of the country value before submitting so changing the region would produce a new country list.
    i hope that was clear enough. as for the code example. that is simple javaScript and you can find tons of examples on the Web. just look for "JavaScript" and "OnChange".
    regards,
    philipp

  • Error when refreshing report region: ORA-20876: Stop APEX Engine

    I'm using Apex 4.2. On click of a button, I refresh 2 Standard Region Reports with a Dynamic Action. This dynamic action has been working without problems for WEEKS and all of a sudden i'm getting the ORA-20876: Stop APEX Engine error when I click the button.
    In the dynamic action, I removed the refresh of the second report and now the error does not occur. If I add the second refresh action back in, it throws the above error. I've even tried making the second report identical to the first and the refresh action fails. I don't understand why this is failing on the second refresh action since the second report & region is IDENTICAL to the first report now.
    Please help!
    Thanks,
    John

    I would use something like firebug to see how the AJAX call for the refresh is working. I would want to see what is begin posted and what's being returned from the call.
    That should shed some light on the issue.
    THanks
    -Jorge

  • Dynamic Refresh Region with APEX 4.0

    Greetings!
    With APEX 4.2, when you want to refresh a region that depends on an page-item-value, there are different ways to submit that item with the dynamic action ("Page Item zu Submit"). But this is not imcorperated in APEX 4.0 yet. Is there a way to work around that? I have tought about an apex.submit({...}) call, but I am not sure, where to insert it, also that would be a.. well... submit, not ajex.
    Thanks for any help,
    so long,
    tobi

    Thanks for the hint, but its still not working. I have another item, that gets the value of the item passed to on key-up event. This works. But no refresh of the region.
    My setup looks like that now:
    Event: Key Release
    Selection Type: Item
    Item: ... an auto complete text field
    Condition: is not null
    True Actions:
    1) Action: Execute PL/SQL Code
    &emsp;Fire on Page Load, Stop exec on error
    &emsp;PL/SQP Code: null;
    &emsp;Page Items to Submit: ... that same autocomplete field
    2) Action: Refresh
    &emsp;Fires on Page Load
    &emsp;Selection Type: Region
    &emsp;Region: ... the report region with the where clause comparing the text field.
    The identical action I created for the Get Focus Event, because that happens, when the user clicks on the dropdown list to select an item, then the text field gets focused again. Thats when I want the report to update.
    Only when I hit the enter key (what I actually dont want to happen, and thats another issue) the page gets submitted. Then the report is displayed with the new selection. But I dont want the user to wait for the page reload process.

Maybe you are looking for

  • BI Publisher report in OBIEE Dashboard

    Hi, I have a BI Publisher report that consists of: -SQL Based Report -Has 2 date parameters This report is independent of any data source OBIEE, ie there is no repository for the data shown in the BI Publisher report. I need to show this report in OB

  • Footnotes and full justification?

    I'm adding endnotes (footnotes) to the manuscript I'm typing, but every time I insert one, the line goes from being fully justified to unjustified on the right hand side. The author wants full justification and I can't find anything in either books o

  • Sales Order is getting created without quantity field getting populated?

    Hi All, I am creating sales order with the help of IDocs. Here I am using the standard function module IDOC_INPUT_ORDERS. But, when I execute this function module idocs are getting generated successfully but the quantity field is not getting updated.

  • Presets for responsive layout

    Hi there, I was doing a tutorial and when arrives the moment to use the presets for responsive layout, the guy on the tutorial has 6 presets and I only have one... Does anyone know how can I get those presets? Thanks!

  • Adobe flash player update mac book pro

    why can Adobe flash player update no more on my mac book pro?