Dynamic position in interactive report

In standard reports, it is possible to create dynamic topics using PL/SQL.

Does anyone know a way to do it for interactive reports?

I have a report that must change the date items depends on the selected start date.

Thank you

Jon

Hi Jon,

It's a little different from what you expect.
What you can do, is to refer to an element hidden for ex. In your interactive report you're & P1_ITEM. that contains your dynamic position (PLSQL code)

Kind regards
Dimitri
----------------------------------
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/

Tags: Database

Similar Questions

  • Dynamic action function Interactive report select value list

    I want to perform an Action when a user selects one of the 3 options in a selection list in an interactive report:

    Select APEX_ITEM. SELECT_LIST)
    p_idx = > 3,
    -p_value = > deptno,.
    p_list_values = > ' copy; Copy, delete, delete, export to PDF format. Export to PDF ',
    -p_attributes = > "style =" color: red; ' " ',
    p_show_null = > 'YES ', he said.
    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 ROWNUM f03_, #
    p_show_extra = > 'YES') "Actions".
    Double;

    When you generate the dynamic Action, I chose the following values of the Advanced Wizard
    Event: select
    Selection type: DOM object
    DOM object: P6_IR_SELECT_LIST
    Condition: Equal to
    Value: 'delete '.

    Action: Run the Code JavaScript: Alert ('Here');

    Does not seem to be shooting... can anyone help?

    Thanks in advance,
    John

    The problem is the type of event.

    'Select' fires when text is selected in a text field, not when an option is selected in a list...

    Try instead "change."

  • Dynamic title for interactive report?

    I have an interactive report where I'm passing in the interactive report filters. It's great becase it allows me to reuse a single interactive report in different ways. However, a disadvantage, in that I am running is the title of the report. I would really like to be able to change the title of the report based on the filters that I. Is this possible? If the title of the report can be dynamic?

    Thank you

    Andrew Watson

    Change the interactive report region.
    In the title, enter & P1_SOME_PAGE_ITEM.
    When p1_some_page_item is a hidden... item store the title at this point and your will become dyanamic

    Kind regards
    Shijesh

  • Interactive report case triggering a dynamic action

    Hello

    My interactive report is built, based on the following query

    SELECT ID_OPERACION, NOMBRE_CLIENTE, TOTAL_PAGAR, APEX_ITEM. CHECKBOX (1, O.ID_OPERACION, "onclick ="f_UpdateCollection (this)"', a.c001") "Seleccionar"

    OPERACIONES o, apex_collections a

    WHERE the a.c001 (+) = O.ID_OPERACION

    and a.collection_name (+) = "OPE_COLLECTION".


    I use a collection because I don't want to lose the selected controls caused by paging.


    I would like to add a dynamic action that each time check box is selected, an element (P5_TOTAL_SELECCIONADO) summarizes the column TOTAL_PAGAR of all the checkboxes that are selected and each time a checkbox is unchecked the Total_seleccionado subtracts the value of the selected item.


    How can I do?

    Hi Eva,

    Please check again your application and see if it's what you thought.

    I made a few changes. First, here you were talking about P5_... the elements in your workspace apex.oracle, the page number is 1, so I changed the P5_... elements of P1_...

    Then, you let the fire on the boxes page laod on, but you don't want t function to begin to evaluate during page loading.

    There were also a few errors in the javascript code, I suggested. The VALOR_PAGAR selector was not correct, I've changed a little bit. Also all selected text values are strings and adding javascript strings will be just concatonate them. I made string number conversion for you, also taken into account that null values (P1_TOTAL_SELECCIONADO on page loading is null) cannot be cast to number.

    The result is:

    var VALOR_PAGAR = $(this.triggeringElement).closest('tr') .find ('td [headers = "VALOR_PAGAR"]') .text)

    var TOTAL_SELECCIONADO = $v ('P1_TOTAL_SELECCIONADO')

    VALOR_PAGAR = (isNaN (parseInt (VALOR_PAGAR) = VALOR_PAGAR)? 0: VALOR_PAGAR)

    TOTAL_SELECCIONADO = (isNaN (parseInt (TOTAL_SELECCIONADO) = TOTAL_SELECCIONADO)? 0: TOTAL_SELECCIONADO)

    var total = VALOR_PAGAR + TOTAL_SELECCIONADO

    $s ('P1_TOTAL_SELECCIONADO', total)

    This is the code to add checkboxes checked, false action is the same except for total, which is:

    var total = VALOR_PAGAR - TOTAL_SELECCIONADO

    Kind regards

    Vincent

  • Call for dynamic action of an interactive report

    Hello
    I'm on APEX 4.1, 11 GR 2, Windows 7 and the latest version of Firefox.
    I have an interactive report. I want the end user to have the ability to click on a link to line level and launch a modal pop up on another page. Ideally, I would like to be able to use the Skillbuilders plug-in. I can make it work if I just go the road full page but I can't find a way to make it work like a modal pop up.
    I have tried different methods, which work, but I think that I should follow that is using a page-level dynamic action that fires when a found JQuery element selector is selected.
    The problem I have is that I can't find the proper JQuery selector syntax for the column. My report has a static ID of the IDN and my column a header of PARTS.
    The best I can manage is not to see something happen as a page refresh (if the link is on the same page). I don't see no errors in console and firebug.

    I replaced the dynamic action modal page appeal by an alert, which is not displayed, to make sure that it is not the configuration of the plug-in which is the cause of the problem.

    Someone would be kind to give me an idea of what I should be completed in the JQuery selector field of the DA and what should be the attributes of link? Because I want to redirect from page 1 to page 2, what should I put in the other fields in link?
    I've been chasing my tail with this for hours and read all the posts in this area, I could find, but I can't make it work. Any help would be much appreciated.
    Kind regards

    Danny

    That's what I did on my column link of an international registration:

    Link icon: (choose something)
    Link attributes: class = "btndetails" onclick = "return false;"

    (the onclick is vital, it prevents the default anchoring action does not happen)
    Implement the details of the target page that you want in your popup modal

    Create a dynamic action

    Event: click on
    Selection type: jQuery Selector
    jQuery Selector: .btndetails

    Advanced > scope of the event: live

    Real action:

    Modal Skillbuilders page:
    Location of the URL: attribute of the triggering element
    Attribute name: href

    Who should appear in the page without problem. The onclick is the key here, and probably why you were chasing your tail so far.

  • Expand the column header dynamically interactive reports

    In my interactive reports one of my columns that specifically my column db_CUSTOMER_NAME can be from 3 to 50 characters. (or even more...)

    I was wondering how I can dynamically extend this td "Dynamically" column because I don't want to put a fixed length, simply because it may be 2 folders that happens on + 50 characters.

    Now I put my column width to 150 px and her scarf casual word that happens I don't want that it seems "funny."

    PandaOracle wrote:
    In my interactive reports one of my columns that specifically my column db_CUSTOMER_NAME can be from 3 to 50 characters. (or even more...)

    I was wondering how I can dynamically extend this td "Dynamically" column because I don't want to put a fixed length, simply because it may be 2 folders that happens on + 50 characters.

    Now I put my column width to 150 px and her scarf casual word that happens I don't want that it seems "funny."

    If the requirement is to prevent a return to the line in the cells of the specific column, add the following style sheet in the header HTML page:

    
    

    Ensure that db_CUSTOMER_NAME used exactly in the selector matches the attribute id of the column header.

  • APEX 4: Dynamic Action to manipulate a search string in the interactive report

    Hello

    I have the following problem. I have an interactive report that shows a few columns and one of them has a barcode that has been saved as a numeric value for display in the column is something like ("123456789"). All works fine so far. If anyone 123456789 they will get the right line and all is well. Unfortunately if I scan in the barcode with a barcode scanner, he enters '01234567890'. I don't have nor the ability to reprogram the scanner BC and I can't change how the data gets displayed.

    So I thought I would create a dynamic action that is triggered when the contents of the textfield object change. So, I've created a dynamic action, selected jQuery and entered .apexir_SEARCH and the Change event.
    I then chose to run JavaScript and entered as cod:

    var newsearch = document.getElementById ('apexir_SEARCH').value.replace (/ ^ [0] + / g, ");
    var inputObj = document.getElementById ("apexir_SEARCH");
    If (inputObj)
    {
    Update of the value
    inputObj.value = newsearch;
    }

    So far so good. When I load the page and enter a value from a '0', it works like a charm and it removes the zero. But if I delete again on the page and the search filter, dynamic action will do nothing. I'm really confused, as if I just made a mistake in the JavaScript code or what is the reason, that the action runs only the first time. I have to reload the page and then it will still be to manipulate the string once, but the second time, it won't.

    I'm very happy for any help you can provide!

    Thank you
    Dennis

    Hi Dennis,

    The thing that comes to mind is to check that the scope of the event of dynamic action is 'live '. If it's on (default) bind, then when a partial page refresh occurs, action will not fire the first time. Direct fires each time.

    Hope this helps

  • Hide filter interactive report dynamically after the page load

    Hello

    I try to hide the section of interactive report filters (hide/show the area with +/-sign on the top of the report) the loading of the page

    I have the reference to the thread after http://apex-at-work.blogspot.com/2011/02/hide-interactive-report-filter.html posted by Tobias Arnhold...

    According to the expert, all I have to do is post the following code the code JS "page loading" within a dynamic action...


    / * Hide filter IRR after page load * /.
    If ($('#apexir_CONTROLS_IMAGE').attr ("src") == ' / i/minus.gif ') {}
    gReport.toggle_controls ($x ('apexir_CONTROL_PANEL_CONTROL'));
    }

    I did, but apparently it does not work for me...

    I posted a sample on APEX. Oracle.com for review and comment

    Thank you

    Edited by: qwe12654 may 3, 2011 19:15

    Hello

    01. in the report Footer region put this

    
    

    * This will hide your filters, highlight conditions

    02. then Goto 'Report attributes' => 'Search Bar' => for 'Include search bar' select 'no '.
    * This will hide the full search bar (do this only if you want to hide this part)

    * If you get the answer then mark as 'Correct '.

  • Dynamic action with refreshment area interactive report

    Hello!

    I use APEX 4.02

    I have a page with 2 regions.
    Region1 is a form (of entry)
    Region.2 is an interactive report on the same table as region 1

    When you enter values in the form I'm trying dynmically similar research records in the table with the interactive report.

    I made a dynamic action on the change of form fields that must refresh the interactive report region. I can see this one fires if I add an alert to debug if it fires.
    The dynamic report is based on a query with bind variable pointing to the fields in the form, for example
    where
    Field1 =: P2_FIELD1


    It works fine on the page loading, so no action is triggered, but I see the lines in the region of report are the ones I'm looking for.
    The updating of the report area does not work, but it is never nice and/or showing the correct data after a change of form fields, if it looks like the dynamic action "refresh the region" does not work on the interactive report.

    Any ideas why it can go wrong?
    I want to solve this problem using standard dynamic actions and preferably not via PL/SQL or JS, should be possible if I believe documentation... ;)

    See you soon
    Bottom

    Published by: bklerk on 26-apr-2011 03:07

    Hello

    Check this example application
    http://Apex.Oracle.com/pls/OTN/f?p=39830:38

    You can download and check the source

    Kind regards
    Jari

  • Apex 4.0 interactive report row view dynamic action "after Refresh.

    Hello

    It seems that interactive report view row do not trigger the event "after refresh.
    I have not tested other events.

    I have taste.
    https://Apex.Oracle.com/pls/OTN/f?p=40323:76

    There is a dynamic action that show the alert by region "after updating' event.

    When you see a row, the alert is not displayed.
    Change record show no alert ether.

    Is it bug or missing feature?

    Kind regards
    Jari

    Hi Jari,

    I consider this a bug/feature missing as well. I filed bug # 10376989.

    Concerning
    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

  • Formula to calculate interactive report - String field not in position fixed

    Hello

    I use interactive report of the Apex 3.0 as a customer and want to build a formula for the scenario below.

    There is "name of role" as shown below.

    "Role name".
    =================
    FY11 RGBU OvFldMg
    FY11 ChFldIC RPBU Ind Pts
    FY11 All OvFldIC Pts
    FY11 OvFldMg All Pts Ex
    FY11 Rev OUMg All
    FY11 OUSCIC all Rev
    FY11 OUMg Rev/Mrg
    FY11 ChFldMg SysTechApps
    FY11 CpFldIC BI
    FY11 IT all
    FY11 UASRV OUSCMg
    FY11 PrFldMg HlthSc

    I want to create the calculation field' balance sheet the name of role "with the following rule.
    If the role name contains one of the strings, the value 'Role name Check' here is 'OK' else 'CHECK '.

    OV FY11
    PTS
    Rev
    Sys

    The result should be as below.
    "Role name" / "role name check.
    ==============================
    OV FY11 FldMg RGBU / OK
    FY11 ChFldIC RPBU Ind Pts / OK
    OV FY11 FldIC All Pts / OK
    OV FY11 All Pts Ex FldMg / OK
    FY11 All OUMg Rev / OK
    FY11 OUSCIC all Rev / OK
    FY11 OUMg Rev /Mrg / OK
    FY11 ChFldMg Sys TechApps / OK
    FY11 CpFldIC BI / CHECK
    FY11 IT all / CHECK
    FY11 OUSCMg UASRV / CHECK
    FY11 PrFldMg HlthSc / CHECK

    I used a simple formula "DECODE (INSTR (L, 'FY11 Ov', 1, 1), 1, 'OK', 'VIEW')'."
    But this works only if the search string is at the front of the role name.

    Would appreciate your help.

    Thank you
    Guy

    I see guys. Fortunately, there is almost always more than one way to skin a cat!

    It is possible by simply using to DECODE, but you will need to enter in nested DECODE which might be a problem depending on how the string you test against or may need to test against the future.

    If you are simply testing the existence of one of the following strings, how about you do this:

    decode(instr(L, 'FY11 Ov') + instr(L, 'Pts') + instr(L, 'Rev') + instr(L, 'Sys'), 0, 'CHECK', 'OK')
    

    He add the character positions (if found) for each of the channels of test, and if the sum is 0, this means none of the channels found test - if the sum is nothing else, it means that at least one of them has been found. It has the advantage of your being able to add strings in the future while now decent readability.

    Hope this helps,
    John

  • Dynamic action - Hide and show interactive report

    Hello

    in the apex community tip http://www.oracle.com/global/de/community/tipps/apex40-dynamicactions/index.html (only in German), there is an example to hide and show a report interactive by dynamic actions.

    The approach described in the article should be case for normal or interactive reports.
    But in my case it works for normal relations. I am not able to update or hide the interacitve dynamic equity report.

    Has anyone had similar experience?

    Greetings
    Michael

    Hello
    You are welcome.

    * It is considered good etiquette to the responses of reward with points (as "useful" - 5 pts - or 'correct' - 10pts). :)
    Thank you
    Logaa

  • Dynamic interactive report

    Hello

    I have a requirement to create the financial report of pivot using interactive report. I managed to create a function retutning the dynamic query for the report of pivot as follows:

    CREATE OR REPLACE FUNCTION
    fnc_pivot
    RETURN VARCHAR2 AS
    CURSOR cur_qry IS
    SELECT DISTINCT', SUM (CASE WHEN financial_year = "')
    || financial_year
    || "' ' AS case_st
    (' THEN annual_allocation END) AS
    ||'"'
    || financial_year
    ||'"' AS case_head
    OF finance_table
    ORDER BY case_head;

    l_query VARCHAR2 (32000) DEFAULT NULL;
    BEGIN
    BECAUSE me IN cur_qry
    LOOP
    l_query: = l_query
    || i.case_st
    || i.case_head
    || CHR (10);
    END LOOP;
    l_query: = 'SELECT id.
    || l_query
    |', ' SUM (annual_allocation) AS
    ||'"'
    ||' Total general '
    ||'"'
    ||' OF finance_table '
    ||' GROUP BY id';

    Return (l_query);

    END;

    Which returns the following query:

    SELECT fin._id, SUM (CASE WHEN fin.financial_year = ' 2007/8 ' THEN fin.annual_allocation END) AS "2007/8.
    , SUM (CASE WHEN fin.financial_year = ' 2008/9 ' THEN fin.annual_allocation END) AS '2008/9 '.
    , SUM (CASE WHEN fin.financial_year = ' 2009/10 ' THEN fin.annual_allocation END) AS '2009/10 '.
    , SUM ("CASE WHEN fin.financial_year = ' 2010/11" THEN fin.annual_allocation END) AS "2010/11"
    , SUM (CASE WHEN fin.financial_year = ' 2011/12 ' THEN fin.annual_allocation END) AS '2011/12.
    , SUM (CASE WHEN fin.financial_year = ' years future "THEN fin.annual_allocation END) AS"Future Years ".
    SUM (annual_allocation)
    OF end financial_table
    GROUP BY fin.id

    And these are the results




    Total general 2011 2010 2009 2008 2007 ID/8/9/10/11/12 years to come
    0 121 541 2545 1454 5454 3545454 CHWP01L201
    80000 654534 45654 4545 545 54545 212545 CREP01L201



    So if I create a normal SQL statement (function of PL/SQL returning query) it works beautifully, but as we cannot make the same Interactive report I created an apex_collection based on the above function.

    Here's my problem, because the columns are dynamic can't go and create a report based on ' Select * from apex_collection ' that returns all the 50 columnswhether apex_collection they gave or not. And even if I do "Select c001, c002 c003... Of apex_collection 'headers are' c001, c002... rather than the exercises I need.

    Has anyone had a similar problem? Is there a solution to this problem or should I just wait and hope that the next version of Apex has this feature (and no, Oracle buddies, no sarcasm here, only resignation after day of head breaking with no solution).

    Any help will be much appreciated.

    Best regards
    Sophie

    Hi Sophia,

    Take a look on: [http://apex.oracle.com/pls/otn/f?p=27169:4]

    This is a report from pivot for standard and interactive reports and explains how to create report data and generate results.

    As you have seen, the complicated bit is the headers and masking the unused columns. For the version of the IR, the titles are stored in the hidden page items and the column headings are defined as & P5_HEADING1, & P5_HEADING2. etc. The columns are hidden by checking another hidden element which holds a number of columns.

    You may not use directly for your own needs for IR, but if all goes well, it should give you an idea of what you could do.

    Andy

  • Filter column position of the interactive report

    Hi all!

    First of all, sorry my English.

    I have a problem with filters standart on the interactive report column heading. Version 4.0.2 APEX. It is interactive report based on the view. Nothing unusual - behavior and the default templates. I have also the region of filter on the page, and after user-press "apply" button my package variables to session state of filter. View used these values. It is worked and filtered interactive report. But when I try also to use the filters on the heading of the column that is nothing past. I have try the column type: report Standart column and display text. I have try the Filter Type column: by default based on the Type of column and the list defined by the use of... Contain. Nothing, as no filter exists at all. Filtering with worked as usual action buttons. I think that this problem in a SEPARATE implicit in this filter. I know that there are quantitative limitation of DISTINCT values with column header filter, but I have nothing in the filter. And even I have type the value and press ENTER, nothing happened. Columns with Date type is fine, but String and number does not.

    There is no work around? Thank you.

    Solved within "parameterized" view, remove and replace with SELECT with params.

  • How to disable dynamically interactive report filed in the page master detail

    I use APEX 4.0 & very new to APEX. I am not able to disable a class in area of detail (which is an interactive report) of a master detail Page.
    I want to turn off the field in a row based on the value of another field of recording, like set_item_instance_property of the oracle forms. Please help me.

    See {message identifier: = 10743324}

Maybe you are looking for

  • Slow network preferences

    Hello For some reason any, whenever I click on the icon WiFi at the top right that it takes a good 2-3 seconds for the menu to appear which shows the currently connected network, etc... and then when I select "Open Network Preferences" on the bottom

  • Can't see the details - time and State of charge of battery

    my PC laptop battery charge and discharge ok but the icon in the taskbar can not tell me how cool.I left there just an empty battery that says remains unknown. Is there something wrong with my battery or is this a driver issue maybe?

  • Is there a way to hide several updates?

    In Vista and upward, it is possible to tick/check/select several updates. What's the point if you can't actually choose to hide unwanted language packs 34 etc.?

  • Update SP1 killed my computer

    I am running Vista Business and I wanted to install Internet Explorer 9.  It took install me SP1 first.  When I did it I have a line of type frozen on the screen.  Now it does not start, if I use safe mode it goes to the repair of the system but it d

  • connection of Native facebook app - context invocation

    Hello I use this project for facebook login: https://github.com/QuickBlox/BB10-Facebook-connector Currently, it sends you to a web browser to connect. I wonder if there is a way to launch the native facebook for the user to connect app? Thank you.