Getting active filter conditions from interactive reports

I have been having trouble with how to properly get the filter conditions that a user has applied to an interactive report. I have tried to get at this information using the Apex defined view APEX_APPLICATION_PAGE_IR_COND. However, the problem I am running into is if the user ends their session without first removing their filter conditions, those conditions remain in this view the next time (and any future times) the report is accessed. I can not seem to determine how to tell which filter conditions are actually active in the report. Any help would be greatly appreciated.

I've done several tests, and the results I'm getting are not like that, if it were there would be no problem. The exact steps I'm doing is setting an arbitrary filter on an interactive report, and then logging out. When I log back in the view still shows those filter conditions, but no records are filtered on the actual report. I've tried this on two separate installations of apex (one 3.1, the other 3.2) and the results are the same. Is this irregular? Or has anyone else found a workaround for this.

Similar Messages

  • Get condition from interactive report

    Hi all!
    I have an interactive report.
    After the user has set some filter conditions I would like to write the ID's of the selected datasets into a table.
    This should take place in an "after-submit-process" in pl/sql.
    Something like:
    INSERT INTO #OWNER#.log_table (OBJT_ID) VALUES (SELECT ID FORM #OWNER#.source_table WHERE
    ":APEX_REPORT_CONDITION");
    My question:
    Is there an apex-object like ":APEX_REPORT_CONDITION"?
    Thanks for your help!
    Kai

    Hi Jari,
    thank you for your reply. But I need s.th. different:
    If I load my report-page and display "Debug" the SQL behind the report looks like:
    select
    null as apxws_row_pk,
    +"ID",+
    +"NUMBER",+
    +"TITLE",+
    +"ENTRY_DATE",+
    +"PRIOPRITY",+
    +"PROBABILITY",+
    count(*) over () as apxws_row_cnt
    from (
    select  *  from (
    select
    r.ID,
    r.NUMBER,
    r.TITLE,
    r.RPRI_NAME,
    r.ENTRY_DATE,
    r.PRIORITY,
    r.PROBABILITY
    from #OWNER#.MY_TABLE r
    where r.usr_name = :APP_USER
    +) r+
    where ("PROBABILITY" = :APXWS_EXPR_1*
    and "PRIORITY" = :APXWS_EXPR_2)*
    +) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)+
    +0.44: binding: ":APP_USER"="APP_USER" value="USER"+
    +0.44: IR binding: ":APXWS_EXPR_1"="APXWS_EXPR_1" value="(10-50%)"+
    +0.44: IR binding: ":APXWS_EXPR_2"="APXWS_EXPR_2" value="Hoch"+
    +0.44: IR binding: ":APXWS_MAX_ROW_CNT"="APXWS_MAX_ROW_CNT" value="10000"+
    As we can see, apex put an own select-statement around the original statement.
    What I need is the part in bold letters and the APXWS_EXPR_x-values. How can I get it?
    Has anyone any ideas? Thanks in advance!
    Kai
    Edited by: user610935 on Nov 25, 2009 11:27 PM
    Edited by: user610935 on Nov 25, 2009 11:27 PM

  • Remove Filter Type from interactive report

    Hi
    is it possible to remove the Filter Type option from an interactive report?
    We don't want to give users the option to select the filter type.
    Many thanks
    Paul

    Hi Paul,
    I don't think you can remove that option. You can hide it. There are several ways to do this, but they would involve css styling. In your page's HTML Header setting, add in:
    &lt;style type="text/css"&gt;
    label[for="apexir_FILTER_TYPE"] {display:none}
    #apexir_FILTER_TYPE.radio_group {display:none}
    &lt;/style&gt;Note that older versions of IE will not handle the first style, but that's just the label. The actual radio buttons are hidden by the second style
    Andy

  • Retrieving sort and filter criteria for interactive report

    I have developed a test management system in APEX. Users log in and see an interactive report with their assignments. Each test they've been assigned occupies one row.
    There is an "Execute" link for each row that takes the user to the test execution page, where they can see the input steps / expected results and report the test passing or failing.
    I've implemented "Next >" and "< Previous" buttons on the execution page, so the user can immediately go forwards or backwards in his assigned tests without having to return to the assignments page and click the Execute link on the next or previous row.
    The test execution page figures out what the next and previous assigned test is using the LAG and LEAD functions, like this:
    lag(assignment_id) over (order by ref_num_full) prev_id,
    lead(assignment_id) over (order by ref_num_full) next_id
    Notice that I've "hardcoded" the over clause to be the reference number of the test.
    The problem here - this solution ignores any custom sorts or filters the user has put in place on the assignments (interactive) report.
    Is there a way I can "grab" the interactive report (1) sort criteria and (2) filter criteria dynamically? I'm thinking I could then use dynamic SQL to build an OVER clause used in the lag/lead calls so that the application now follows whatever sort and/or filter criteria the user has put in place.
    Any help is greatly appreciated...thanks!!

    Thanks WTine!
    I took a look and determined
    - I can get the sort criteria from the APEX_APPLICATION_PAGE_IR_RPT view (SORT_COLUMN_# and SORT_DIRECTION_# columns)
    - I can get the filter criteria from the APEX_APPLICATION_PAGE_IR_COND view
    Regards, Rich

  • Issue in using presentation variable as filter condition in the reports

    Hi,
    I have an issue in using presentation variable as filter condition in my reports the details are as follows:
    Details :
    We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
    We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
    Please suggest how can I overcome this issue.
    Thanks in Advance.
    Regards,
    Praveen

    i think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
    Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report.

  • Create Filter on an Interactive Report in a Link

    Hello,
    Here is info on my environment:
    Database: 10.2.0.1.0
    O/S: Windows XP
    APEX: v3.2.1
    I am trying to use the IR<operator>_<target column alias> feature to filter the linked Interactive Report. The feature does not seem to work. Does this feature work on a 10g database?
    Background:
    I am building the application (AnyCo Corp) described in the _2 Day + Application Express Developer’s Guide_ . On page 4-27 the section titled "_Linking a Column Value to Another Page_" describes linking from the Department report to the Employee report with the Column Link item IR_DEPARTMENT_ID. The link did not work, however.
    The included APEX Users Guide discusses this feature. The path to the relevant section is: Home > Adding Application Components > Creating Reports > Editing Interactive Reports > Linking to Interactive Reports. The Guide describes the string IR<operator>_<target column alias> with lots of operators.
    This is a neat feature. Unfortunately, no matter how I try to use it, it does not work. What am I doing wrong?
    Leon

    Check out these blog postings from the APEX Dev Team:
    http://anthonyrayner.blogspot.com/2008/07/dynamic-date-filtering-in-interactive.html
    http://dpeake.blogspot.com/2008/03/advanced-interactive-reports.html

  • Download data from interactive report

    Hi all. I'm on apex 3.1.1.00.09.
    I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB.
    I would know if I must configure my apex in order to download correctly in pdf and if I must configure it in order to download in doc and xls format.
    Thanks all for collaboration,
    Fabrizio

    Thank you for your reply.
    I am able to download the csv file, but my problem is: I don't want the column headings to show.
    Is it possible to download only the data, not the column headings?

  • How to get the \filter directory from registry (or other) during installation of the plugin

    Hello
    I made a script to install the plugin because it needs some libraries to be installed as well, but during the installation, the filter directory isn't defined (it isn't the same for each platform or language)
    for example my filter folder is :
    E:\Program_Files\Photoshop CS2\Modules externes\Filtres
    how do i get this filter directory from registry (or with another way)
    thanks a lot
    Jeff

    sorry i made a little mistake (didn't poste the updated version of my code)
    here is the right code:
    [Code]
    var
      maxnb8bf : Integer;
      maxDirectory:        String;
      nb8bf : Integer;
      PreviousDirectory:        String;
    procedure ProcessDirectory (RootDir: String; Progress: Boolean);
    var
    NewRoot:        String;
    FilePath:        String;
    FindRec:        TFindRec;
    n1 : Integer;
    n2 : Integer;
    begin
    NewRoot := AddBackSlash (RootDir);
    if FindFirst (NewRoot + '*', FindRec) then
    begin
    try
    repeat
    if (FindRec.Name <> '.') AND (FindRec.Name <> '..') then
    begin
    FilePath := NewRoot + FindRec.Name;
    if FindRec.Attributes AND FILE_ATTRIBUTE_DIRECTORY > 0 then
    ProcessDirectory (FilePath, Progress)
    else
    begin
            if (NewRoot <> PreviousDirectory) THEN
            begin;
               if (maxnb8bf < nb8bf) THEN
               begin;
                   maxnb8bf := nb8bf;
                   maxDirectory := PreviousDirectory;
               end;
               nb8bf := 0;
            end;
            n1 := Pos('.8bf', FilePath);
            n2 := Pos('.8BF', FilePath);
            if ((n1 > 0) or (n2 > 0)) THEN
            begin;
               nb8bf := nb8bf + 1;
            end;
            PreviousDirectory := NewRoot;
    end;
    end;
    until NOT FindNext (FindRec);
    finally
    FindClose(FindRec);
    end;
    end;
    end;
    function InitializeSetup(): Boolean;
    var
      V: string;
    begin
      if RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Photoshop.exe', 'Path', V) then
        MsgBox('Value is "' + V + '"', mbInformation, MB_OK);
      Result := TRUE;
       maxDirectory := '';
       nb8bf := 0;
       PreviousDirectory := '';
       maxnb8bf := 0;
       ProcessDirectory (V, true);
       //if (maxDirectory <> '') THEN
       // begin;
       //      MsgBox('Value is "' + maxDirectory + '"', mbInformation, MB_OK);
       // end;
    end;
    function NewTargetDir(Param: String): String;
    begin
      Result := maxDirectory;
    end;
    Regards

  • Get ROWIDs from Interactive Report

    Hi,
    I'm using an interactive report but I'd like to use the rows returned in a process so is it possible to get the rowsids that have been selected and make up the filtered report
    Thanks Andy

    A little trial and error using Andy ATD's suggestions gave me the following query, which I can use to recreate the selected ROWIDs:
    SELECT /*c.interactive_report_id, report_id, application_user, report_name, */
    CONDITION_COLUMN_NAME as col_name, CONDITION_OPERATOR as col_operator,
    CONDITION_EXPRESSION as exp1, CONDITION_EXPRESSION2 as exp2,
    CONDITION_ENABLED AS enabled,
    LAST_UPDATED_ON as date_mod
    FROM APEX_APPLICATION_PAGE_IR_COND C
    WHERE c.application_id = :APP_ID
    AND c.page_id = :APP_PAGE_ID
    AND c.condition_type = 'Filter'
    AND application_user = :APP_USER
    AND condition_enabled = 'Yes'
    and report_name is null -- Just show current working report
    AND trunc(last_updated_on) = trunc(sysdate)
    ORDER BY last_updated_on desc, report_id;
    This gives results like:
    COL_NAME     COL_OPERATOR     EXP1     EXP2     ENABLED     DATE_MOD
    ASK_AMOUNT_CURRENT     between     2500     10000     Yes     03-DEC-08
    PREF_CLASS_YEAR     =     1968     -      Yes     03-DEC-08
    - Stew

  • Can I link from Interactive report Page 1 to Master Detail page 2?

    Hi folks-
    I know how to create a Page as an Interactive Report; it creates 2 pages automatically (primary page with the great interactive bar) and a 2nd page that's a single record.
    I know how to create a Page as Master Detail, whereby I get a tabular list without the super interactive bar, and I can select a record, and get transported to a nice page with 2 regions (master on top, detail on bottom).
    I want to have the First page from the Interactive Report, select the record, and go to the 2nd page of a MasterDetail.
    Do I create the Interactive Report, and customize the 2nd page, to add a region?
    Or, do I create both page types, and redirect from the 1st page of the Interactive Report to the DML Form from the MD report? I tried that, re-assigning the link from the Interactive Report to be a Link to Custom Target, and specify the page # of the Master-Detail page. And it is taking me to the right page, but the data from the selected row is not coming with me, and the detail in the bottom region is not appearing at all.
    Can someone please give me a nudge as to the sequence I should be doing?
    (As you can tell, I'm new to Apex.... I'm trying to use it to create a prototype or proof-of-concept for a database driven web application)
    Thank you
    Marion

    Yes, I tried that after I wrote to you - and it's fine, but not what I'm after; it's only based on 1 table and I'm working with 2 tables.
    Perhaps I can explain in better.
    I want one page as an interactive tabular report (of the master records)
    I want to select a row, and transfer to a page that has the corresponding row on top (as a form), and a tabular region below of records from a related detail table.
    ie, I want page 1 from the Interactive Report, and page 2 of the Master Detail report.
    OK - I just took the form page, and added a region below in a tabular report. And I'm getting the data, but I'm getting all the records (not just the ones associated with the single record on top. I figure I need to edit the Region Definition->Source (to specify that the id numbers need to match), but the code is not editable.....
    So I am in Structured Query Attributes, and I've Modified the Join Conditions - but I still get all the detail records in the bottom region. I''m trying to add in the ( + ) qualifier, but it doesn't affect anything...
    I'm soo close to what i'm trying to do!
    Thank you for your continued patience and assistance
    Marion
    here's the Source I have for the region..... (I'm including the excess ID columns just for learning purposes)
    SELECT
    "PHONENUMBERS"."PHONE_ENTITY_ID" "PHONE_ENTITY_ID",
    "ENTITIES"."ENTITY_ID" "ENTITY_ID",
    "ENTITIES"."FIRSTNAME" "FIRSTNAME",
    "ENTITIES"."LASTNAME" "LASTNAME",
    "ENTITIES"."COMPANY" "COMPANY",
    "PHONENUMBERS"."PHONE_ID" "PHONE_ID",
    "PHONENUMBERS"."PHONETYPE" "PHONETYPE",
    "PHONENUMBERS"."PHONENUMBER" "PHONENUMBER",
    "PHONENUMBERS"."PHONECOMMENT" "PHONECOMMENT"
    FROM
    "PHONENUMBERS",
    "ENTITIES"
    WHERE ENTITIES.ENTITY_ID = PHONENUMBERS.PHONE_ENTITY_ID
    Edited by: mtpaper on Oct 12, 2009 1:30 PM
    Edited by: mtpaper on Oct 12, 2009 1:32 PM

  • Apply OR clause in dynamic filter on an interactive report

    Apex ver - 4.2
    I have a requirement wherein I have to apply filter on interactive report. I have to apply filter which will change depending upon different conditions. So I created a PLSQL process on "On Load Before Region"
    For e.g if condition is --- status = 'Open' and Approved = 'Yes'
    I can write a PLSQL process with code as:
    apex_util.ir_filter(p_page_id => 1, p_report_column=>'Status' p_operator_abbr=>'EQ', p_filter_value=>'Open');
    apex_util.ir_filter(p_page_id => 1, p_report_column=>'Approved' p_operator_abbr=>'EQ', p_filter_value=>'Yes');
    But these filters have AND logical operator
    What can I code if I want OR condition i.e.
    status = 'Open' OR Approved = 'Yes'

    Check out these blog postings from the APEX Dev Team:
    http://anthonyrayner.blogspot.com/2008/07/dynamic-date-filtering-in-interactive.html
    http://dpeake.blogspot.com/2008/03/advanced-interactive-reports.html

  • APEX 4.0: error while opening a XLS file downloaded from interactive report

    Hi,
    I'm getting below error while opening a XLS file downloaded from an interactive report (APEX 4.0).
    "The file you trying to open, 'customer_2.xls', is in a different format than specified by the file extension.
    Verify that the is not corrupted and is from a trusted source before opening file. Do you want to open file."
    Yes No Help
    May be this one Apex 4.0 issue.
    please help me.
    Thanks
    Mukesh

    Hi,
    is the next part of the code correct.
    What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
    You can also try below link..
    Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
    Hope this helps.
    Regards,
    -Sandeep

  • Error opening PDF downloaded from Interactive Report

    hi -- I'm getting an error opening a PDF file downloaded from an interactive report.
    I've seen on the forum that this could be related to the size of the file, but I've tried
    this out on 10-row results (1k files) and it's still an issue.
    I save the file to my file system. If I try to open it in Adobe Reader, I get:
    File does not begin with '%PDF-'
    and
    Adobe Reader could not open <filename>.pdf because it is either not a supported
    file type or because the file has been damaged (for example, it was sent as an email
    attachment and wasn't correctly decoded).
    If I try to open in Internet Explorer, I get:
    File does not begin with '%PDF-'
    Other users are having the same problem. Download to csv and open in Excel works fine.
    Do I need to have special print attributes for this? I didn't think so... I'm just using the defaults
    (response header = report settings, content disposition = attachment).
    Ideas?
    Thanks,
    Carol

    Hi,
    I'm having the same problem that was described above, and my site does have BI Publisher installed, and it does successfully produce readable pdfs for many reports.
    But there are other reports, even reports produced using the Apex Wizard and all defaults, that just keep producing the same Adobe Reader error reported above, ie
    "Adobe Reader could not open <filename>.pdf because it is either not a supported
    file type or because the file has been damaged (for example, it was sent as an email
    attachment and wasn't correctly decoded)."
    Any suggestions?
    Cheers,
    Peter

  • Send E-mail from Interactive Report, mulitple e-mail addresses

    I am using Apex 4.1. I would like to enter multiple e-mail addresses in the TO field of the download, e-mail section of an interactive report. To be clear when I click on download from the actions menu of an interactive report and choose E-mail, you are presented with the form that has To, CC, BCC, etc. I would like to enter multiple e-mail addresses in the TO text box. I have tried separating them with semi-colons, commas, and even spaces. Whenever I enter two addresses, I do not get any mail. How can I address an interactive report to multiple e-mail addresses. Thank you so much.

    Hi,
    We misread the documentation and the Actions > Download > Email option does not support multiple email addresses, I have tried it on my workspace and it is throwing ORA-29279: SMTP permanent error: 553 5.1.3 which is because of unsupported multiple emails.
    In this doc says that it is allowed to use multiple emails under
    Actions > Subscription (and this is entirely different from above)

  • Error in exporting from Interactive Report to PDF format

    Hello,
    i am using APEX and from an Interactive Report i am trying to export using Download | PDF format. The table and corresponding report has only text fields. Database character set is UTF-8. Up to now i haven't been able to get a PDF file that can be open from Adobe Acrobat Reader. Every file fails opening with message like "Adobe Reader could not open filename.pdf, because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). This happens for every report i have tried up to now. If i export report in CSV format all are ok.
    Is there a known bug with PDF download of APEX?
    TIA

    See this link: http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    FOP & Cocoon are free (just need to install the software and configure) Bi Publisher I believe works only for Standard Reports and no Interactive reports at this time.. If you have the $$ BI Publisher is worth the investment!!
    Also, it is rumored that APEX 4.0 will have the PDF generation built in as apposed to the current model where you need to bolt something on..
    Thank you,
    Tony Miller
    Webster, TX

Maybe you are looking for

  • Problem with burning Ken Burns effect on iDVD

    When I preview a slideshow on iDVD after setting the theme to Ken Burns, it looks great. When I burn the project onto a DVD however the Ken Burns effect disappears and I'm left with static photos. What's going on?

  • IDOC to Flat file and Flat file to IDOC

    Hello Experts,   I have the following requirement in my current project: Third Party Sender sends the data in the in the below XML format via HTTP: <?xml version="1.0"?> <fxEnvelope>   <header>     <message>       <exchangeID></exchangeID>       <mes

  • Usb devices cash mac book pro?

    hi i recently did a system update on my mac. after doing so when i try to plug the usb cabel to my printer or a flash drive into my computer a dark veil comes down telling me to restart my computer. However if i plug in my ipod it works perfectly fin

  • This is very frustrating I can't cancel my Plan

    I would Like to please cancel my plan and I'm stuck in a loop of calling the 1-800 number and them telling me to do it online and trying on the chat online I get no other options to cancel I've follow the "how to" and still can't cancel. Please cance

  • Script listener for Bridge?

    Sure would be nice to have a script listener plug-in for the Bridge. Is there one available? Larry