Dynamic action for "no filter selected" on IR

APEX 4.2.2

I have a simple simple IR requirement. In fact, the functionality of the IR is so good I don't even build any other search fields, users will simply enter their search criteria in the search box and hit go. I followed the discussion here report forcing interactive that returns 0 rows on the initial screen to force the IR to show no lines on initial display - works fine - just good. So now when a user comes to the page, they have a void IR with a search box. They enter the search criteria and get their results - perfect. When the user then deletes the search criteria, i.e. remove the red X that appears at the top of the page of the record international when you applied a filter or all unchecked applied filters then IR then of course returns all rows in the query region IR (potentially thousands of lines). Is there a way to hang the point at which the filter is "no filter not selected", so that I can fix the base query to add a 1 = 2 type condition to make sure that the IR return lines?

HI Kron,

Here's a possible solution.

create or replace function get_ir_bind_count(p_application_id in NUMBER, p_page_id in NUMBER)
return NUMBER
AS
    l_report apex_ir.t_report;
    l_region_id apex_application_page_regions.region_id%type;
BEGIN

    select region_id into l_region_id
    from apex_application_page_regions
    where application_id = p_application_id
    and page_id = p_page_id
    and source_type = 'Interactive Report';

    l_report := apex_ir.get_report(
        p_region_id => l_region_id
      , p_page_id => p_page_id
    );

    return l_report.binds.COUNT;
END  get_ir_bind_count;

Then in your application, add a condition such as:

where get_ir_bind_count(:APP_ID, :APP_PAGE_ID) > 3

I've got 3 here because my request has 2 used variable bind (APP_ID and APP_PAGE_ID) and the build in a (APXWS_MAX_ROW_CNT). But anyway, you can adjust it according to your needs :-)

Tags: Database

Similar Questions

  • Dynamic action for validation of date with the notification message plugin

    Hi all

    Someone help me please with dynamic action for validation of date with the message notification plugin. I have a form with two elements of the date picker control and message notification plugin.

    The requirement first user selects the exam is finished and then selects the date. So, if the date is greater than the date of the examination is over + 2 years then doesn't trigger the message notification plugin. I tried to create that dynamic action on the date picker date that triggers the scheduled issue notification message but I want to make conditional, I mean displays the message only if date of the selected is greater than the date of the exam is finished more than 2 years.

    In terms simple, notification is displayed only if provided is superior to (date of the exam is completed + 2 years).

    I use oracle apex 4.0 version and oracle 10g r2 database. I tried to reproduce the same requirement in my personal workspace. Here are the details. Please take a look.

    Workspace: raghu_workspace

    username: orton607

    password: orton607

    APP # 72193

    PG # 1

    Any help is appreciated.

    Thanks in advance.

    Orton.

    You can get the value of the date of entry:

    $(ele) .datePicker ('getDate');

    So what to add functions such as:

    function validateNotification (d1, d2) {}

    Date1 var = $(d1) .datepicker ('getDate');

    date2 var = $(d2) .datepicker ('getDate');

    if(date1 && date2) {}

    return ((date2.getTime()-date1.getTime())/(1000*24*60*60))>(365*2);

    } else {}

    Returns false;

    }

    }

    The logic based on setting (I have two years from years of 365 days preceding)

    Then in the D.A. specify a JavaScript expression as:

    validateNotification ('P2_REVIEW_COMPLETED', this.triggeringElement.id)

    Refer to page 2 for example.

  • 2 dynamic action for an item

    I have two dynamic actions for an item from the selection list that is loaded from an element of Cascade LOV.

    Dynamic action 1:

    Name: d1
    Condition: Value = "EXPECTED".
    true action: see the 'Solution' element.
    action of false: hide a 'Solution '.

    Dynamic action 2:

    Name: d2
    Condition: Value = 'OFFERED '.
    true action: see the 'Solution' element.
    action of false: hide a 'Solution '.

    That's happened? If only works with the dynamic action of d1 or when I did some changing works with dynamic action of d2. I unchecked the field "load fire on the page" but it did not work. I think that there is perhaps some collide with them but I analyzed it, but I can't find. Thanks in advance.

    Another thinks I want to ask is how to order values in a select list... with this code above indicate me the values in the following order: closed, lift, open, waiting. But I want the values in the following order: open, pending, climbing, closed. How can I do?
     select distinct STATUS as display_value, STATUS as return_value 
      from HD_STATUS
     order by 1
    Best regards, Bernardo.

    Ah so. It's actually easier then.

    You'll have an installation DA your d1 is configured with the following differences:

    Name: d1
    Event: Change
    Selectio type: Item(s)
    Item: P10_SUBSTATUS
    Condition: Javascript expression
    Value: $v('P10_SUBSTATUS')==='PLANNED' || $v('P10_SUBSTATUS')==='OFFERED' 
    
    true action: Show "Solution" item,
    false action: Hide "Solution" item.
    
    Nothing in the Condition box that currently has the PL/SQL expression. (Make sure to select "None" as the condition type in the condition box)
    

    You need basically the GOLD option that is provided above as Javascript. ' | ' is the operator or if you are not familiar with JS. ' = ' means exactly equal to, and possibly "==", equal to so you could also put it this way.

    Should have thought first of this route.

    Published by: Bob37 on June 28, 2012 16:15

  • Dynamic action for button update region

    Hi all, how to create a dynamic action for button update region. Suggest me

    Thank you

    Apex-Obin wrote:

    Thank you... with over loading the entire page?

    Updating of dynamic actions using partial page refresh (PPR). However it is supported only on certain types of region: traditional and interactive reports, graphics and plug-ins where PPR support has been implemented by the developer of plug-in. The model of the region must also include an id = "" #REGION_STATIC_ID # "attribute, which means that the model region cannot set model No."

  • Dynamic action for 2 fields in a table

    Greetings!

    I have a requirement where I need to disable/enable a field in a tabular presentation for a specific record based on the value of another field in the tabular presentation for this record.

    In a concern for discussion, in my particular case - if FISHCOUNT > 1, then the LENGTH must be disabled. If count < = 1, then the LENGTH must be enabled. It should disable it only records where FISHCOUNT > 1.

    I would do it with dynamic action and I learned through this forum (thank you!) that I can use jQuery for the event (when) the section of the dynamic action.

    So that the part would look like:

    Event: change
    Selection type: jQuery Selector
    jQuery Selector: td [headers = "FISHCOUNT"] select
    Condition: above
    Value: 1

    So far so good. But where I'm stuck is how to reference the LENGTH field of the tabular form in the actions of TRUE and FALSE, so that when the change in the event product (FISHCOUNT), the LENGTH is disabled if FISHCOUNT > 1, or LENGTH is enabled if FISHCOUNT < = 1.

    SEO so the scope of the CASE of my tabular presentation in the actions of True and False, that's where I need help.

    Thanks in advance!

    I use APEX 4.1.1

    John,

    You can do this by creating another dynamic action with the event 'Front Page submit' ("framework events" section).
    With real action that executes javascript, load the page uncontrolled.

    $("input:visible:disabled").prop("disabled",false);
    

    This will select all elements disabled entry visible on the page and remove the disabled property.

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

  • Variable setting wrong with dynamic action for the region of report

    Hello

    I can't setting a variable. Here are the details of connection:

    Connection information:

    TCARMY workspace

    User Apex_dev

    Password dev_apex

    Application 88542

    Page 11

    If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.

    The modal window should popup and run the sql at that time with the variable data and view the two columns. And if the user clicks on the second row, it would display the data in the row.


    Thank you

    Tim

    TC-army wrote:

    If you run the page 11 and just click on submit, there will be two rows. If you click on one, the modal region won't say no data found. If you click on the button submit once again, the value is passed if you click on it now, the results arrive. If you click on the second row, it still shows the value of the first row. If you click on submit again after clicking on the second line, then it is displayed correctly. It seems that the value is set to submit it. I want this to work when clicked, and then for the sql to run with the value that is in this variable when clicks on the element. There is a bit of javascript page level and dynamic action. Something is not right to the installation.

    What has not been set up right, it's that the element of P11_NAICNUMD parameter was not specified in the source attribute of Page to go to the region, modal Discount. The current value in the browser page, therefore, was not defined in session state when the report has been updated by the dynamic action. When

  • Apex 4: Feature missing dynamic action for the region of calendar

    Hello

    If I create calendar view region Type 'Partial Page Refresh' it do not support fully dynamic actions.

    For me, for example event "discount for after ' are not triggered



    Kind regards
    Jari

    Published by: jarola on October 20, 2010 15:53

    Hi Jari,

    that is not yet supported, but it will be something that we seek to add to the 4.1

    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

  • onSelect dynamic Action for the region selector display

    Hi all

    Have a problem and need your help.

    I have a page with 6 regions, I show them based on the view of region selector.

    I need some how know what tab is selected, something like an event "onSelect".

    The user then click on the 3rd tab, I need to know and perform javascript code.

    Please help and thank you very much!

    Andrei

    Then click on the event is appropriate.  Your selection in the DA is the problem.

    I was able to do the following:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector: .apex-rds

    (don't forget the point).

    True "to execute JavaScript Code.

    alert($(this.triggeringElement).find("span").text());
    

    This DA will appear the name of the selected region is within span tags.   The triggeringElement is the anchor tag (a) start clicking. Your code can look at $(this.triggeringElement).find("span").text () and do an if statement to decide what to do on what region.

    Thank you

    -Jorge

  • APEX 5. Dynamic action on the CHANGE event does not work after applying the filter on IR.

    APEX 5.

    Dynamic action for the CHANGE event does not work after applying the filter on IR.

    Event: Change, selection Type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry

    Real action

    Selection type: jQuery Selector, jQuery Selector: td [header = 'abc'] entry, Action: run the Javascript Code

    Is TI WHEREAS behavior?

    I know, I can work around this problem by using the Refresh event and javascript, but I prefer DA and if possible Change event.

    Concerning

    mdyla

    mdyla wrote:

    It is, how to force them reallocate dynamic Action in the event of CHANGE of the input elements after refresh of IR region.

    Set the dynamic scope of the event action to Dynamics.

  • Dynamic action in Apex - automatic text field display based on the definition of value

    Hello

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.


    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Thanks in advance!

    Hi 2932464,

    2932464 wrote:

    Please change your login username of "2932464" to something meaningful. Reference: Video tutorial how to change username available

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.

    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Hereby you mean something like this: https://apex.oracle.com/pls/apex/f?p=52380:11:129938442406997:

    If Yes, then create dynamic action as follows:

    • Create a dynamic action on the Order_number change event say. P11_ORDER_NUMBER.
    • Event-> change, Type of selection-> item (s), article (s)--> P11_ORDER_NUMBER Condition-> is not null
    • Real Action-> to run the JavaScript Code
    • JavaScript code:
      var ordernum = $('#P11_ORDER_NUMBER').val();
      var startdigit = ordernum.substr(0,1);
      if (parseInt(startdigit) === 1) {
        $('#P11_ORDER_TYPE').val('CONSUMER');
      } else if (parseInt(startdigit) === 2) {
        $('#P11_ORDER_TYPE').val('BUSINESS');
      }
    

    I hope this helps!

    Kind regards

    Kiran

  • Dynamic Actions disable button based on the text field

    Hello

    Sorry if this has already been asked but I checked and could not find a job.

    «I'm trying to disable / enable a button "view" among the elements of this region from if a text field has a value or.»  I created a dynamic action for this but its not working only partially.  I can get the button to be disabled or enabled when I leave the text field, but what I'm trying to do is to get the State of button to change as soon as I start to type in the text field or return to people with disabilities if the text is deleted.

    I don't know that I'm missing something simple and help you can give is greatly appreciated.

    I use APEX 4.1 and that's how I got the dynamic action implementation, I tried different but no event types to give them action I want.

    I also install an example (details below)

    Event - change

    Selection type - point

    Article (s) - P1_TEXT

    Condition - is null

    Real Action

    Action - disable

    Fires when the result of the event is - real

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    Action of false

    Action - Enable

    Fires when the result of the event is - fake

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    workspace - show_issue

    user_name - show_issue

    password - show_issue

    app_id - 61707

    http://Apex.Oracle.com/pls/Apex/f?p=61707:1

    It works as expected if you change the event of 'Change' for 'key version?

  • dynamic action and LOVs

    Hello

    I'm having some trouble with the values defined in LOVs areas. I created a free workspace in Oracle APEX.

    I created a form with two fields of LOVs, EMP and DEPT, after that I created a dynamic action to set the value on the LOV Dept field. Then always when a new EMP is selected, the LOV Dept field must define the departament of the chosen MAP.

    Dynamic action has not worked with LOVs fields, always when I changed the field EMP LOV LOV DEPT field is canceled, but when I changed the DEPT LOV to SELECT LIST field, it's good work.

    dynamic action properties:

    event: change; *
    Select type: points; *
    point: EMP_LOV*.
    Condition: no condition; *
    Action: value; +
    setType: Sql statement+.
    Sql statement:+.

    Select DEPTNO+.
    from EMP+.
    where EMP. EMPNO =: EMP_LOV+.

    Assigned items: DEPT_LOV+.

    Brgds,
    André.

    Edited by: 969316 11/03/2012 07:36

    Edited by: 969316 11/03/2012 07:36

    Try sth like this:

    First create a hidden item, let's call it P1_DEPTHIDDEN then

    Create dynamic action:

        Event: Change
        Selection Type: Item
        Item: P1_EMPLOYEE
    

    Now for the first real action follow these steps:

        Action: Execute PL/SQL Code
    
        BEGIN
    
            SELECT DEPTNO INTO :P1_DEPARTMENT FROM EMP WHERE EMPNO = :P1_EMPLOYEE;
    
        END;
    
        Page Items to Submit: P1_EMPLOYEE
        Page Items to Return: P1_DEPARTMENT_HIDDEN -- This is return value, the value you will store in your database table (not the one you see on the screen)
    

    Now for the second True action follow these steps:

        Action: Execute PL/SQL Code
    
        BEGIN
    
            SELECT DNAME INTO :P1_DEPTHIDDEN FROM DEPT, EMP WHERE DEPT.DEPTNO = EMP.DEPTNO AND EMPNO = :P1_EMPLOYEE;
    
        END;
    
        Page Items to Submit: P1_EMPLOYEE
        Page Items to Return: P1_DEPTHIDDEN -- This is display value, the value you actually need to see in P1_DEPARTMENT item !
    

    Now for the third True action follow these steps:

        Action: Execute JavaScript Code
    
        $x('P1_DEPARTMENT').value = $x('P1_DEPTHIDDEN').value /* Now you set P1_DEPARTMENT value to be exactly what you need */
    

    I really hope that it works, it's probably more easy solution then this one.

    Mimi

  • Paging in table with dynamic action form

    Hi all
    I'm having a tabular presentation with 13 columns. I put paging Scheme as, "rank rank 1-15 16-30 in the list of selection (with pagination). And I activated the partial page refresh (because I have a skin and show the process of tabular presentation IE.) When the user presses the button add tabular form will display, otherwise it will be hidden.) For the form of tables, I will have a dynamic action for disabling some fields according to another value of the column. When I run the page in a table is hidden and when I hit Add button tabular presentation displays with disabled columns. But when I select the next in the form of tables button it displays the columns without turning off the column. How to disable, push the button even as previous and next.

    Thanks for the help!

    Hi Christine,

    Sorry for the late response has been far from forum for 3 days!
    See if it works now!

    I created a new action dynamic dis_num_on_next_prev that runs the following JavaScript Code:

    $('.myClass').each( function() {
       if( $(this).val() == 'Number' ){
         $('#f05_' + $(this).attr('id').substr(4)).attr('disabled',false);
         $('#f05_' + $(this).attr('id').substr(4)).css("background-color", "white");
       }else{
         $('#f05_' + $(this).attr('id').substr(4)).attr( 'disabled','disabled');
         $('#f05_' + $(this).attr('id').substr(4)).css("background-color", "yellow");
       }
    });
    

    The point of firing is event after refresh of the presentation table region.

    I hope that helps!
    Kind regards
    Kiran

  • In cascade LOV and calling a javascript function thro dynamic action

    We have a page where there are lovs cascaded to the country / state. The selection of State list is cascaded with country LOV. We also request a javascript to normalize the child lov (State), so that if there is no value in the list, the lov will be disabled and if there is only one value for show, which will be set as default (enabled). However, it seems apex runs javascript code standardize everything first and then generates the list for the lov State, then the State lov is always disabled.

    I created a page similar to apex.oracle.com with choice of Department lists and employee. The link to the page is http://apex.oracle.com/pls/apex/f?p=40631:2

    In this page, the employee selection list is cascaded to the Department. (1) to any value other then 'IT' or no selection value in the list of DEPARTMENTS, the list of employees must be enabled and should list all the names of appropriate employees. (2) for the selection of the 'IT', it should be disabled with the default selection as "no data found". However it does not for 1). Could someone find the problem and give a possible solution.

    Javascript code executed (that thro NatStandardizeLOV1('P2_EMPLOYEE') dynamic action for Department change is lower.

    < code >
    function NatStandardizeLOV1 (pitem)
    {
    var obj = document.getElementById (pitem);
    obj. Disabled = false;
    obj.options [0]. Text = "SΘlectionner one..";


    If (obj.type is "select one")
    {

    If (obj.length == 1 & & (obj.options [0] .value == ": obj.options [0] .value == null))
    {
    obj.options [0]. Text = "No. Data."
    obj.disabled = true;
    }
    If (obj.length == 2 & & (obj.options [0] .value == ": obj.options [0] .value == null))
    obj.options [1]. Selected = true;
    }
    }


    < code >

    Thank you in advance,

    Natarajan

    Published by: Nikita on May 27, 2011 04:21

    Natarajan,

    The question is one of the time. You're service is running before the Ajax request (triggered by the LOV cascading) brings back the items. So change the 'when' of dynamic Action so that it fires the event "After Refresh" of the question of the Department rather than the event change.

    Kind regards
    Dan

    blog: http://danielmcghan.us/
    work: http://SkillBuilders.com/APEX/

Maybe you are looking for

  • Disable/Bypass the Wizard "Configuration of the Mail account.

    How can I disable or bypass the "Mail account setup" Wizard and simply create a new account in the Panel 'account settings '? The "Mail account setup" Wizard doesn't let me get that far without jumping through all his useless hoops and I can't disabl

  • Satellite L450D-113 - Possible CPU upgrade?

    Hi, I was wondering if it would be possible to upgrade the processor on the L450D-113:http://UK.computers.Toshiba-Europe.com/innovation/product/1075573/toshibaShop/false The vehicle currently has one heart AMD Sempron if-42 2.1 GHz: http://www.CPU-wo

  • How can I get my playlists on my mac and my iPhone?

    I add music to my playlist on my mac, but it does not appear on my iPhone. I use i tunes to match.

  • Vista - Cannot install SP2 or upgrade to Vista with SP2

    Hello I get an error when I try to upgrade the installation of Windows Vista's SP1 to SP2. I tried the Checksur solution, but the installation of the utility gets stuck everything in half way through and will not continue. According to the following

  • Help! Operating system reinstallation

    Hello My computer is a HP Pavilion dv4-2045dx. I had to have my hard drive replaced. I have the recovery system for windows 7 64 bit DVD. I tried to reinstall, but for some reason it wasn't and the computer gives me a message saying that the installa