Dynamic Interactive Reports

Hi all,
Is it possible to alter the sql query of an interactive report, in a dynamic way? I want load a given query, in execution time, to an interactive report.
How can i access the internal ApEx database tables? Could i write into the table responsible for storing Interactive Report information?? I only know the existence of views like APEX_APPLICATION_ ....
Regards Pedro.

Hi Pedro,
Currently Apex doesn't support dynamic queries in interactive report however you can achieve it using apex collections. Create a before header pl-sql process to create a collection using dynamic sql query and then build the interactive report by selecting data from above collection.
Hope it helps.
Thanks,
Manish

Similar Messages

  • 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

  • Dynamically Colour Cells in an Interactive Report

    My application requires an interactive report where cells are colour coded and the cell may, or may not have a value, but the value doesn't relate to the colour.
    The report is based on a view which returns a result set as follows:
    rn col1_value col1_colour col2_value col2_colour col3_value col3_colour col4_value col4_colour
    1        null        grey          3        null       null        null        null        red
    2        null        null          3        grey       null        null           4        red
    3        null        grey       null        null          3        null        null        redIn the results, each cell to be displayed has two columns per row, one with the colour and one with the value to display where null is the default colour (white)/no value.
    In Apex 4.1 I can set the colour based on the values using the dynamic actions on the report display, but I can't work out how to set the colour of col1_value based on the results of col1_colour. I am hoping there is a way to set the colour of the cell col1_value and hide col1_colour from the report.
    If you know of any posts providing an example of how this may work, or if you are able to explain it to me I would really appreciate your time.
    I appreciate it may not be simple to see what I am aiming for given the text restriction and no images/tables available on the forum, hopefully you get the idea, but if not, ask and I will try and explain further.
    I have seen Blog posts about 3-4 years old on how you do this in Apex 3.0 or older, but can't work out how to get this to work in Apex 4.0 or Apex 4.1.

    I have solved this using Javascript in a Dynamic Action, javascript something like:
    $("td[headers='COL1_COLOUR']").each(function(){
       switch($(this).text())
          case "grey":
               $(this).parent().children("td[headers='COL1_VALUE']").css({"background-color":"#999"});
               break;
          case "green":
               $(this).parent().children("td[headers='COL1_VALUE']").css({"background-color":"green"});
               break;
          case "blue":
               $(this).parent().children("td[headers='COL1_VALUE']").css({"background-color":"blue"});
               break;
          case "orange":
               $(this).parent().children("td[headers='COL1_VALUE']").css({"background-color":"orange"});
               break;
          case "yellow":
               $(this).parent().children("td[headers='COL1_VALUE']").css({"background-color":"yellow"});
               break;
          default:
               break;
        $(this).css({"visibility":"hidden"});
        $("th[id='COL1_COLOUR']").css({"visibility":"hidden"});
    });

  • Dynamically set maximum row count in Interactive Report

    Hi,
    Has anyone worked out a way of dynamically setting (e.g. via select list) the maximum row count value for an Interactive Report, taking into account issues with order by when the report is filtered. I'm aware of solutions like this: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html but as far as I can tell this doesn't work when the report is filtered and the IR is rewritten in the background. Data sets then become unreliable because they are reordered.
    Thanks,
    Mike

    Hi Mike,
    You can do that with javascript
    gReport.search('SEARCH',100)the 100 you can replace for any number you like.I have a report with filter,sorting and groups and it is gives no problem there.
    any number means any number but not higher than the number you set at Maximum Rows Per Page.
    You probably can mix the solution from Martin and the above code.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.
    Edited by: kvlek on 24-apr-2013 12:29
    Edited by: kvlek on 24-apr-2013 12:35

  • 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

  • Dynamic Headings on Interactive Report

    Hi,
    I have an interactive report that I would like to use dynamic headings. I have looked at some of the posts here and have followed what I think is the correct way to do this, but I am still not seeing the headings I am expecting.
    I created items to hold the headings and have created a process to populate these items, that all seems to work fine, I can view the session state and see the headings.
    I added the items to the report on the Report Attributes page under "Heading". I used the substitution for the items as &P2_HEADING1.
    When I look at the report all I see for the substituted heading is &P2_HEADING1. and not the value I would expect.
    It seems I am missing a step? Any ideas?
    Thanks,
    Peter

    Hi,
    The process point should be ok.
    The only other things I can think of are either there is an error in the code (the "Session" link on the developer's toobar will show if the value is being set) or there is a space after the page item name (difficult to see on screen but can cause problems) which makes the item name different to what you expect.
    Andy

  • Interactive Report - Icon View - Dynamic Columns per Rows ?

    Hi all,
    We use the icon view functionnality in Interactive Report.
    Is there a way to display the 'columns per row' attribute as an application item and set it dynamical via PL/SQL ?
    Any suggestions?
    Thanks in advance for advices,
    Regards,
    Grégory

    Hi,
    Apex 4.0 interactive reports and images (Scott's thread)
    Have some useful information and pointers to the solution you are looking for.
    I hope this help.
    Thank you,
    Ranish

  • Dynamic Heading in Interactive Report

    In standard reports it is possible to create dynamic headings using PL/SQL.
    Does anyone know of a way of doing this for Interactive Reports?
    I have a report that needs to change date headings dependant on the selected start date.
    Thanks,
    Jon

    Item names (or built-in names like APP_ID) appearing in HTML and which begin with ampersand and end with a period are substituted with their session state values only when the names are upper case. The reason for this is to increase parsing efficiency with respect to differentiation between Application Express references and standard HTML references such as:
    &_nbsp;
    &_amp;
    &_lt;
    &_gt;
    ...etc., (ignore underscore in each of the above).
    This ought to be documented better.
    Scott

  • Interactive report based on dynamic query

    Hello
    I am using Apex 4.1 and have a requirement to create an interactive report based on a dynamic query. This option is available in Classic report but in Interactive this feature is not there. Tried using collections or just a view (thought of changing the view definition during "On load", but structure of the report is already defined based on the definition of the view at design time).
    Is there any way of achieving this?
    Appreciate any help!
    Thanks
    aks

    Try looking at this: http://rakeshjsr.blogspot.com/2010/10/oracle-apex-interactive-report-based-on.html
    Thank you,
    Tony Miller
    Dallas, TX

  • Need Help calling Dynamic Action from Link in Interactive Report

    Hello I have an Interactive Report. I would like to have a Dynamic Action called when the user selects a row (Clicks a Link).
    I am running Application Express 4.0.2.00.07 on Oracle 11gR1.
    Any help would be great.

    Hi VANJ,
    Sorry for the poorly written original post. I will be much more specific.
    I have a Interactive Report on page 40. That report has a column named X_UID that is a link back to page 40 and sets a text item named P40_X_UID in a Region we will call "Form X" with the value of the column. That page refresh also then calls a Automated Row Fetch process to fetch all the values needed for the rest of the page items in the "Form X" region. Also "Form X" region has a conditional display on to only display when P40_X_UID is not null.
    What I would like to do:
    When the user clicks on link in the IR for X_UID instead of the "Form X" region becoming visible I would like to become modal. I am trying to use a Plug-In named "ClariFit Simple Modal - Show". I have it working with a Dynamic Action when you click a Page Item. But I would like to to work when the link is clicked and the data populated.
    I hope that helps some.

  • Dynamic Title for Interactive Report?

    I have an interactive report where I am passing in interative report filters. This is great becase it allows me to reuse a single interactive report in different ways. However, one drawback I am running into is the report title. I'd really like to be able to change the report title based on the filters that I pass in. Is this possible? Can the report title be dynamic?
    Thanks,
    Andrew Watson

    It,s possible.
    I'm using item references to alter the report title.
    Set the item value to the title that you want for your report and the region name as the example.
    Example: Report &P1_ITEM. &P1_ITEM1. &P1_ITEM2. and so far.

  • Apply OR clause in dynamic filter on an interactive report

    Apex ver - 4.2
    I have a requirement wherein I have to apply filter on interactive report. I have to apply filter which will change depending upon different conditions. So I created a PLSQL process on "On Load Before Region"
    For e.g if condition is --- status = 'Open' and Approved = 'Yes'
    I can write a PLSQL process with code as:
    apex_util.ir_filter(p_page_id => 1, p_report_column=>'Status' p_operator_abbr=>'EQ', p_filter_value=>'Open');
    apex_util.ir_filter(p_page_id => 1, p_report_column=>'Approved' p_operator_abbr=>'EQ', p_filter_value=>'Yes');
    But these filters have AND logical operator
    What can I code if I want OR condition i.e.
    status = 'Open' OR Approved = 'Yes'

    Check out these blog postings from the APEX Dev Team:
    http://anthonyrayner.blogspot.com/2008/07/dynamic-date-filtering-in-interactive.html
    http://dpeake.blogspot.com/2008/03/advanced-interactive-reports.html

  • Dynamic Filter on Interactive Reports

    Great job guys on the new Interactive Reports feature of 3.1
    I can't express how much time this will save us in our development effort and how much real estate on the screen is saved by not having to create our own report filters.
    My question is this:
    Say you have defined a default filter that returns all rows that were created between 01-JAN-1999 and 31-DEC-2999 (all rows in our application)
    Is it possible the make the 2 dates dynamic in the filter i.e. I would like to default these to the start and end date of the current month?
    Thanks for any help or suggestions
    Duncs

    I think I may have found the answer using the "In the Last" operator
    Will post my solution once implemented
    Duncs

  • Expanding column header interactive Reports dynamically

    In my interactive Reports one of my columns specifically my db_CUSTOMER_NAME column can be from 3 to 50 characters. (or even longer...)
    Was wondering how i can dynamically expand that td column "Dynamically" because i dont want to put a fix length just because there maybe 2 records that goes over +50 characters.
    Right now i set my column width to 150 px and there the occasional word wrap that happens which i don't want as it looks "funny."

    PandaOracle wrote:
    In my interactive Reports one of my columns specifically my db_CUSTOMER_NAME column can be from 3 to 50 characters. (or even longer...)
    Was wondering how i can dynamically expand that td column "Dynamically" because i dont want to put a fix length just because there maybe 2 records that goes over +50 characters.
    Right now i set my column width to 150 px and there the occasional word wrap that happens which i don't want as it looks "funny."If the requirement is to prevent word wrap in a specific column's cells, add the following style sheet to the page HTML Header:
    <style>
    .apexir_WORKSHEET_DATA td[headers="db_CUSTOMER_NAME"] {
      white-space: nowrap;
    </style>Ensure that <tt>db_CUSTOMER_NAME</tt> used in the selector exactly matches the <tt>id</tt> attribute of the column header.

  • Dynamic Column Heading on Interactive Report

    I have my column headings for my table columns stored in the database. I want the Interactive Report to use these heading (instead of static headings). Is there a way to have the columns set from the database(with a function/procedure)?

    you can replace the column headings with &PAGE_ITEM.
    obviously one page item per column header
    then use the database to populate the items with your column headings.
    craig
    [http://www.oracleapplicationexpress.com]

Maybe you are looking for

  • Running under classic mode - Standard Options

    In WLS 5.1 server, there was an option to run under classic mode in a UNIX environment. We just upgraded to WLS 6.1 and in the docs, http://e-docs.bea.com/wls/docs61/perform/JVMTuning.html it mentions classic mode available in NT but not in UNIX. Doe

  • How to choose the right codec in Final Cut Pro?

    Hi, I'm new to FCP. I'm using the Final Cut Pro 7 and my video camera is Sony SR1e in AVCHD format 1440 x 1080i. Can someone help me to choose the best codec for project setup? Also is the codec setting for transfering video must match the setting fo

  • Oract Tutor 14 Author server installation and Publisher Client-Server installation

    hi all, does any one know about the installation of Tutor Author 14 server version and how to setup Publisher Client-Server architecture?? please share any document or link that can guide with this.. thanks and regards, SD

  • Flash Page

    Can someone tell me how or what I need to do, that will allow me to design a similiar page like this one: http://finoformen.com/press.php and click on view then the screen opens verticle/horizontal. Is this a plugin, please help thanks.

  • Not ALL Aperture photos appear in iWeb

    When I insert photos from Aperture, not the complete content of the Aperture album / library appears in the iWeb drawer. Some photos are missing. What could I do? Thanks a lot! Peter iMac G5/2/2000/250   Mac OS X (10.4.8)   Newton rocks! (Mine still