OR Logic In Interactive Report Filtering

Hello All.
I'm using Apex 4.1 on Oracle 10.2.0.5 and Oracle App Server 10g (mod_plsql). Apex is being viewed using IE7/8/9 and Firefox 3.x.
I've created an IR in which I've set-up filters for 3 columns.
I notice that these filters are always using "AND" logic when returning the result set. But my users want the option to "OR" these filters together.
Example:
IR SELECT statement: SELECT * FROM EMP
Filter 1: ENAME LIKE 'E%'
Filter 2: SAL > 1000
Filter 3: COMM IS NOT NULL
By default, the IR runs the following SELECT statement:
SELECT * FROM EMP WHERE ENAME LIKE 'E%' AND SAL > 1000 AND COMM IS NOT NULLInstead, users would like the option to run the SELECT statement:
SELECT * FROM EMP WHERE ENAME LIKE 'E%' OR SAL > 1000 OR COMM IS NOT NULLAnd so, is there a way to let users dynamically toggle AND/OR logic applied to IR filters?
Thanks in advance for any help/advice/code.
Elie

Alas, you're correct.
However, sometimes thinnking in a "non-standard" fashion is how creativity is born.
I'm hoping there's a way to implement this.
Thank you for your feedback. It's appreciated.
Elie

Similar Messages

  • Regular Expression functions not supported in Interactive report filters ??

    I'm using APEX 4.0.2 and I'm trying to create a row filter in an interactive report which uses regexp_instr and regexp_replace functions and I'm getting the message:
    Invalid filter expression. regexp_instr
    The code runs fine in SQL Workshop
    select cytogenetics from z_patient
    where regexp_instr(regexp_replace(cytogenetics,'(\,+|\"+|\s)',''),'(^46XX$|^46XY$|^46XX\[..\]$|^46XY\[..\]$)')=1
    CYTOGENETICS
    "46,XX [20]"
    "46,XY[20]"
    "46,XX"
    "46,XY[20]"
    "46,XY[30]"
    "46,XY[26]"
    "46,XY [33]"
    "46,XX[32]
    etc...
    my filter is just the where clause above i.e.
    regexp_instr(regexp_replace(cytogenetics,'(\,+|\"+|\s)',''),'(^46XX$|^46XY$|^46XX\[..\]$|^46XY\[..\]$)')=1
    *Are regular expression functions just not supported in interactive report filters?*
    thanks in advance
    Paul P

    Hi Paul,
    regular expression functions are supported in interactive report filters, but it looks like that REGEXP_INSTR hasn't been added as valid command. Only REGEXP_SUBSTR and REGEXP_REPLACE are valid commands for computation expressions and REGEXP_SUBSTR, REGEXP_REPLACE and REGEXP_LIKE for row level filters.
    I have filed bug# 12926266 to fix this issue. Sorry for the inconvenience.
    Regards
    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

  • Interactive Report filters

    When applying filters to an interactive report, they are treated as logical AND statements. For example, "fieldA is equal to X" AND "fieldB is less than Y."
    Is there a way to have these filters act as OR statements instead?

    Solved!
    Turns out that caching was enabled on this page. Disabling the caching solved the problem.

  • Reuse Interactive Report Filtering components

    Hi everyone! I wanted to create a change notification application with APEX. I'm planning to use the Interactive Report to enable the users build their own saved query using the filtering function of IR. I will provide an option for the user to subscribe (via email) for every query they want when their conditions has been met due to data change in the future. (ex. the user is waiting for some material delivery. This application will alert the user when it became available.)
    I want to use the filtering components from the Interactive Report (column selection, automatic operator availability based on column data type and the expressions box) for query building. Is this possible? Or if not, can I at least retrieve the "SQL WHERE clause" behind the Filter?
    Any ideas for this type of application? Thanks in advance!

    I've found it! I could get the SQL for the filters by using the APEX_APPLICATION_PAGE_IR_COND APEX view. I'm still not sure about the multiple user situation. But all the filter information are there! Great!
    APEX is magnificent! And I'm such a newbie.
    Thanks!

  • Interactive Report Filtering apex 3.2.1

    Hello there,
    I've been searching around for some time and I can't seem to find much on filtering saved reports.
    For example I have a report which displays information on a set of organisations and depending on the user, they can only see their own allocated organisations reports.
    However, if someone saves a report (i.e. create a sort on details and save it as a saved report), it shows up on another person's interactive report as a saved report despite looking at a different organisation's details. Is it possible to only show saved reports to people who created the report for a particular organisation?
    Apologies if this is somewhat confusing.
    Thanks for your time!
    Stef
    Edited by: SHuth on 01-Sep-2010 04:21

    Hi,
    As I understand and tested, saved reports are visible only for that user who saves it.
    Developer can save default report, that is visible to everybody.
    I do not know where start looking your problem. But it sounds something relating your authorization
    What kind authorization you use ?
    Is page public ?
    Regards,
    Jari

  • Pass Interactive Report Filters into Form

    Hi there,
    I've got a set of interactive reports which act as a drill-down through information. At each level there is a "Create" button, which presents a form for creating an item at the bottom level. The user does not have the ability to change the filters.
    For the top level, showing an empty form is fine. However we would like it if at the lower levels the values which have been filtered are passed into the form.
    Sort of like:
    Companies -> Create [New Employee]
    - Divisions [Company = Company] -> Create [New Employee - Company = Company]
    -- Location [Company = Company; Divsion = Division] -> Create [New Employee - Company = Company; Division = Division]
    if that makes any sense?
    Cheers,
    Andrew
    Edit: I've tried using IR_[Name] and #IR_[Name]#, no effect (unless I'm doing it wrong)
    Edited by: ad13 on 12-Aug-2009 02:38
    Edited by: ad13 on 12-Aug-2009 02:39

    Hi Andrew,
    It makes no sense to me. Are you saying that e.g. you select marketing department and then on the page navigated to your query shows people in the marketing? Or it automatically sets that persons department to marketing so when clicking "create" the user doesnt have to specify a department? If so then have a hidden item on the new page e.g. :P2_DEP. The previous page will send have a link on the department column which passes the value to this item. The insert statement (for create) or select query (for a report) will use this item as a basis for their process.
    If neither then explanation take 2 =)
    Mike

  • To reference Interactive Report filtered rows in PL/SQL

    Hello All,
    I am using an interactive report on a page. I want a page process to reference the rows filtered dynamically by an end user. The report to be referenced is not saved but merely filtered from the primary report.
    How do I reference the filtered rows in pl/sql. I have searched through the forum and can't find a concise answer.
    Br,
    Ben.

    Hi Trent, Jari, Ben
    Update the IR's SQL to include APEX_ITEM.HIDDEN(1, primarykeyfieldname) || firstdisplayedfieldname columnheading and then use APEX_APPLICATION.G_F01 to loop through the results using PL/SQL to get the primarykeyfieldname values displayed and retrieve the rest of the data from there if necessary.
    That will still require that all records are displayed, though.
    Something like: http://apex.oracle.com/pls/apex/f?p=267:237
    The SQL is:
    SELECT APEX_ITEM.HIDDEN(1, EMPNO) || EMPNO EMPNO, ENAME
    FROM EMPand the process is:
    DECLARE
    vTEMP VARCHAR2(4000);
    BEGIN
    vTEMP := '';
    FOR x IN 1..APEX_APPLICATION.G_F01.COUNT
    LOOP
      vTEMP := vTEMP || APEX_APPLICATION.G_F01(x) || CHR(13) || CHR(10);
    END LOOP;
    :P237_SELECTED := vTEMP;
    END;which just outputs the EMPNOs showing on the page into a Display Only page item.
    Andy

  • Interactive report filtered by date/time ?

    Hi All,
    I have an interactive report in my application.
    Sql query of the report having start date ,end date column name.E.g.The values of start date and end date are like 16-NOV-2009 12:00AM and 16-NOV-2009 12:00AM.
    I have 2000 records in my report.
    When I go to Filter on the column, I can only pick the Date and not the Time. Is there a way so I can enter Date/Time as the Filter?
    I need your help.Please suggest some solution.
    Thanks,
    Ramya.

    Hi All,
    Apex gurus please suggest some solution.Is it possible to do this below task?
    In an interactive report
    Click actions -> click filter -> select 'Start date' ||select operator 'between'||select click expression calender.
    In the calender ,i want to display bath time and date.If its a user defined item like P2_START_DATE then i can set the format mask and check the date and time ,but its a in built one!! appearing from Action menu.
    Am using APex 4.0,Is it a known apex issue or we can do it by adding some custome code or plugin?
    Thanks
    with Regards,
    Ramya.

  • Interactive Report filtering with hidden item column names

    I have created an Interactive Report and changed some of the default column headings by using hidden Items with appropriate title. However, when I look at the filter option in the "Gear" drop-down, the only column names which appear are the default ones. There are blank lines for the columns using hidden Items. Any suggestions for having the hidden item content appear in the filter column name list?
    Thanks,
    George

    George,
    What is it you're actually trying to do here? Maybe there's an easier way?
    Hidden items aren't going to show up in the Column List.
    I'm guessing you're trying to separate a long list of column names using '----------' or something like that? We're looking to do just that in our application, but obviously we don't want to users selecting these dummy entries. We tried using the IR column groups, but those make the list look even more cluttered IMHO. (Plus setting the sort order w/in the groups doesn't seem to affect the drop-down column lists, which seems counter-intuitive to me).
    If anyone has other suggestions for breaking up the column list display, I could use something immediately (going into beta-test in 2 weeks!).
    Thanks,
    Stew

  • Interactive Report Filtering

    I have a requirement for a few things, but they all can be achived by using the same page. I have an interactive report, and I was wondering if there is a way I can programmatically apply a filter to it if certain options are chosen.
    Example: This is an order list... if they click for open orders... I'd want to filter for open without having to click on teh filter on top.
    any guidance?
    thanks,
    Scott

    Scott,
    Here's the link:
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#BABDHIDJ
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Clearing Interactive Report filters without clearing report settings

    APEX 4.0
    Oracle 10g
    I have an IRR, the report is saved as primary for displaying 200 rows at at time for each page (Page 3) The customer can filter upon many columns and can use mutliple filters through the Action -> Filter Column.
    Our requirement is:
    1. To clear all filters on the iR page with a button
    2. To clear previously visited Page 3 filters when this page is displayed again
    The closest option I have found is utilizing the "apex_util.ir_clear(p_page_id => 3)". Besides clearing the filters (which is what I want, it also resets the rows per page count of the IRR to 15.
    I need a way to prevent and keep the Saved IRR with rows per page set to 200.
    Any suggestion would be appreciated.
    Thanks,
    Ed.

    Does this help?
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/app_comp.htm#BABEJEBJ
    I would look at using the URL to clear the IR and then to reset the number of rows (this is just a guess because I don't see it documented at the above link) I would use your typical session state substitution that you would do in a URL or page branch to reset the value of page item "apexir_NUM_ROWS" (it appears that Apex generates that select list with a HTML ID of "apexir_NUM_ROWS") to &apexir_NUM_ROWS. So hopefully that'll clear your page but then reset the number of rows to whatever it was.
    All just a guess but give it a try.

  • Interactive Report - filtering with the "IN" operator

    Hello,
    I have a column in an IR that is a concatenated field (Last Name, First Name MI). When filtering on this field using the IN operator, it returns the correct record if one value is chosen, but if more than one value is chosen, no data is returned. It's as if it is performing an OR statement instead of an AND.
    Any suggestions on how to troubleshoot or resolve this issue?
    thanks,
    Matt

    Mike - That's correct.
    Varad - I'm not sure how I was missing that.
    This concatenated field in the select statement looks like this:
    (c.LAST_NAME||', '||c.FIRST_NAME||' '||c.MI) AS Prov_Full_Name,The values in the table are:
    LAST_NAME = 'Brown, LMHC'
    FIRST_NAME = 'James'
    MI = 'L'
    LAST_NAME = 'Riggins, LMFT'
    FIRST_NAME = 'John'
    MI = 'D'
    The debug gives this WHERE clause:
    "PROV_FULL_NAME" in (:APXWS_EXPR_VAL1_3, :APXWS_EXPR_VAL2_3, :APXWS_EXPR_VAL3_3, :APXWS_EXPR_VAL4_3, :APXWS_EXPR_VAL5_3, :APXWS_EXPR_VAL6_3)The debug also shows the IR binding:
    0.04: IR binding: ":APXWS_EXPR_VAL1_3"="APXWS_EXPR_VAL1_3" value="Brown"
    0.04: IR binding: ":APXWS_EXPR_VAL2_3"="APXWS_EXPR_VAL2_3" value="LMHC"
    0.04: IR binding: ":APXWS_EXPR_VAL3_3"="APXWS_EXPR_VAL3_3" value="James L"
    0.04: IR binding: ":APXWS_EXPR_VAL4_3"="APXWS_EXPR_VAL4_3" value="Riggins"
    0.04: IR binding: ":APXWS_EXPR_VAL5_3"="APXWS_EXPR_VAL5_3" value="LMFT"
    0.04: IR binding: ":APXWS_EXPR_VAL6_3"="APXWS_EXPR_VAL6_3" value="John D"It looks like the comma that the users are putting into the last name may be the issue, but not positive.
    Do you have any thoughts on how to resolve this?
    Thanks,
    Matt

  • Interactive Report with additional search filters

    Hi all,
    I want to implement a functionality where I have an interactive report which comes with default Search / Filter option , but I also want to have additional filters which are drop-downs in this case and based on the values selected from the drop-down lists , report displays the values ! How can I implement this functionality where after selecting a value from the drop-down list and then further using interactive report filter to retrieve the results.
    Below is my SQL
    select * from Atoms_FULL
    WHERE (:P6_ANO IS NULL OR ANO = :P6_ANO )
    OR (:P6_ATYPENAME IS NULL OR ATYPENAME = :P6_ATYPENAME)
    When I implemented this , only the interactive report filters are working but not the customized filters WHICH ARE :P6_ANO AND :P6_ATYPENAME (Drop-down Lists)
    I hope I have made the question clear. Let me know if you need any more clarifications.
    Would really appreciate if anyone can help in this issue asap.
    Thanks,
    Rads

    What version of apex are you on?
    You have to set the session state of page items, this can be achieved by adding your items as comma seperated into the Page Items to Submit attribute, This attribute is available under Interactive Report region source, Dynamic Actions etc.
    Thanks,
    Vikram

  • Using Interactive Report Selection In A Procedure

    I want someone to be able to select a set of rows using the interactive report filtering capabilities. Then I want to use the data from the selected rows in a procedure. Is there some way to obtain the query being used by the report; or, in some other way obtain the rows that are selected?
    Thanks much,
    Rick.

    Hi Rick,
    Information about the IR reports are stored on tables that can be accessed through the following views:
    APEX_APPLICATION_PAGE_IR
    APEX_APPLICATION_PAGE_IR_CAT
    APEX_APPLICATION_PAGE_IR_CGRPS
    APEX_APPLICATION_PAGE_IR_COL
    APEX_APPLICATION_PAGE_IR_COND
    APEX_APPLICATION_PAGE_IR_RPT
    The ..._COND one may be most useful but you should check all of them. I haven't tried doing this myself but I think others have - a search on this forum may help there.
    Andy

  • Interactive Report with Checkbox column

    Hello everyone,
    our users love the Interactive Report filtering, so they want all forms in apps. to behave like Interactive Reports.
    I need a form where each row consists of 2 columns and a checkbox, that handles some flag. I can create checkboxes using APEX_ITEM, however, the filtering on such column look ridicolous. I would like to have a tabular form (with one editable checkbox column), but with all those Interactive Report filtering features.
    Is there any example (or inspiration) how to achieve such functionality?
    Thanks a lot!
    Adam

    Hello Adam,
    Why don't you just switch off the Filtering option for that column?
    (Go to the Interactive Report, click on your column, then in Column Definition you can (un)check the features for that column).
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

Maybe you are looking for

  • E63 & E71- Music player's equalizer does not work ...

    I would advise to all the owners of the E71 and E63 that Nokia disenable the equalizer of the music player when you put the headphones in appliances. After updating the unit note that the equalizer only works with the sound of the speaker and the equ

  • Can't open Gmail with Windows 8.1 (still works with I.E., and this wasn't a problem on Windows XP)

    Hi! I've switched from Windows XP to 8.1. I've installed Firefox, but when I try to access gmail, I get a message that says gmail can't be opened because I need to disable cookies. I don't want to disable cookies, and this was never a problem before.

  • VAT Query for sales in spain

    Hello, Can SAP 8.8 deal with sales invoices to spain, specifically with something call a 'pharmacy scheme'. I'm informed that there are two elements to the VAT under this scheme. 1) Value added Tax. (18%)  2) Equivelance VAT (4%). Does SAP deal with

  • PSe 8: Clips in timeline/sceneline not showing in project view.

    IN Photoshop Elements 8 I have a clip in my timeline/sceneline that is not showing up in Project view nor does it have the "P" in the bottom right corner in Organizer view. I thought that project view is supposed to display all scenes currently in th

  • Thursday is the last day to vote for your favorite authoring tool

    Hi, folks. Thursday, January 6 is the last day to vote for your favorite authoring tool! WritersUA is inviting help authors to participate in it's annual tool survey. http://www.surveymonkey.com/s/tools_survey It's not long, just a page. I'd encourag