Whether the report IR filter is defined

Apex 4.2

I have an interactive report that returns a large number of lines. Is there a way to detect if the user has entered a filter? I have to be able to do this so that if they did not enter a filter then do not run the query.

I can make sure the first call of the report does not run the query, but I really need this to be more intelligent that it detects if they are entered in a filter or a search criterion that limits the number of rows as there are a several ways for the user to run the report without refreshing the page to which means that all rows are retrieved.

I know that you can use apex_util.r_filter to create a filter, but y at - it a way of knowing what is already set?

There is an urgent need for all advice would be very welcome.

Kind regards

Jeremy

Hi Jeremy,.

You can use the code in the thread below. As fac586 suggested, I also used APEX_APPLICATIOn_PAGE_IR_COND

Re: Audit of an interactive report (Page by Page access)

BR,

Patrick

Tags: Database

Similar Questions

  • Interactive report uncheck filter when you add the new filter

    Y at - it all possibliity to uncheck all filters that are already defined in an interactive report when you create a new filter?

    My first approach by adding a dynamic action that is bound to the search field:

    key_down = event
    jQuery Selector = #apexir_SEARCH
    scope = live event

    The Action contains:
    $('input:checkbox').attr ("checked", false);

    At present, there are 2 problems:
    1. when the user presses 'go' or 'enter' the check box is checked again when the result is displayed
    2. If a filter is defined when the search box is not used, it does not work

    Hi Oliver,.

    too many problems I think. You can try to hack any POST message, analyze it, and if it's p_widget_action = FILTER stop action and interfere with an AJAX to APEX_UTIL call. IR_FILTER or IR_RESET. After the AJAX request was returnd (synchronous), you can start again the original MESSAGE that defines the new filter.

    Hmm. sounds to me like you'd better ask the customer if he is willing to pay for this kind of convenience.

    Greetings from Germany from the North,
    Andreas

  • In cascade LOVs (APEX 4.1) problem, using in the report does not define values

    Hello

    I use APEX 4.1.0.00.32 and I have a simple report as

    SQL :*

    SELECT * in the region
    Region WHERE the like '% "| P3_REGION | » %'
    and country like "%" | P3_COUNTRY | » %'
    and the city like '% "| P3_CITY | » %'

    Elements:*.

    P3_REGION:
    Select a separate region as d, r of the region of the region

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.

    P3_COUNTRY:
    Select distinct country as d, r of the region of the country where region =: P3_REGION

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.
    Cascading LOV Parent article (s): P3_REGION

    P3_CITY:
    + select distinct city, city as the region r, whose country =: P3_COUNTRY

    Display the Null value: YES
    Value null, display value: - Select -
    Return value of NULL: + 0 +.
    Cascading LOV Parent article (s): P3_COUNTRY


    The LOVs work very well and the correct values are displayed if cascade through them

    So, I want to the last step to filter the report with the values that were selected in the lovs. And that I does not.
    I tried to add a button with the SUBMISSION of the page. After choosing values in all the LOVs and by clicking on the button SUBMIT page supports, alle LOVs are disabled (with value - select-) and the report shows all lines.
    I tried to change the "redirecting to Page 3" button and setting the values P3_REGION, P3_COUNTRY, P3_CITY P3_REGION., P3_COUNTRY. & P3_CITY. but without success.
    I tried to use the 'Page Action time value' parameter to 'Validate' or 'redirect and set' for all the element LOVs or only the last element LOV, but then the cascade of the LOVs is not working properly and the report does not change.

    I am confused as I Don t know what I can do so far. I think this should be a condition easy limit/filter the report with the values in the LOVs.
    In addition, it should be possible to choose only the LOV region and then limit the report with this region (not select country and city)

    Thanks in advance!

    I had a problem similar to a previous version, fixed when I updated element Source value or Expression (the section of the Source) to himself.

    I mean:
    for the P3_REGION, defined as & P3_REGION element.
    for the P3_COUNTRY, defined as & P3_COUNTRY element.
    for the P3_CITY, defined as & P3_CITY element.

    It will be useful.

  • When I export the report to EXCEL files and filter the data, it will display incorrect data

    Hi experts,
    In OBIEE 11.1.1.6, when I export the report to EXCEL file and open this file to view all the data, it is correct.
    However, as the amount of data is so, so I add filter for each column (click on the sorting-> filter filter)
    When I select data in the filters, I'm afraid that I find the value of 'White' in the last line in the filter area, but in the table, there no null data. Why? Are you facing the same issue?
    Secondly, when I select a value, it will generate a data line.

    For example:
    2008 - Region1
    -The region.2
    -Elle3
    2009 - Region1
    -The region.2
    -Elle3


    When I select 2008 data in EXCEL, it will display unexpected data, as below:
    2008 - Region1

    Exactly... If you export to the format you will not face question of null data or incorrect when filtered.

    Kind regards
    DpKa

  • Security filter not applied to the report run thorugh Ibot offer

    Hello gurus,

    The user when you run a report through OBIEE offer is able to see data (not clearance).

    But when you run the report even if OBIEE answers, the security filter is applied.


    Regarding!

    Do not place anything in the first tab of provides. Make user visibility as default n it will work

  • Rank function without filter in the report

    Hello

    I have a problem with the Rank() function. The problem is the following.

    I have a table with this train:

    The user | DATE | Cost

    User1. 02/12/2011 | 10.4
    User1. 13/02/2011 | 11.1
    User1. 13/02/2011 | 10.1
    User1. 13/02/2011 | 8.1
    User2. 02/12/2011 | 1, 4
    User2. 13/02/2011 | 12.1
    User2. 13/02/2011 | 22.1
    User2. 13/02/2011 | 8.1

    The RPD, I have a line of agregate under SUM (COST) and I need extract ranking you of this SUM (COST) by the user, user1 is 39.7 and the sum of user 2 is 43.7. If I show in the report of all users, the ranking is good rank = 1, rank = 2 by user1 and user2 but the problem is that I only want to show the User1, when I add a filter to the report user = 'user1', the rank value varies from 2 to 1. I need that the ranking value doesn´t change when I introduce a filter.

    Any idea on how to solve this problem?

    Thank you

    Hi Antonio,.

    On the rank in the answers column, modify the formula as shown below.

    Case where username = "user2" so Rank (sum (cost)) 0 otherwise end

    Then apply a filter on the column rank by rank > 0.

    I hope this helps you.

    Concerning
    AP

  • 10g - hide, the report contains the oracle user-defined function

    Hi, experts,

    of http://obiee101.blogspot.com/2008/07/obiee-cache-management.html

    Reasons why a request is not added to the Cache:



    •The-cacheable SQL element. If a SQL query contains Current_Timestamp, Current_Time, Rand, Populate, or a parameter marker, then it is not added to the cache.

    •The-cacheable table. Physical in the Oracle BI Server repository tables can be marked "cacheable". If a query refers to any non-cacheable table then the results of the query will not be added to the cache.

    •Cache hit. In general, if the query gets a cache hit on a previously cached query, then the results of the current query are not added to the cache. The exception is query that is aggregated at winding hits hits.

    Result set is too large.
    Query is canceled. This can happen by explicit cancellation of Oracle BI Presentation Services or Administration, or implicitly through timeout tool.

    •Oracle BI Server is clustered. Queries coming into family "seeding cache" spread in the whole of the cluster. Other queries continue to be stored locally. Therefore, even if a query may be cached on the Server BI Oracle 1 node, it can not be on the node Server BI Oracle 2.




    I would like to know
    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Thank you very much!

    Hello stephen,.

    If the application (report on the dashboard) calls a function defined by the user to oracle, the cache can be created and saved for this report?

    Yes, it is cached... function defined in the database is called OBIEE is cached and saved.

    More information and example can be found here http://oraclebizint.wordpress.com/2007/09/10/oracle-bi-ee-10133-support-for-native-database-functions-and-aggregates/

    Hope this helps you. Check answers to any other questions you have posted?

    By,.
    KK

  • The most recent date in the report filter.

    Hello

    I have a report with a date column. I would like to run the report for the most recent date. I want to add a filter to the report that retrieves data for the latest in date. What would be the best method to use in the filter. Please notify. Thank you.

    You must first determine what the column that contains the dates on which you want to filter. Say so you have a Date of treatment column containing dates transactions are processed.

    (1) add this column in your workspace.

    2) click this column filter button, and then click Advanced Options > convert this filter in SQL.

    (3) after the name of the column, enter MAX (date_column). So you will have:

    "Table name". " "Date column ' = MAX ("Table name". ("' Date column")

    Now the chances are that you will have a lot of reports who need the "latest date" filter. Therefore, you should really do is built that filter in the repository and expose it as a filter registered for all to use.

  • Issue using the presentation as filter condition variable in reports

    Hello

    I have a problem using the variable presentation as a condition of filter in my reports, the details are the following:

    Details:
    --------------
    We want to implement the Max and Min variable through variable presentation only.we are unwilling to apply it in this case through session variables.
    We have two variables MIN and MAX to be used as Variables of presentation, to a column of the report (which is a quantity), so that the user wants to see the data in this column in a particular range.i.e the Min and the Max.This part was well put in place. The question is when the user wants to see comprehensive data. In this case we will spend not all values of these two variables of presentation or in other words we do not limit the data in the report so we do not any value to the variables, it's when the report is throwing the error. We want to leave this empty variables in this case.but is in error.

    Please suggest how can I overcome this problem.


    Thanks in advance.

    Kind regards
    Praveen

    Hello
    Don't forget to assign points before closing the thread

    Thank you
    saichand.v

  • Trying to get Windows user name before loading the page for the report filter

    Hello

    I have a page element I want to switch to Windows user using this in the HTML page header

    var WshNetwork = new ActiveXObject("WScript.Network");
    $s ('P1_TEMP_USER', WshNetwork.UserName);

    I call the function using onload = "getWindowsUserid (); ' the body HTML page

    Gets the value, but it comes after the page is rendered for my report cannot use it. How can I get this value set before the traffic report?

    I also tried to use $a_report ('R4346513312800348', '1','1 ', ' 1') to refresh the report but seems not to do anything, no errors, but my section of the page is always set to null.

    As I said article is planned, but I think that it's too late. If I do a view source of the element does not have the value, but if I look at the State of the session, I see the value, and if I refresh the page then the report sees. I hope it's just an order of emission events. Please advise.

    Hello APEX_MAN,

    You can also create a Page 0, define an element hidden in an HTML area on it and place region the region HTML Source:

    
    

    Then you should be able to use P0_REMOTE_USER throughout the application.

    'Course, which will be executed with each page is rendered. If it is a concern, then another idea is to point a page that is guaranteed to be hit before hitting some of your report pages, like the connection or the House - but be careful of the process 'reset the cache of the page' (like most login pages).

    Hope this helps,
    John

  • link to the interactive report with filter

    I tried to put in place a link to an interactive report in passing along a filter setting using the method described in the user guide. I've tried everything I can think of to make it work, but the report always ends by displaying as unfiltered. I don't get any errors, I don't see any filtering. I tried to directly modify the URL and adding the filter data (that is, add IREQ_ParentSeqID:2 to the URL) and I also tried to pass the filter data by creating a branch from another page and have the branch collar data. In both cases, I was unable to make it work. When I create the filter directly in the report, it works fine. Here is a sample
    URL: / f? p123:1302:3440331697632217:no:IREQ_ParentSeqD:2

    The URL takes me to the correct page but no filtering occurs. Here is the definition of the column in the interactive report:
    Column name: ParentSeqID
    Column type: NUMBER

    I'm under APEX version 3.2.0.00.27

    Dale,
    What happens if you remove the EQUALIZATION of the setting? Theoretically, it shouldn't matter, but I always send my equals as just IR_COLUMN and it works fine.

    You can try f? p = 123:1302:1023072115021841:NO:IR_ParentSeqID:25

    and see if that makes a difference? Just a shot in the water.

    If this does not work, try to delete the alias for the moment and sending the column full name and see if that makes a difference. I wonder if its because your alias is in a specific case (per the "")

  • How to have the filter query/dialogue opened when the report is launched in the workspace?

    Is it possible to have a default value for the report to prompt the user for a value of filter/query when the report is opened in the workspace? Currently, when a report is released, it will display data from the previous report instance.

    Not really.

    You could put a limit/filter on the query Section and then change to limit/filter Variable.

    You want to add the following code in the Scripts of the bqy

    "" "ActiveDocument.Sections ["Query"]." Process()

    where the query is the name of the Section application to deal with.

    When the file is opened, you should get the limit/filter dialog box and when the value is supplied the query will run and update the data for you

    hope this is what you need to do

    Wayne

  • How to allow the user to filter the report data?

    I read a lot of entries on this topic related to interactive reports. From what I can tell, the version we are on... 3.0.1.00.08, does not have the 'classic' vs 'interactive '. So, can someone recommend the best way for me to allow the user to filter report results? Specifically, the user wants to be able to see only active records, but I also want that they want to see all documents (active and inactive).

    Thank you
    Kristina

    Kristina,

    You can add a list "select" to your page. Calling it something like P1_LIST and add it to your where clause as...

    select
    col1,
    col2,
    col3
    from table
    where col2 = decode (:P1_LIST, '-1', col2, :P1_LIST)
    

    You can set the LOV to auto-submit or have a 'Send' button so that your report is filtered according to the value of P1_LIST.

    Also, in the properties of your selection list, set the 'Null view' to 'Yes', 'Display Null value' to something like 'ALL' (or whatever text you want) and the "Null return value'-1 (or whatever value you have in decoding).

    I hope this helps.

    -Chris

  • Zoom on chart to the report - filter does not report value

    Hi, I created a graphic for the type of item.  I would like to click the chart element, and it brings me to the report point but filtered by item type.  Currently, he clicks through but not filtered by type of item but pulls the whole report.

    I'm following the general syntax:

    The syntax of the URL of a link is:

    f? p = App:Page:Session:Request:Debug:ClearCache:itemNames:itemValues:PrinterFriendly

    My specific link of the syntax is:

    Select ' f? p = & APP_ID.:2 :'|| : app_session |': P2_hw_type_id: "link,

    HT. Model label,.

    Count (h.ID) value1

    from h, hw_type ht hw

    where h.hw_type_id = ht.id

    Ht.model group

    Where am I missing the operation passes the value clicked in the report?

    TIA

    Pass information through the parameter is only half of the work, as you have discovered you need to add a clause where clause to limit the rows.

    If you want to return the results, if the value is not given, a solution is to use a where clause such as clause:

    where mycol. = coalesce (: P1_PARAM, mycol.)

  • Serch filter in the report

    Hello
    I apply the search filters on the report. I created two date items: P57_GL_F_DATE and: P57_GL_T_DATE. I wrote the code in report record search between dates but who does not work. How can I do this?

    Work with apex4.1
    select gl_date from AP_SUPPLIER_INVOICES_V where (GL_DATE BETWEEN :P57_GL_F_DATE AND :P57_GL_T_DATE or :P57_GL_F_DATE is null and :P57_GL_T_DATE is null)
    When I click on the search button to search report, it show massage no data found in the report.
    What changes to do in this report so that it works?

    Hi najet.

    Cast of the binding variable (which is actually a string) to a date format probably solve your problem.

    So assuming that the date on the screen format is DD_MON-YYYY statement might look like:
    Select gl_date in the AP_SUPPLIER_INVOICES_V where (GL_DATE BETWEEN TO_DATE(:P57_GL_F_DATE,'DD_MON-YYYY') AND TO_DATE(:P57_GL_T_DATE) or: P57_GL_F_DATE is null and: P57_GL_T_DATE is null)

Maybe you are looking for