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

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

  • 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

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

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

  • Skillbuilders Modal Refresh Item and Region separately on parent

    I have a page with two regions.
    One region has a LOV field and a button that calls a modal window to update the LOV values. On return I fire a DA based on the Modal autoclose event with a selection type of DOM Object and document object set to "document". That works.
    I have a second region and a button that calls a modal window to create a record for that region. I want the submit on that modal page to refresh the second region. This is not working. I tried to hang it off the first DA just to get it working. That did not work. That second region is a pl/sql region that calls a pl/sql procedure to build the region,  if that matters.
    harry

    Harry,
    A PL/SQL type region is not refresh-able like this through dynamic actions.
    One way to achieve something like this would be to recreate your PL/SQL region as an Application Process that is called On Demand (or even create an Ajax Callback in the page). You can then call this process via aja where it will return the results of your print statements. Then you would work with the return value to place it on the page.
    This thread shows example code that you could follow:
    Write Javascript from On Demand Process
    Greg

  • Two Reports One Region

    I have two report regions.
    I would like to place them on the page, side by side.
    Is there a way to place two report regions inside one master region
    Master
    Report 1 Report 2
    End of Master
    Any help appreciated
    Gus

    The link given above
    Align sub-regions side by side
    also refers to
    "I followed what Patrick suggested".
    Does any body have a link to this ?
    Gus
    Edited by: Gus C on 11-Apr-2012 00:34

  • Report Region show all rows?

    Hi,
    I have a report region in which I want to show all rows. Setting the pagination scheme to No Pagination doesn't
    seem to do the trick. I have set Number of Rows and Maximum Row Count both to NULL. Nothing seems to work.
    Is there some trick to get all rows to be displayed?
    Thanks in advance!

    Hi,
    I have two report regions on different pages. On both I have set 'Number of Rows' and 'Maximum Row Count' to null. One report will return all the records in a query (~800), the other report will only return 500. I can't see any other differences in the reports that would cause this behaviour.
    I didn't really want to restrict my reports to a set number of rows, is this really the only option?
    Thanks,
    Rochelle.
    Edited by: Rochelle K on Nov 5, 2009 10:13 AM

  • Report region columns constrained to 4000 chars?   Hitting LOV problems.

    Hi all,
    I've hit a problem that I'm hoping will have a simple answer.
    Quick overview of issue:
    APEX 3.01 application running against a 10gR2 DB.
    We have an LOV defined that works just fine on various forms but in report regions where the LOV is available via a drop down column value in the report region HTML table we are hitting the error:
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Some judicious debugging reveals that this seems to be because we are trying to load in more than 4000 characters into the LOV drop down in the report regions HTML table column (it's a moderately large LOV)..
    This suggests that the default column type in a report region HTML table is VARCHAR2 and thus that there is a default 4000 character limit on any such column values, would that be a fair assumption? I know that the actual report row size always used to be limited to a total of 32k but this limit is a new one to me.
    If there is such a limit, does anyone have any suggestions on how to work-around it i.e. is it possible to redefine report region column values to be other datatypes/dimensions or should we be looking at using an alternative such as a pop-up instead?
    Many thanks.

    Hi Scott,
    Okay, what we have is a fairly simple Dynamic Page with two report regions (both standard type of 'SQL Query'). The second report region is the one causing us the headache. The column headings are set to 'Custom' but apart from that everything seems as it should be.
    The following query populates an HTML table being generated in the second report region (problem line in bold):
    SELECT apex_item.hidden(7,task_id)||
    apex_item.select_list_from_lov(1, estimate_type, 'TASKSMK', NULL, 'YES', 0,'** Select Task **',NULL, NULL) as "Task Type",
    '<img src="/i/themes/aqa/required.gif" alt="Required Field" tabindex="999" />'||apex_item.text(2, description,30,4000,'required="true"') as "Work Item(s)",
    dbms_lob.substr(apex_item.select_list_from_lov_xl(3, username, 'PEOPLE', NULL, 'YES', 0, '** Select Resource **', NULL, NULL),4000) as "Resource",
    apex_item.text(4, days,5,5) as "Days",
    apex_item.text(5, start_date,11,11) as "target Start (dd-mon-yyyy)",
    apex_item.text(6, NVL(end_date,ADD_MONTHS(start_date,1)),11,11) as "Target End (DD-MON-YYYY)",
    rownum link
    FROM
    (SELECT t.task_id,
    e.estimate_type,
    t.description,
    t.username ,
    t.days,
    t.start_date,
    t.end_date
    FROM estimate e, task t
    WHERE e.project_project_id = TO_NUMBER(:F172_PROJECT_ID)
    AND e.active_yn = 'Y'
    -- and t.days > 0
    AND t.ese_id = e.id
    --AND e.creation_date = (SELECT MAX(ei.creation_date) FROM estimate ei WHERE ei.project_project_id = e.project_project_id AND ei.active_yn = 'N')
    UNION ALL
    SELECT 0 task_id,
    0 estimate_type,
    NULL description,
    '0' username,
    NULL days,
    sysdate start_date,
    ADD_MONTHS(sysdate,1) end_date
    FROM dual
    CONNECT BY LEVEL < = TO_NUMBER(:P19_ROWS_CNT))
    All appears well until the number of values being returned in the second LOV (retrieved by the apex_item.select_list_from_lov_xl) exceeds 4000 characters and then we get the error first detailed. The substr around the function isn't usually present, it was added during the debugging, if I allow one more character than the 4000 or remove the substr completely then I get the error again. If the same function is used to retrieve the LOV on a normal Dynamic Form field then all is well, it only seems to have a problem when present in the HTML table being generated.
    Are we doing something silly here?
    Thanks.
    Message was edited by:
    jac

  • ClariFit Report Instant Search [Plug-in] for 2 Report Regions

    Hi,
    can we apply ClariFit Report Instant Search [Plug-in] for two report regions at a time?,
    can we one search field for two different report regions?
    Thanks in advance.
    Chandran

    thank u so much VC guru, it really workd   now action is happening wen i click on right click options. but again i hav an issue
    i used 2 right click options like PAGE2, GOOGLE., which redirects to the respective pages. and i used JS function as
    function myMenuAction2() {
    if (Menu='page2')
      window.location="http://apex.oracle.com/pls/apex/f?p=71510:2:132217491108949:::::";
    if(Menu='google')
    window.location="http://www.google.com";
    but if i click on both the right click options individually, its get redirected to the 2nd page only... and not to the google page at all. i jus wanted to know how to do it guru... and the credentials are http://apex.oracle.com/pls/apex/f?p=71510:1:16973655787072:::::  (username-test; paswrd: apex14gm) ... pls help me out....
    thanks in advance

  • How to conditional display Report Region based on number of rows returned

    I have a page with two Report Regions.
    One Region should display if the Query returns 0-1000 rows. The other should display if the same Query returns more than 1000 rows.
    The only way I can figure out how to do this is have ANOTHER query in the conditions field for each Region to Select count(*) from etc.
    I know there is a #TOTAL_ROWS# value but that is only available after the Region is displayed. Is there some other built-in variable that can be used to put in the Conditions field or is doing duplicate SQL queries the only way?
    Any help would be appreciated.

    Rather than running your query 4 times (by embedding it in your condition), you can have a region that is not displayed, with a hidden item, and set the value of the item in a before header computation to the count of your query. Now you can conditionally display based upon the value of that item.
    -- Sharon

  • Non scrollable headers for multiple report regions on a page. Please help!!

    Hi everyone,
    I am having two report regions on my page and am trying to have the static/non scrollable headers for both the report regions. I followed on of the threads in the forum and was able get the static headers for one region, but am not able to for second region. I put my app on apex :
    http://apex.oracle.com/pls/otn/f?p=38724:1:1083512384327081:::::
    workspace:sk
    username : guestdev
    password :guestdev
    Can anyone please help me? Appreciate your help.
    regards,
    Suma.

    Hello Suma,
    The first parameter of the MakeStaticHeader() function is your table id, and it defines the "playground" of the function. If you want to apply static headers to two reports, you need to define two unique IDs, one for each report.
    Change your SKstandard… report template, and define the table ID to be "table_grab1". Duplicate this template, and change the ID to be "table_grab2". Applied the templates to your reports, and use the correlated IDs as parameters to the MakeStaticHeader() function.
    Regards,
    Arie.

  • 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

  • Displaying AJAX refreshed report regions

    Hi,
    Following on from my GetAsync help yesterday I have another question. The next part of the puzzle is I have a tree on the left hand side of the page which, when a node is clicked, causes two reports on the right hand side of the page to refresh. If I use the method described in John's Pro Apex book that works fine.
    However what I would ideally like to be able to do is use the GetAsync method again to allow the browser to remain responsive when a node in the tree is clicked. So far I can either insert the whole page into the div - it works, but isn't exactly elegant, or get an XML document from an application process - but this only displays something like "object: [XML document]" (not exact, I don't have it to hand).
    I have a feeling I've been looking at this too long, I've looked at trying to insert XML with XSL for formatting but haven't yet got that working (again a complete newbie to XML/XSL pretty much which is probably why...), other options I can think of are traverse the XML document and, with javascript, create a table in the DIV (doesn't feel right), or somehow an adaptation of John's method whereby I somehow traverse the DOM grabbing the content between the BOX_BODY tags.
    Any suggestions/ideas gratefully received!
    Many thanks,
    Gareth.

    Ben,
    Haven't tried implementing this either but how about:
    - you have 5 regions on a page, 1 for each report
    - these regions each contain nothing but a div in each case
    - each div initially contains nothing but a "Loading..." animation/images/whatever
    - You have 5 other pages, each of which are based on a blank page template
    - each page contains one report region
    - when your original page loads, you kick off 5 asynchronous ajax requests to these other 5 pages
    - when the the asynch request completes (i.e. when each page has loaded) you replace the contents of the relevant div (the "loading..." animation) with the contents of the other apex page you have just retrieved with ajax.
    I think that should work.
    Or, for more flexibility, you could make Application Processes which generate the HTML for each of your required reports. You could then call these via the Ajax requests instead of calling the 5 new Apex pages. (This would mean that the reports are far less easily changeable, however.)
    Andy

  • 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

Maybe you are looking for

  • Any way to get the 'filter comments' button to appear in quick tools

    I'm using the 'Highlight Text' tool to add comments to a document. I want to be able to quickly print the document with comments hidden. There doesn't seem to be functionality to display comments on-screen but hide them during printing. Since this is

  • Wacom Intuos4 and Photoshop CS4

    I can't get pen tilt working in Photoshop CS4. If I choose pen tilt option in brush shape for shape dynamics it works as if the control would be set to pen pressure sensitivity. Diagnostics in driver options show tilt is detected. Tilt only works for

  • Installing Lightroom 4 on a second laptop

    I purchased Lightroom 4 a few years ago and would like to install it on a second computer for my own personal use.  How can I do this?  I believe that I downloaded the program from the adobe website, so I do not have a disc.  Even if I did, I'm putti

  • Automatic DTR Client creation...Please help

    Hello All, Am working on NW2004s. While working on NWDI I notifced that a DTR client automatically gets created having name kinda similar to the tracks that are imported. Example: I have a track named APPL_dev. The automatic DTR client created is nam

  • Save selection as...

    makes a duplicate of the entire file. why ? do it. save selection as 'smallPieceFromTheBiggerFile.aiff' your selection wasn't saved, a duplicate of the entire bigger file was made. juusst save the selection...it's okay