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

Tags: Database

Similar Questions

  • 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

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

  • 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

  • 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

  • Report filter conditions interactive apex 4.2

    I've just updated APEX 4 to 4.2 and will have a bit of a problem to find user filter conditions.

    In the old version, I did an oracle package out of filter user of wwv_flow_worksheet_conditions conditions and build applications based on them.  However, in 4.2, they don't seem to be inserted into the table when I set a filter.

    They are now stored in a new place or could I do something wrong?  I had a quick search, but I couldn't find anything about it.

    Thank you.


    Craig S of a. in writing:

    I watch APEX_APPLICATION_PAGE_IR_COND when I wrote originally in the package, but there was something necessary that I could not view. I'll have another look on trying to use once I realized what is wrong.

    If I use the view or the tables well, the filter conditions are not get recorded in 4.2, but they do in 4, is there a reason that this could happen?

    They appear as expected in APEX_APPLICATION_PAGE_IR_COND on apex.oracle.com (4.2.5.00.08).

    Do a 'live' on APEX_APPLICATION_PAGE_IR_COND check in display APEX utility while you are changing the relationship, rather than using your package.

    What else has changed as a result of this upgrade? What did you do to facilitate access to the WWV_FLOW_WORKSHEET_CONDITIONS package? Is it still valid? (For example: is the package to access the table/view in the APEX_040200 schema where the IR changes are now underway, rather than the original APEX_040000 schema?)

  • Monthly report filter condition

    Hi all

    To run a report on the 1st of each month, new and extract the data from the previous month, the filter condition following Date enough?

    TO_CHAR (DATE_COLUMN, 'MM') = to_char (trunc (trunc (sysdate, 'MM')-6), 'MM')

    When I run this - select to_char (trunc (trunc (sysdate, 'MM')-6), 'MM') of double; > > The result is 07
    Does this mean that this report will take place during 07 months of 2009, 2008, etc. 2007? Or just run it 07 months of 2009?

    Also what happens on Jan each year, I guess that the VBA qry should then bring back data of dec...

    Please correct my understanding.

    Sweta says:
    Also this logic works perfectly for the 1st month of the new year? If I run it on January 1, it should bring back data of Dec... right?

    Yes, it will be.

    SQL> SELECT ADD_MONTHS (TRUNC (col_1, 'MM'), -1) prev_month,
      2         TRUNC (col_1, 'MM') - 1 last_day_prev_mon
      3    FROM (SELECT TO_DATE ('01-Jan-2009', 'DD-Mon-YYYY') col_1
      4            FROM DUAL)
      5  /
    
    PREV_MONT LAST_DAY_
    --------- ---------
    01-DEC-08 31-DEC-08
    

    Your Date_Column truncated dates (I mean both are truncated at 00:00:00)

    SQL> SELECT sysdate, TRUNC(sysdate) FROM Dual
      2  /
    
    SYSDATE              TRUNC(SYSDATE)
    -------------------- --------------------
    04-AUG-2009 17:09:03 04-AUG-2009 00:00:00
    
    1 row selected.
    

    If the component "hour" is stored without truncation then you might consider either function TRUNC applying on the date so column:
    Something like:

    WHERE TRUNC(DATE_COLUMN) >= ADD_MONTHS(TRUNC(SYSDATE,'MONTH'),-1)
    AND TRUNC(DATE_COLUMN) <= TRUNC(SYSDATE,'MONTH')-1
    

    Or something like:

    WHERE DATE_COLUMN >= ADD_MONTHS(TRUNC(SYSDATE,'MONTH'),-1)
    AND DATE_COLUMN <= TRUNC(SYSDATE,'MONTH')-(1/(24*60*60)) 
    

    Hope the following illustration helps:

    SQL> alter session set NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
    
    Session altered.
    
    SQL> SELECT ADD_MONTHS (TRUNC (col_1, 'MM'), -1) prev_month,
      2         TRUNC (col_1, 'MM') - 1 last_day_prev_mon
      3    FROM (SELECT TO_DATE ('01-Jan-2009', 'DD-Mon-YYYY') col_1
      4            FROM DUAL)
      5  /
    
    PREV_MONTH           LAST_DAY_PREV_MON
    -------------------- --------------------
    01-DEC-2008 00:00:00 31-DEC-2008 00:00:00
    
    1 row selected.
    
    SQL> SELECT ADD_MONTHS (TRUNC (col_1, 'MM'), -1) prev_month,
      2         TRUNC (col_1, 'MM') - (1/(24*60*60)) last_day_prev_mon
      3    FROM (SELECT TO_DATE ('01-Jan-2009', 'DD-Mon-YYYY') col_1
      4            FROM DUAL)
      5  /
    
    PREV_MONTH           LAST_DAY_PREV_MON
    -------------------- --------------------
    01-DEC-2008 00:00:00 31-DEC-2008 23:59:59
    
    1 row selected.
    

    Kind regards
    JO

    Published by: Joice John on August 4, 2009 04:44
    Knani beat me to it.

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

  • 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

  • Multi on the same report filter conditions

    Hello


    I have a relationship with the different filter conditions.
    How to add these two reports? I tired to add the same report with different filter Pivot condition, but it is not allowing me to do.
    Can someone help me.

    Thanks in advance

    Hello
    Go to combine with a similar request, which may have different filters for different reports.

    Kind regards
    Srikanth

  • 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

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

Maybe you are looking for

  • T440s not detected on hot swap external battery

    Initially I thought it was just a problem of linux. Its the same thing on windows 8. Remove and then reinsert the external battery and windows some extended shows two stacks when you right-click in the system tray. The battery is detected again when

  • change from Palm to Outlook

    Currently, I synchronize with Palm desktop (latest version) using a Centro. Can I change to synchronize with Outlook (2003) instead?

  • Blue screen on Windows Vista

    OK, now here is the problem. My laptop dell Inspiron computer running windows vista will be randomly blue screen of anywhere between 15 minutes of use to 6 hours of use. It is very important for me to have my laptop works well, I reinstalled my OS an

  • four edition dv6t-7300 CTO: is my CTO 7300 dv6t quad edition mSATA III and SATA III compatible?

    Hello!  I was wondering if my laptop is mSATA compatible III for my slot of the WSSD and also if it is SATA III for my regular SSD. I am in the process of upgrading a disk HARD 1 TB to an SSD of 500 GB for the primary and the replacement of the WSSD

  • Folder C:\windows\system32\catroot 2

    HP 550 Notebook FU409EA 32 bit Vista Home Basic. Try to repair Windows Update. Does anyone know how to clear the catroot2 folder and reloaded? Thanks for your suggestions.