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

Similar Messages

  • 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

  • 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

  • APEX 3.2 -  Dynamic Actions

    Hi,
    I know that we can apply dynamic actions in apex 4... can we do something similar in 3.2... if not, what's the alternative...?
    Thanks

    Hi,
    Dynamic actions are introduced on Apex 4 and there is not anything similar on Apex 3.2.
    But you can write your own JavaScripts. See e.g. this
    Apex 3.2 hook javascripts to IR and execute those when report is refreshed
    Regards,
    Jari

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

  • Dynamic Action based on Interactive Report Select List Value

    I'd like to perform a Dynamic Action when a user selects one of 3 options from a Select List within an Interactive Report:
    select APEX_ITEM.SELECT_LIST(
    p_idx => 3,
    --p_value         =>   deptno,
    p_list_values => 'Copy;Copy,Delete;Delete,Export to PDF;Export to PDF',
    --p_attributes    =>   'style="color:red;"',
    p_show_null => 'YES',
    p_null_value => NULL,
    p_null_text => '--Select--',
    --p_item_id       =>   'f03_#ROWNUM#',
    p_item_id => 'P6_IR_SELECT_LIST',
    p_item_label => 'Label for f03_#ROWNUM#',
    p_show_extra => 'YES') "Actions"
    from dual;
    When building the Dynamic Action, I chose the following values from the Advanced wizard
    Event: Select
    Selection Type: DOM Object
    DOM Object: P6_IR_SELECT_LIST
    Condition: Equal to
    Value: "Delete"
    True Action: Execute Javascript Code: Alert('Here');
    Doesn't seem to be firing...can anyone help?
    Thanks in advance,
    John

    Hi,
    I am not sure if the "equal to" condition applies to a DOM object... after all, a DOM object can be anything (any HTML element) not only a field.
    Try using a javascript expression instead, like this:
    $v('P6_IR_SELECT_LIST')=='Delete'UPDATE: Sorry, I just tested and "equal to" condition works for DOM objects... should have tested before posting!
    Luis
    Edited by: Luis Cabral on Feb 29, 2012 4:45 PM

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

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

  • Refresh report title with dynamic action

    Hi all,
    I have a report that is refreshed with an dynamic action. When the refresh is performed, first the value of two hidden variables are set (P2_ID and P2_NAME) and are submitted (using a dynamic action type 'pl/sql', with code 'null;' and page items to submit: P2_ID,P2_NAME).
    In the query of the report, i use :P2_ID in the where-clause. That's all working like a charm! The one thing that doen't work, is the title of the region: that's defined as 'Properties of &P2_NAME.', but the title isn't refreshed when the report gets refreshed.
    Is there a solution for this? I hope I'm clear enough.

    See Re: Dynamic action - Refresh
    So you are right; the native Refresh action just refreshes the report content, it does not perform &ITEM. substitutions everywhere in the region.
    What you could do is use a named SPAN as the title like <span id="my_title">&P2_NAME.</span> and add a TRUE action to your Dynamic Action to set the title using Execute Javascript code $s('my_title',$v('P2_NAME'));Hope this helps.

  • 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

  • "Dialog region" plugin - triggering OK dynamic action

    Hi all,
    I'm attempting to utilise the "Dialog region" plug-in found here
    http://www.apex-plugin.com/oracle-apex-plugins/region-plugin/dialog-region_30.html
    It's appearing ok, but I initially had trouble associating a dynamic action with the "OK [Dialog Region]" event.
    Someone asked the question back in 2011, but didn't provide details on how they implemented the dynamic action.
    jQuery ids in Apex dialog region plug-in
    I initially issues is because the DA definition still asks for a "Selection type". After trying a few variations, I modified the plug-in to associate an ID with the OK button, and attempted to use "#btn-ok" for a jQuery selector, but this still didn't fire the DA.
    At the time my button rendered as
    <button type="button" id="btn-ok" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Ok</span></button>I ended up succeeding using "DOM Object" of "document" (I thought I had already tried this...), the same way I implemented "Manual Close" for the Skillbuilders modal, but I was wondering if there was a different/more elegant solution?
    Scott

    Refreshing a region through javascript can be done like this:
    $("#region_or_item_id").trigger('apexrefresh');So ideally you would specify 1 attributes for your dynamic action for entering region ids. You'd then need a little parsing for the provided string.
    For example, i'd expect a comma-separated list.
    -- change the region list into a list of jquery selectors
    l_regions := REPLACE(p_dynamic_action.attribute_01, ',', ',#');
    -- jquery will fire the refresh for each selector
    l_result.javascript_function := 'function(){$("'||l_regions||'").trigger("apexrefresh");};';However, refreshing items... Items mostly get their value from the automated row fetch process, and have no individual refresh. You'd need to actually query the table again for the newest value and put this in the item value (keeping in mind that protected items would also need altered checksums). To do this dynamically, you'd also need an ajax callback. Here you'd need to run provided sql which retrieves a value, and put this in the provided item. If that is a route you want to explore, then you can use apex_plugin.util.get_data and its friends to assist you with that!

  • Dynamic Action on change automatically submit

    Hi,
    I have a tabular form (manually handled) with a text item that can be changed (Apex 4.0.2.00.07).
    Each time the user changes the value of the text item, the changes automatically will be submitted.
    Therefore I defined a dynamic action:
    event:onchange
    selection type: region
    with javascriptcode: apex.submit({request:'SAVE'});
    When I leave changed text item with tab-key everything works fine.
    But when I leave changed text item through a button Click only the submit of dynamic action is performed and the button functionality is ignored.
    The button click initiates the onchange event at the changed text item and then ignores everything after this event.
    The enduser will not be able to understand the behavior of the application.
    I have less experience in Java and JavaScript.
    Is it possible to get the information if and which button was clicked, so I can decide at javascriptcode of the dynamic action what is to do?
    Thanks,
    Brigitte

    Region static id shouldn be in bracketsYou missed the '#' informt of the region id.
    why my original PL/SQL process did not work
    FOR i IN 1 .. apex_application.g_f08.COUNTThis works only when the application array has values and that happens only when the page is submitted.When you submit the dynamic action , it isn't.
    This script combined with script to detect changes makes apex page running very slowIf you use that PLSQL code(assuming it works as expected) , then its going to take a server request every-time you change a field in the tabular form and loop though all the array values(if they would be submitted before) and recalculate and compare the checksums . Isn't that going to be very inefficient.
    As for that JS code, it only runs at the client side. You can do all the server side checks on submit, when the user expects some delay due to processing.

  • Dynamic Actions: Advanced Techniques

    I created a page that calls APEX_PLSQL_JOB.SUBMIT_PROCESS to run a stored procedure. APEX_PLSQL_JOB.SUBMIT_PROCESS returns the job number which I store in a hidden page item named P38_JOB_ID. I created a dynamic action on the page named DISPLAY_JOB_STATUS which shows a report region named Current_Job if P38_JOB_ID is not null and hides it if is null. The driving sql behind the Current_Job region is:
    select job
    , owner
    , enduser
    , created
    , status
    , system_status
    from apex_plsql_jobs
    where job = :P38_JOB_ID
    The report displays correctly when I submit the job but unless I press F5 to refresh the page the system_status column will always remain SUBMITTED. It does not change to IN PROGRESS or COMPLETE automatically. How do I create a dynamic action to make the report refresh when the system status or any column in the report changes?

    Hello Ned,
    >
    How do I create a dynamic action to make the report refresh when the system status or any column in the report changes?
    >
    The following forum post will help you solve the refresh problem:
    {thread:id=2201221}
    The above solution of periodically refreshing report is the current reliable solution to reflect the change of data in the backend.
    Hope it helps!
    Regards,
    Kiran

  • V4.0 Dynamic Action - Problem with implementing disabling/enabling button

    I'm having trouble implementing the following APEX V4.0 dynamic action:
    The enabling/disabling of a button when a text field is not-null/null.
    I'm following the example in Oracle's Advanced APEX course notes Pgs 5-13 to 5-16. I can get it working with no problems using two text fields. The example states that the "Select Type" for the button is a DOM object and you then have to enter it's name in "DOM Object" attribute. The example uses a "CREATE" button in a region position. Is "CREATE" just the Name attribute of the object? Is that what we are suppose to enter here? Also my FIND button is a "button among the region items" and not a "button in a region position" as in the example. The name of the button is P1_PAT_TBRN_SEARCH but when I use it as the Dom Object, nothing happens. Also I am using the "Key release" event for the text field that must be not-null.
    I notice that Demitri Gielis on his blog couldn't get it working either (see last paragraph)
    http://dgielis.blogspot.com/2010/01/apex-40-dynamic-actions-part-1.html
    Any suggestions?
    thanks in advance
    Paul P
    Edited by: PaulP on Jun 2, 2011 12:01 PM

    Hi Paul
    Two separate situtations here:
    - html buttons
    - template based buttons, typically comprising multiple html elements
    HTML Buttons
    These should be easy to enable/disable using dynamic actions, specifying an appropriate DOM selector.
    Typically you would use the ID attribute of the button, so that's straight forward except for one catch..
    APEX supports a #BUTTON_ID# template substitution tag , but performs substitutions only for buttons in Region positions and not for button items.
    Use button attributes instead to assign a specific ID.
    Template Buttons
    Since these are made up of multiple elements, you need to treat them as a single object to be able to interact with them easily.
    APEX provides the apex.widget.initPageItem method to integrate plugins with the dynamic actions framework:
    apex.widget.initPageItem("P1_MY_ITEM", {
    enable: function(){},
    disable: function(){},
    getValue: function(){},
    setValue: function(){},
    nullValue: "%null%"
    });This provides you with a mechanism to over-ride one or all of these built-in methods with your own JS, to use custom code to enable/disable your template buttons.
    For an example on how this works, look in the uncompressed apex_widget_4_0.js file, search for the shuttle widget.
    You could just add code to initialize your template buttons manually, or better still create a plugin button to add the code automatically.
    This is reasonably advanced work to do, but you really have to take your hat of to the APEX team for providing the mechanism to do it.
    Regards
    Mark
    demo: http://apex.oracle.com/pls/otn/f?p=200801 |
    blog: http://oracleinsights.blogspot.com |
    book: Oracle Application Express 4.0 with Ext JS

  • HR - Dynamic action is data saved in table ? is pernr locked ?

    hi,
         I am using a dynamic action to calculate may values,
    to calculate those values i am in need of all the values present on the screen of custom infotype, but due to some problem , i will have only pernr with me . dynamic action will trigger a report program which inturn will trigger one more report program in the second report program , if i use select queries , will i get those values which was stored in the infotype while my dynamic action triggerred ?
    ot those are still to be saved in database table ?
    is the pernr is locked by the infotype while i am in my second report program ?

    the pernr will be locked but will not prevent you from READING other infotype records in your report.. You can use HR_READ_INFOTYPE function module to access the other infotype records..
    ~Suresh

Maybe you are looking for

  • Installing jdk1.13 on windows xp home edition

    hi all, i'm having difficulty getting jdk 1.13 run on windows xp home edition. i looked at the sun installation documentation and i think it may be an issue of setting the correct class path, unfortunately the advice for setting the class path for xp

  • Last question on ALE and VA01 : how link ALE and VA01 ?

    My aim is to send via ALE sales orders when created with transaction VA01 or when modified with transaction VA02. I have done a lot of customizing and create module function and so and so. Now what I don't know is how it's working! When I create a sa

  • SC Status "follow on document created' but no PO has been generated.

    Hi All, We are in SRM 7 EhP2 extended classic scenario.. In the recent past we have noticed some Shopping carts which are approved fully. Workflow status is Finished. SC status is Approved in portal.But there is no PO created. In BBP_PD, we can see t

  • Upgrade BOCD XI R2 to BO Edge 3.1

    Hello, Is it possible to upgrade the BOCD XI R2 (which was renamed to Edge in subsequent product releases) to BO Edge 3.1. The Edge 3.1 documentation only talks about upgrade from BO Edge 3.0, however does not explicitly list which upgrade paths are

  • RAC, Interconnect and CloudControl (a nice to have problem :-) )

    Hi, someone has changed the networkmask for one interconnect interface (eth3). eth3 is up an running, the interconnect ip-address move to the second interconnect interface here eth1. Everything is working fine, and after network is changed back the e