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.

Similar Messages

  • Getting interactive report settings

    Hi!
    Is there any way to get interactive report setting via pl/sql or javascript? Like current control breaks, highlights, custom columns etc.

    Hi Andrei,
    You can get all the settings from the APEX views with prefix APEX_APPLICATION_PAGE_IR.
    Machaan

  • Reset interact report settings when deleting a filter

    If I filter an interactive report and still have many values.. I click show all rows..
    I have 100 or so rows on the page.. then if I delete the filter. the report and my browser lock up while the entire database table is pulled, couple minutes..
    is there a way to have the all rows reset back to the default number per page when the filter is removed..

    You could try delete the cache in recovery. That fixes a multitude of problems.

  • Saved interactive reports

    Joel has a nice writeup about how saved public interactive report settings are handled when applications are moved around.
    Some questions...
    Since the IDs of all of the application meta data have changed, all of your users' customized reports in the previous version of the application are forever left orphaned until they're cleaned up by an internal APEX batch process
    1. Which batch process is this referring to? One of the jobs in dba_scheduler_jobs setup during the install process? Which one exactly? Is there any documentation on all the jobs installed and what each one does?
    2. Is there a way to run these jobs manually as a one-off/adhoc activity without waiting for their scheduled run? I tried logging in as SYSTEM, setting the security_group_id and running apex_040000.wwv_flow_maint.daily_maintenance and apex_040000.wwv_flow_cache.purge_sessions but that didn't seem to do anything that I could tell. Do they have to be run as SYSDBA?
    Upon import of a new version of the application, all meta data associated with application 645 is first deleted except the Customized Interactive Reports. In essence, these are left "dangling" until the new application 645 is installed.3. I found that when an application is deleted using the Builder Delete Application wizard, even the saved interactive reports are deleted. I am not sure I see why this is so. An application could be deleted in error and restored from source control but the user saved IR settings are gone for ever! May I suggest that the wizard be changed to not delete the saved reports?
    Thanks

    Bump

  • Interactive Report -- Clear Filters -- How?

    I am running into a very weird situation. I created an interactive report and it is working fine.
    Unfortunately, I applied a “Filter” criteria that would make the SQL query run for 4-5 hrs and then the result will come back.
    In this case, I close the browser and went back to the same page (interactive report). I noticed that it still remembers my filter criteria and re-issues the same sql query and I don’t get control of the page. I checked the sql query in TOAD – Session Browser.
    How do I clear the filter criteria? It looks like this interactive page is unusable till I am able to reset my filter criteria.
    Any help would be appreciated.
    Ajay

    I understand that there is a "Reset" button, but the page will not be displayed as APEX is trying to be smart and tries to run the same "run-away query" when I try to go back to the same page.
    And because of this, my browser will not even display the "Actions" button.
    The page is stuck between a rock and a hard place.
    Ajay

  • Clear Filter on Interactive Report

    I created an application in Application Express 4.2.0.00.27.  Four of the pages have interactive reports.  I applied the filter to the report on page 46 to show only rows with LAST_NAME LIKE ‘%JONES%’ and the rows are filtered correctly.  When I navigate to the calling page 12 and then back to page 46 the filter is still in effect.  The clear cache on the calling page 12 is checked.  Is there a property of the page or report which will clear the filter on page 46? 

    See Linking to Interactive Report in the documentation.
    To reset an interactive report in a link, use the string "RIR" in the Clear-Cache section of a URL. This is equivalent to the end user choosing the Reset option from the interactive report actions menu on the target page. The report is returned to the default report settings specified by the developer or saved by the user.

  • Clearing Interactive Report, custom authentication problem

    I have written my own custom authentication for my apex app. It calls a custom function in the db that looks in a table for user/password. It works fine. Login works and when I save sort order for standard reports, they are saved between sessions.
    However, for my interactive report the sort orders on my Interactive reports are being reset each time the user gets a new session id.
    I'm not sure why this is happening. Any suggestions or ideas on why this happens when I don't use 'user cookies' (standard apex login)?
    -Thanks,
    -Ben Goodwin
    Edited by: r0ckflite on Jan 26, 2012 4:19 PM

    Hi r0ckflite,
    are you sure you press on action (at report) --> save report --> change save "as named report" to "as default report settings" primary should be already marked the press Apply
    this should work iam pretty sure...
    regards,
    blacksev

  • 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

  • Date Filtering With Equals and Time in Interactive Reports

    Using Apex 4.2.0.00.27
    I have a date column in an Interactive Report. The default column and action menu filters include things like "in the last 2 hours". If I remove the time component of the date this fails to find any records.
    If I leave the time component in the date then the user also has the option (via action->filter menu) to select a filter for "equals" and then this fails to find any records.
    I would like to keep the time component but also allow the filter for "equals a specific date".
    Greg

    adamt wrote:
    Thank you very much fac586!
    It's probably obvious I'm not very familiar with APEX (not HTML/CSS!) but managed to figure out a place to put what you said...If you are unfamiliar with the web technologies used in APEX, spend some time on the tutorials here: start with HTML, then XHTML, CSS, Javascript and the HTML DOM, and now HTML5.
    I appended the following in the template definition section for "Region without Buttons and Titles" and the Interactive Report looks how the users want now! I should probably take a copy of that template and only use it for the relevant IRs so that nothing else gets messed up.There are 3 ways to include CSS in web pages. The easiest is using an internal style sheet as you've done, but where you've put it is <a href="https://forums.oracle.com/forums/thread.jspa?messageID=10178616&#10178616">invalid according to the HTML specification</a>. The page HTML Header property in the APEX Page Attributes is the appropriate place for such style sheets. However ff you want to apply these styles globally across your application then that's not a scalable approach as it involves modifying every page with an IR. The standards-compliant approach is to modify the required page templates, either to include an external style sheet containing these overrides, or (more ambitiously and efficiently) copying and modifying the theme files in a different location and changing the page templates to reference them.
    <style type="text/css">
    .apexir_WORKSHEET_DATA th div {
    margin-left: 0;
    .apexir_WORKSHEET_DATA th,
    .apexir_WORKSHEET_DATA td {
    border: 1px solid #CCCCCC;
    </style>Always post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and special characters.

  • Pass IR Filters to Interactive Report

    I am calling my Interactive Reports from a menu with IR filters ('SCHOOL' and 'YEAR') being passed to the report. I'm wondering if the interactive report queries all the data first and then applies the IR filters (which would be a performance problem). I ran the report in debug, but I'm not really sure how it evaluates the SQL. Does anybody know how passing IR filters to report work in the execution of the SQL?
    select
    null as apxws_row_pk,
    "ATTENDANCE_CODE",
    "ATTENDANCE_CODE_DESC",
    "PK_ID",
    count(*) over () as apxws_row_cnt
    from (
    select * from (
    select A.PK_ID as "PK_ID",
    A.YEAR as "FK_YEAR",
    A.FK_SCHOOL as "FK_SCHOOL",
    A.ATTENDANCE_CODE as "ATTENDANCE_CODE",
    A.ATTENDANCE_CODE_DESC as "ATTENDANCE_CODE_DESC",
    C.SCHOOL_YEAR as "YEAR"
    from "#OWNER#"."SCHOOL_YEAR" C,
    "#OWNER#"."SCH_BASE" B,
    "#OWNER#"."ATTENDANCE_CODE" A
    where B.PK_ID = A.FK_SCHOOL
    and C.PK_ID = A.YEAR
    ) r
    where ("SCHOOL" = :APXWS_EXPR_1
    and "YEAR" = to_number(:APXWS_EXPR_2))
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    order by "ATTENDANCE_CODE"

    Stew
    The information was not specific to rewrite, I was merely trying to show how tracing could be enabled to determine what the optimizer is doing (which was appropriate to the rewrite question). It will also show you the query actually being performed and the execution plan.
    This information would allow you to see the query being passed to oracle by Apex and what predicates are in the query passed, which would go some way to answering the original question.
    To your question a'n oracle SQL query is an oracle SQL query' - I'm not quite sure what you mean. Two differently constructed queries over the same tables, returning the same results can differ wildly in performance. Understanding the optimizer and the decisions it makes will change the way in which you write queries.
    I've generally found out that the best way to determine what happens behind the scenes is to have a look. Getting information from the experts is fantastic, but working it out yourself or even just testing to confirm the answers you are given helps understanding even more.
    Ben
    Looking at the rownum clause, it will speed up the query if the ORDER BY clause is removed. If you are ordering the results, the entire result set must be returned first in order to get the first x rows. Without ordering, this is required.
    Edited by: Munky on Jan 16, 2009 3:51 PM

  • Interactive report column filters to display differently than column values

    Greetings...
    We use images a lot in our interactive reports to provide a visual representation to a status, or something locked for update, or what-have-you. By default, when a user clicks the column heading of a column which contains images, the drop-down list that shows up displays the actual images, which is nice for the user to identify exactly which thing they want to filter on. The problem is when the user selects on of the options in the filtering drop-down, the resulting condition that is displayed under the interactive report search bar is the HTML code of the image. I'd like something else to display there because showing the user the HTML code is atrocious.
    I didn't think what I want is possible, but then I came across the Page Locks page within ApEx (page 4000:291 in ApEx 4.0.1) which displays a list of all the pages of an application and whether they are locked or not. It also allows you to bulk lock or bulk unlock a bunch of pages. That page uses an interactive report with a column called "Status" which contains images that represent whether the page is locked or not. When you click the "Status" column heading to filter, instead of seeing the images of an open and closed lock, you see the words "Page Locked" and "Page Unlocked." And even better... when you select on of them, the condition that is displayed to the user is very user-friendly.
    Can someone tell me how this is done so I can replicate it in my own apps?
    Shane.

    Why not create the IR using the text you require e.g. 'Lock', 'Unlock' and then use JQuery to replace the text in the report with the image you want. All the filters should then show the plain text and the report will display the image. e.g.
    http://apex.oracle.com/pls/apex/f?p=46801:1
    Here's what I did:
    Firstly make sure the IR has a region template.
    Then create a Dynamic Action with the following attributes:
    1. Advanced
    2. Event: After Refresh
    3. Selection Type: Region
    4. Region: [select the IR Region]
    5. Action: Execute JS Code
    6. Fire on page load: [checked]
    7. Code:
    $('td [headers="TEST"]').each(function(index) {
      if ($(this).text() == 'Lock') {
        $(this).empty().html('<img src="/i/htmldb/icons/locked_small.gif" alt="Lock" />');
      else {
        $(this).empty().html('<img src="/i/htmldb/icons/unlocked_small.gif" alt="Unlock" />');
    });Where TEST is the column name.
    That's it, this may also be of interest:
    http://simonhunt.blogspot.com/2011/10/adjusting-interactive-report-column.html
    I hope it helps
    Shunt

  • Is there a way to do a "OR" with filters of an Interactive Report?

    Hi,
    I've noticed for a long time now that when you apply filters on an Interactive Report, they are applied on top of each other. But there is no way to apply them in an 'OR' fashion it seems. Unless I am mistaken.
    Now I know that you could apply a Row filter and do something like B = 'Something' OR B = 'Something Else', but the that isn't user friendly enough for my clients.
    Thanks

    You can, it's just not easy.
    Under Actions, select Filter. Change from a column filter (the default) to a row filter. This lets you put in pretty much anything you want for your filter, including things like "A=3 or A=5". This is one area where knowing SQL can be beneficial for users of APEX.
    Ignore that; I hadn't read your message closely enough before posting.
    -David
    Edited by: David Gale on Dec 20, 2010 11:34 AM

  • Adding Every Row From a Filtered Interactive Report to a Collection

    I'm creating an email list maintenance application in Apex 3.1. I have an Interactive Report on an email address table. I want the users to be able to run this IR and then click a button to add all of the resulting email addresses into a selected mailing list table. The interface needs to be as quick and simple for the user as possible, so I don't want to force them to click a checkbox beside hundreds of rows.
    Is there a way to add every resulting row from a custom IR to an apex_collection?
    I know that collections can be created based on a query with the CREATE_COLLECTION_FROM_QUERY call. But I don't think it's possible to reference the SQL statement which is dynamically generated through an Interactive Report. I'm referring to the SQL created after the user has applied filters. If there were, then I would just create the collection that way. Please correct me if I'm wrong.
    Thanks,
    Martin

    Hi Martin
    I couldn't find a place where the filters are stored either - it would be nice to know.
    It is possible to get to the filters via javascript as they are actually stored in a table with an id of "apexir_CONTROL_PANEL_COMPLETE". Within there, there are rows for each filter and each row has four cells. The second cell contains an A tag that has the filter itself as the text displayed as a hyperlink on screen. The third cell contains the checkbox that enables/disables the filter. Strings and numbers seem to be formatted ok, so you could pick up these values and create your own WHERE clause, populate a hidden field somewhere and then pick that up to generate a full select statement to get to the id's that you need.
    I haven't yet tried this, so this is theory only - but I can't see that it wouldn't work
    Andy

  • Interactive Report (IR) column heading: filtered items number & flashlight

    Hello everyone
    several hours of searching through the forum did not provide me with leads or answers to 2 questions. Both are related to the IR column heading menu and options. Let's start with a copy of the relevant portion of the interactive report help screen:
    Column Heading Menu
    Clicking on any column heading exposes a column heading menu.
    [snip]
    Text Area is used to enter case insensitive search criteria (no need for wild cards). Entering a value will reduce the list of values at the bottom of the menu. You can then select a value from the bottom and the selected value will be created as a filter using '=' (e.g. column = 'ABC'). Alternatively, you can click the flashlight icon and the entered value will be created as a filter with the 'LIKE' modifier (e.g. column LIKE '%ABC%').
    List of Unique Values contains the first 500 unique values that meet your filters. If the column is a date, a list of date ranges is displayed instead. If you select a value, a filter will be created using '=' (e.g. column = 'ABC').
    Q1: Why do I not see a flashlight icon? I looked everywhere in the report definition to "enable" it, to no avail.
    Q2: Although we've found IRs to be incredibly useful and embraced by end users, we are having issues when dealing with large datasets. Let's look at searching for people's first/last name in our CONTACTS table. The table is ~28,000 names long. If one attempts to use Column Heading menu to "filter" for any name outside the first 500 unique values, the search does not work. Yes, I know that a workaround is to use Actions Menu icon filter... but, it sure is misleading to have a search which does not go beyond letter B in the list of last names. Furthermore, I do not see a way to DISABLE Column Heading Text Area, and avoid user confusion.
    I suspect that "List of Unique Values contains the first 500 unique values" was set for the performance purposes. Is there a way to set that number anywhere? Have it customized for each column? (columns county and state could be <100, for example)
    Thanks an advance to any advice.
    Vojin

    @Prabodh: what you say is only changing the default image for the column selector at the search bar level. What i think is being looked for is an icon on the popup when a column header is clicked in an IR. Don't bother: there is none.
    @Vojin, Tonibony:
    I also ran into this problem with IRs and the useless column header box. If you want to hide the unique values list, it is a bother. First of all, you can't disable the finding of values, this is embedded in the widget ajax code. Then if you want to just hide the list, there is no real event you can hook up to. The poping up of the box is an ajax callback, and is part of the IR javascript, but this callback does not trigger any event (no apexafterrefresh for example, which is understandable). I've worked around this by overriding/extending the method which is called when ajax is done loading within the IR code. Here is a piece of code which does this (call it on page load):
       // _Finished_Loading is called when the IR is done with a GET action
       // because the posts are synchronous in this report, and no events
       // or hooks are available, the best way to preserve functionality
       // yet extending it is to override the original function, yet
       // keep the base code
       // apexafterrefresh cant be used since it is not triggered after
       // the widget ajax
       var or_Finished_Loading = gReport._Finished_Loading;
       gReport._Finished_Loading = function(){
           //overriden, but still have to call orinigal!
          or_Finished_Loading();
          //SORT_WIDGET is the widget containing all the header elements
          if(gReport.current_control=='SORT_WIDGET'){
             // hide the original dropdown box
             $("#apexir_rollover_content").hide();
       };If you're interested, i've recently developed a plugin for use in my interactive reports which works around some of these limitations. For me, the headers are much more userfriendly than the actions > filter menu. So what i've done is: hide the orignal dropdown, and turn the searchfield into an autocompletion field, which will progressively search through the distinct column values in the IR with ajax. I've even made an option to have the searching behave like a "contains" or a "like". I'm working on a post about it, with background, documentation and source code. I'll add a post here when i finish it up, you can see if that helps you.
    I also would like to add a button later on which will simply add the entered value as a "like %value%" filter. I know how to do this and what to do, i'm just a bit short on time at the moment. I actually think that adding the button in the layout may be the hardest part... :')

  • Interactive Report Column Heading Filters using LIKE instead of =

    Still on APEX 3.1
    I have an inter active report with a column Like Below
    select case when trunc(c.resp_contact_dt, 'MM') = trunc(sysdate, 'MM') or trunc(c.oth_contact_dt, 'MM') = trunc(sysdate, 'MM') then '<img src="/i/contact_2_green.png" alt="RESP A: ' || to_char(c.resp_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.resp_contact_dt, 'MM/DD/YYYY') ||'
    ' || 'OTH A: ' || to_char(c.oth_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.oth_contact_dt, 'MM/DD/YYYY') || '">'
    when trunc(c.resp_attempt_dt, 'MM') = trunc(sysdate, 'MM') or trunc(c.oth_attempt_dt, 'MM') = trunc(sysdate, 'MM') then '<img src="/i/contact_2_yellow.png" alt="RESP A: ' || to_char(c.resp_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.resp_contact_dt, 'MM/DD/YYYY') ||'
    ' || 'OTH A: ' || to_char(c.oth_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.oth_contact_dt, 'MM/DD/YYYY') || '">'
    else '<img src="/i/contact_1_red.png" alt="RESP A: ' || to_char(c.resp_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.resp_contact_dt, 'MM/DD/YYYY') ||'
    ' || 'OTH A: ' || to_char(c.oth_attempt_dt, 'MM/DD/YYYY') || ' C:' || to_char(c.oth_contact_dt, 'MM/DD/YYYY') || '">' end as Contact,
    This column header has an User defined LOV
    select '%green%' d,
    '<img src="/i/contact_2_green.png">' r from dual
    Union select '%red%' d,
    '<img src="/i/contact_1_red.png">' r from dual
    union select '%yellow%' d,
    '<img src="/i/contact_2_yellow.png">' r from dual
    When user select my Red image from the column header link
    the filter generates where contact = '%red%' This fails
    Is there a way to generate the filter contact like '%red%' without the user having to change it to like.
    Is this possible in 4.0?

    I am assuming Because of the crickets either I am doing my SQL to incorrectly and there is a better way to return get a popup with a changing image into an interactive report
    or
    There is no way to do what I am trying

  • How to show only  filtered rows in  download file of Interactive report

    I have an interactive report.
    If i filter column A and don't want to show column A in the download spreadsheet or PDF(NVL(:REQUEST,'column A') NOT IN('XLS','PDF'). All of the rows will show up in my download file. How could i show just filtered rows in the download file and also don't show the filter column?
    Thanks,
    Jen
    Edited by: Jen Hu on Nov 22, 2010 2:54 PM

    HI,
    For example your model node is CountryModelNode and the value node binded to table is CountryValueNode then:
    int sizeCountryModelNode=wdContext.nodeCountryModelNode().size();
    for(int iCount=0;iCount<sizeCountryModelNode;iCount++)
       if("IN".equalsIgnorecase(wdContext.nodeCountryModelNode().getCountryModelNodeElementAt(iCount).getCountryCode())
       || "US".equalsIgnorecase(wdContext.nodeCountryModelNode().getCountryModelNodeElementAt(iCount).getCountryCode()))
        IPrivateCountryValueNode.ICountryValueNodeElement element=wdContext.createCountryValueNodeElement();
        element.setCountryCode(wdContext.nodeCountryModelNode().getCountryModelNodeElementAt(iCount).getCountryCode());
        element.setCountryName(wdContext.nodeCountryModelNode().getCountryModelNodeElementAt(iCount).getCountryName());
       wdContext.nodeCountryValueNode().addElement(element);
    Note: Bind CountryValueNode to the table:
    Regards,
    Charan

Maybe you are looking for

  • Confirmation of balance - urgent

    Hi, We are using print program SAPF130K and SAPF130D for vendor and customer respectively. My query is can we bring even the cleared items alongwith the open items in the same print program??? Now we have line items of open line items only?? As per o

  • MS 6147 max memory and disk sizes

    For the MS 6147 can anybody confirm the max Hard disk size and max memory.   It will not recognise the 40Gb HD I am trying to fit, and only recognises half of the 256Mb memeory simm I have fitted. The BIOS version is 1.9 but I think that is a 'specia

  • How to creater dynamic form in Acrobat 9

    Can I make a form that will dynamically add pages (with header and footer) when needed in Adobe Acrobat 9 and if so where is the best documentation on how to do this?

  • Entity Framework vs NHibernate, which is better

    I currently use ADO.Net and I would like to switch to Entity Framework, but my co worker uses NHibernate and says its more mature than Entity Framework. I just wanted to get opinions on the difference between the two and which one is better (easier t

  • How do I get the truetype font to show the actual font in the font list

    I am trying to find an option somewhere in Yosemite, where I can elect to have the font list show the actual font face in list format.  It has been there prior to the Yosemite update, but now the list shows all fonts in the same font face.