Interactive report filter problem

Hello

Today I met a problem with an interactive report. When the report first, load no problem. If a filter is added, an error is returned. The error is actually produced by a routine of affirmation that triggers and exception if a NULL value is passed. Here is a modified and simplified the application version:
SELECT id,
   name,
   dept,
   emp.year_of_emp(hire_date) AS years_of_employment
FROM emp_table
WHERE id IN (
   SELECT c001
   FROM apex_collections
   WHERE collection_name = 'EMPS_UNDER_MANAGER'
);
Once again, when the report first no loading, no problem. When the Manager applies, say a filter on dept, an error is raised by the emp.year_of_emp function because a NULL value was passed.

I know that all the EMOS with an id of PGE in the collection have a hire_date so I don't think that I should add another condition in where clause to filter those (even if it's the work at this stage). Anyone has any ideas as to what could be the cause?

Kind regards
Dan

http://danielmcghan.us
http://sourceforge.NET/projects/tapigen
http://sourceforge.NET/projects/plrecur

Hello Dan,.

Most points on the road ;-)

Select / * + SORTED * / seems to do the trick... (I've updated your sample app and it works)

Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-)

Tags: Database

Similar Questions

  • Interactive report filter by clicking the cell in report

    Hello

    I want interactive report filter by clicking report cell .i have created an interactive report and put java script in the Page HTML HEader.

    <script type="text/javascript"> 
    $(function(){  $('.apexir_WORKSHEET_DATA td').live('click',function(){   
    $('#apexir_SEARCH').val($(this).text());   gReport.search('SEARCH'); 
     }); 
    }); 
    </script>
    It is work in Apex 4.0 but does not not to point 3.2. I don't load the jQuery library in the header of the template page.
    I put only Java Script in the HTML Page Header.

    How to solve this problem.

    Thank you.

    Hello

    Way the easiest is using Google.
    Add to the header of HTML page or template page prior to alternatives #HEAD #.

    
    
    

    Alternative see, for example, that
    http://www.oracleapplicationexpress.com/tutorials/66

    Kind regards
    Jari

  • 'OR' in Interactive report filter

    We need to create a filter preset for interactive report, which should be used only those records in which several (one or more) fields contain null values

    in SQL, it could be
    (Fld1 is null OR Chp2 is null OR Chp3 is null OR...)

    is it possible to do the same thing in the interactive report filter, preferably by using URL (user URL hits - and the filter is applied to the report)?

    Hello

    I have not access to an Apex 3 environment to verify this, but I think that interactive reports of Apex 4 save the filters slightly differently and an attempt to mimic this functionality using IR conditions would fail.

    The only solution I can think of right now is to have an additional column that returns 0 or 1 - for example:

    SELECT FIELD1,
    FIELD2,
    FIELD3,
    CASE WHEN (FIELD1 IS NULL OR FIELD2 IS NULL OR FIELD3 IS NULL) THEN 1 ELSE 0 END INCLUDE_NULLS
    FROM YOURTABLE
    

    then apply a filter to INCLUDE_NULLS = 1

    Andy

  • Apex 4.0 how use the interactive report filter feature?

    Hi all
    Sorry for the nub question, but if there is a way to create and save 'report' with the filter condition using a function?
    What I want to do is to create an interactive table called TASK report.
    Table has two columns I want to use for filtering:
    FDate - DATE - date
    TDate - DATE - to date
    Then, I need to create multiple saved reports:
    last week the tasks = where FDate between sysdate - 7 AND sysdate...
    last month tasks = where FDate between ADD_MONTH(sysdate,-1) AND sysdate...
    but,
    Interactive report filter does not accept sysdate or calls to functions ADD_MONTH.
    Is there an easy way to configure this feature?
    TIA
    Thomas

    Sorry for the double post...

    Published by: thomaso on August 6, 2010 12:04

    Hi Thomas,

    Take a look at the type of filter 'Row' in the interactive reports filter dialog box. This allows more dynamic filters, such as those involving SYSDATE or ADD_MONTHS calls. See also the next thread for some more details on this:

    Re: Interactive report - line conditional highlighting date function

    It will be useful.

    Anthony.

  • Capture interactive report filter fields

    I have a requirement where in a user can view data, apply filters to it, and then call an Oracle API passing across the data currently visible on the report.

    If I can some how capture currently applied filters on an interactive report, I should be able to recreate the same data server before calling the API Oracle side.

    Is there a way to capture these interactive report filter field?

    Thank you
    Shikhar

    Hello

    Ok
    I don't know any Apex accumulation in the package, procedure or function you could use.
    Custom package apex_ir_query can return where clause which is related to the current user
    http://stewstools.WordPress.com/apex_ir_query-package/

    I used here as example
    http://ActioNet.homelinux.NET/HTMLDB/f?p=lspdemo:Home

    Custom paging additional IR (first name/page) and export Excel use the package on this page

    BR, Jari

  • Interactive report filter expressions

    In the interactive report filters...
    Is it possible to use Select statements...

    for example

    Select the line type
    in type of expression:

    A in (select n_consultant_fk from the consultant_services where service_name in ' right % ')

    Click on apply

    This errors... is there a way to do this...
    other than creating a new page/report of course...

    Hello

    Do you want the ability of users to be able to write SQL themselves query filters or this just something you can do?

    I had a very similar situation is the past and I created just a public report I came with a very long work around by changing the actual query

    I used a case statement as a column in the query. It's on the top of my head and I obviously don't have work sorry for the mistakes of your query:

    SELECT
      us.user_id,
      us.username,
      'consulant' = (CASE
         WHEN EXISTS (SELECT 1 FROM consultant_services cs WHERE cs.service_name like 'RIGHT%' AND cs.n_consultant_fk = us.user_id)
      THEN
        1
      ELSE
        2)
      END
    FROM
      users us;
    

    Then, in your interactive report, you can have a filter to advise and assign consultant = 1

    Also, you don't need to see the consultant to the users column

    I hope that maybe it's something you can try, and it helps

    Paul

    Published by: Paul Broughton June 2, 2011 22:17

    Published by: Paul Broughton June 2, 2011 22:22

  • Interactive report filter with OR condition

    Hello
    How to use the interactive report or condition filter? using the default value is "and".
    For example, I have = 2008 FY or FY = 2009 (FY is a column in the report).

    Hello

    I don't think you can, but your example work a single filter using IN.

    HTH

    Chris

  • Increase the width of the column interactive report filter

    Hello

    When you click on a column on an IR header, a filter in the form of a widow of pop - up appears, which has the list of values. I have an IR column where the values are long, such that they do not fit in the filter area. As there is no horizontal scroll bar, so the value is truncated.

    Is it possible to increase the width of the column filters say 3 inches for one or all columns, or even display a horizontal scroll bar so that the values do not get truncated?

    I use Apex v4.2.1.

    Hello

    Go wrote:

    POOJA,

    check out the blog of jari list drop down interactive column resizing report that can help you...

    Here you can find simple solutions for APEX 4.2

    APEX 4.2 resizable interactive column topic report menu

    Kind regards

    Jari

  • 'OR' logic in interactive report filter Conditions

    Hello.

    I use Apex 4.2.1 against Oracle 11 GR 2 using mod_plsql.

    I noticed that conditions of IR filter between the columns of different report as identical are always "AND-ed' together.

    My users need create IR filter conditions that are 'GOLD - ed' together.

    Is it possible to do this?

    Thank you.

    Elijah

    Once you click on "Filter", you will see two options - "Column" and "Row". Use 'Row' and there you can enter the complex conditions.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Interactive report filter

    Apex 3.2

    I have an IR which has also a column of link change using the values in the column 2 (PLOCID and PMATID) (shows edit icons).

    I went the attributes of the columns id column and uncontrolled all allow them users of options.

    Now when I enter something in the search box, that is to say, 23, it returns lines containing 23, but also lines

    whose ID contains 23.

    Y at - it anyway to stop this.

    I need the id in the link change, as they are used in a process of loading the edit page

    See you soon

    Gus

    Hello Gus,

    If I understand you, you need the value column in the link Edit but do not want the value of the column to be included in the research.  IF you try to use a static column for your column to edit.  Here is an example with the emp table:

    [code]

    Select hidden e.empno, "Edit", e.ename, e.sal

    from emp e

    [/ code]

    Your column of link would be your column to change, to link you to your page and the item and use the column ID masked as your value.  Let me know if I am misunderstanding of your needs.

    Paul

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

  • between operator to group by date in the Apex of the interactive reports

    Hello

    In the filter of interactive reports, I could not find the "between" for the date field (got a "group by date" in my (source) sql query.) I wonder, is - this in view of the group by clause date?. Is there a way to show the operator "between" in the interactive reports filter.

    Thank you

    I just opened an existing style IR report, went to the actions, filter, selected a date column and found at the bottom of the list of values... Are you sure of the date that you want to filter on is a real date column?

    Thank you

    Tony Miller
    Webster, TX

    What happens if you were really stalking a paranoid schizophrenic... They would know?

    If you answer this question, please mark the thread as closed and give points where won...

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

  • Run interactive report only if the search filter values / entered.

    Hello

    I have an interactive report I want to post, but the problem is that too many files are in the base table, so I want to hide this report until some filter values are entered in the search field (apexir_SEARCH), so if no value entered search I do not show the report but with the search value view the report with the returned records ,


    I tried to create a hidden item (P1_TEST) USE THE CONDITION relating to THE report if P1_TEST IS NOT NULL, and then submit the report, but it does not work well enough


    Thank you

    Gor_Mahia wrote:

    I have an interactive report I want to post, but the problem is that too many files are in the base table, so I want to hide this report until some filter values are entered in the search field (apexir_SEARCH), so if no value entered search I do not show the report, but with the value of research showing the report with the returned records ,

    I tried to create a hidden item (P1_TEST) USE THE CONDITION relating to THE report if P1_TEST IS NOT NULL, and then submit the report, but it does not work well enough

    Add to the WHERE clause of the query of the IR (or add it in the WHERE clause if the report has not one):

    and exists (select
                    null
                from
                    apex_application_page_ir ir
                      join apex_application_page_ir_rpt irr
                        on ir.interactive_report_id = irr.interactive_report_id
                      join apex_application_page_ir_cond irc
                        on irc.report_id = irr.report_id
                where
                    ir.application_id = to_number(:app_id)
                and ir.page_id = to_number(:app_page_id)
                and ir.region_name = 'Conditional IR'
                and irc.condition_type in ('Filter', 'Search')
                and irr.session_id = :app_session
                and irr.base_report_id = (select apex_ir.get_last_viewed_report_id(to_number(:app_page_id), ir.region_id) from dual))
    

    The predicate will be true only if the user has created at least a filter/search condition for the report, and if it is false, that it must stop the optimizer to hit the base table. (This has been developed and tested on APEX 5.0, so there may be differences with previous versions.)

    Note that using the search field by default generates inefficient queries. If you are really serious about performance, clear the search field and get users to create filters to specific columns, which will have a better chance to allow the optimizer to use indexes or improve the execution plan.

  • Filter delete automatically the interactive report

    Hello world

    We are seeing the question in the filter APEX. I applied the action filter-> filter. the filter is applied as expected. then we are navigate current page to another new page. When we return to the old filter page, we are not able to get the filter.

    For example: we have the "amount" column I applied a quantity of filter > filter 0 on page 1, then page 2 accessing we. When we return to page 1 we are not able to find the amount > 0 filter

    Let me know how to solve this problem.

    Kind regards

    Sushant

    Hi LnTInfotech,

    LnTInfotech wrote:

    Hi Sunil,

    Thanks for your information, but in my case, we do not save the default (primary) report. We have to got to page 1 to page 2 with any filter and return back to page 1 need to show the same filter.

    Kind regards

    Sushant

    Are you compensation/reactivate the interactive link (button, breadcrumb) report? Reference: a link to the interactive reports

    As clearing (CIR) /resetting (IRB) interactive report leads to clear the filters applied to the interactive report in the session active.

    Note: Filters / other attributes of the action menu applied to the interactive report are specific session, user may choose to save it as a saved report interactive and developer can choose to save as the main report.

    For more information about interactive reports see the Oracle APEX documentation and tutorials available on Oracle Learning Library like this:

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R40/apexirr/apexirradv/apexirradv_ll.htm

    I hope this helps!

    Kind regards

    Kiran

Maybe you are looking for