Interactive Report - Date Filter Color Highlight SYSDATE Calculation

I have APEX 4.1.0.00.32. Straight forward items report, with a date field for when the item was added. I want to create a highlight filter (color highlights) for items added within the last week, called New Items
When I create the filter, it allows me to specify the name, color, etc., but the highlight date condition of "Added_Item > " only seems to allow for a specific date chosen from the calendar, whereas I want it to be "Added_Item > sysdate-7"
I haven't had any luck with TO_CHAR / TO_DATE functions around the sysdate-7. The filter just indicates Date YYYY-MON-DD HH24:MI is the expected format.
date functions not allowed? alternative?
Edited by: Alan10205659 on Mar 1, 2012 2:21 PM
Edited by: Alan10205659 on Mar 1, 2012 2:22 PM

Hi,
you could add new computation "Added This Week" (Format -> Compute), with Computation Expression:
case when sysdate- B < 7 then 'Y' else 'N' end
--B is my date column
Then you can add color highlight, with **Added This Week = Y
Additional you can even hide computed column (Action -> Select Columns)
You can check example on http://apex.oracle.com/pls/apex/f?p=60428:1
Username: demo
Password: demo
Regards,
Aljaz
Edited by: Aljaz on 2.3.2012 0:06
Edited by: Aljaz on 2.3.2012 0:15

Similar Messages

  • 2 Bugs found in V4 Interactive report Date filter

    I've noticed a couple of bugs when trying to create filter in an interactive report on a date column.
    1) There is no "=" operator available for dates
    2) There is no Year navigator for the date picker. This is essential for Date of Birth columns. I have to click the previous month button 12 times for each year...thats 720 times to get to 1950 !
    Paul P

    Hi,
    you could add new computation "Added This Week" (Format -> Compute), with Computation Expression:
    case when sysdate- B < 7 then 'Y' else 'N' end
    --B is my date column
    Then you can add color highlight, with **Added This Week = Y
    Additional you can even hide computed column (Action -> Select Columns)
    You can check example on http://apex.oracle.com/pls/apex/f?p=60428:1
    Username: demo
    Password: demo
    Regards,
    Aljaz
    Edited by: Aljaz on 2.3.2012 0:06
    Edited by: Aljaz on 2.3.2012 0:15

  • Special character in interactive report using filter

    Hi,
    I created an interactive report and in this report there is a filter to search any row from specific value linked to a specific column.
    As example this report displays a board with some columns like "SR number", "Status", "Description", ....
    If I use this filter with standard character all works fine :
    - in the filter's list of values I choose "Region" column
    - in the search field I put "SE"
    - click on go and the board is generated with all correct rows.
    If I use this filter with special character (french character in my case), this filter changes this special character and the request doesn't return any row.
    Example :
    - in the filter's list of values I choose "Statut" column
    - in the search field I put "Réception"
    - the filter's expression is modified from "Réception" to "Réception" so no row is returned (filter - Statut contains 'Réception' - no data found)
    I modified the character set used by the apex DAD changing the nls_lang parameter in the wdbsvr.app file from AMERICAN_AMERICA.WE8ISO8859P1 (database character set) to AMERICAN_AMERICA.AL32UTF8
    But when I check the apex DAD character set after the web server restart (about Application Express in my workspace) I get :
    NLS_CHARACTERSET: WE8ISO8859P1
    DAD CHARACTERSET: ISO-8859-1
    No change.
    I used the Application Express 3.2.0.00.27 with Oracle E-business Suite (11.5.10.2).
    Any help will be appreciated.
    Best regards,
    Olivier
    Edited by: oll on 1 mars 2010 20:57
    Edited by: oll on 15 mars 2010 21:17

    Hi,
    Thank you for your answer.
    But I already installed french language on apex.
    Unfortunately issue occurs yet.
    To install the french language I followed these steps :
    - I set the NLS_LANG to American_America.AL32UTF8
    - sqlplus sys/**** as sysdba
    - ALTER SESSION SET CURRENT_SCHEMA = APEX_030200;
    - and I executed the load_fr.sql script
    Thank you for your help.
    Best regards,
    Olivier

  • Link to interactive report with filter values containing : or %

    Hi,
    I have an application written in PL/SQL. The application takes input from users, and then constructs a URL for an interactive report, concatenating the user input as filter values for the report. Sometimes, the input values contain characters such as the colon (:) or the percent sign (%). In these instances, APEX appears to ignore the rest of the URL beyond the first colon or percent sign in the filter values. For example, in the following URL, the first filter value is "Oracle Database 11g: Workshop I":
    http://abc.oracle.com/pls/apex/f?p=129:8::::8,CIR:IRC_TITLE,IR_PROJECT_STATUS:Oracle Database 11g: Workshop I,Completed
    The Interactive Report displayed for this URL shows all courses whose title contains "Oracle Database 11g" -- in other words, more records are displayed than should have been if the complete set of filters were applied in the query (i.e., TITLE = Oracle Database 11g: Workshop I, and PROJECTS_STATUS = Completed).
    How should I construct the URL so that the colons (:) and percent signs (%) which may be part of the filter values are treated correctly?
    Thanks,
    Jenny

    Thanks to Joel Kallman, here's the answer:
    The ‘f’ procedure has a parameter named p_sep. This is the separator used for the arguments in the ‘p’ parameter in the call to the ‘f’ procedure. The default value for this separator is ‘:’, obviously.
    If you have data values that contain the separator, then you can use a different character for your separator (you may need to manually specify the URL instead of using the declarative link attributes of a column in a report).
    Using the pipe symbol ‘|’, I was able to take:
    http://st-curr.us.oracle.com/pls/apex/f?p=129:8::::8,CIR:IRC_ROWFILTER:Database 11g: Administration Workshop I
    and change it to:
    http://st-curr.us.oracle.com/pls/apex/f?p=129|8||||8,CIR|IRC_ROWFILTER|Database 11g: Administration Workshop I&p_sep=|
    which now works.

  • Interactive Report - Saved Filter

    Have an Interactive Report which will include a column which containing the email address of an employee and would like to create a saved filter on the report to filter on this column and reference the currently logged in users username.
    Owner =APEX_CUSTOM_AUTH.GET_USERNAME
    Not sure of the syntax to reference the user id of the active user in the saved interactive report. I have done something similar with classic reports by storing the user_name in a page item and referencing the page item in the SQL. This is a little different with Interactive report as I want to provide a series of Saved Filter users can pick from to filter the date in various ways; including seeing only 'their data'.
    Jason

    Jason,
    You could do this in the query:
    SELECT ...
    CASE WHEN UPPER(your_table.username) = :APP_USER THEN 'Y' ELSE 'N' END user_match
    Then put a filter on user_match = 'Y'
    regards,
    Malcolm.

  • APEX 4 Interactive Report set font color of negative values to red

    I have an interactive report with several columns containing numerical values. If the value is negative, I want the font color to be red. Can someone help me with this process please.
    Application Express 4.1.1.00.23
    Thanks!
    Chris

    Hi,
    Use build in highlight
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#sthref1343
    Then save report default layout
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDDDBCG
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Control on Interactive Report Data displaying

    Hi All,
    We are using APEX 4.0.
    Here are the few things that I am trying to accomplish -
    I have created a few interactive reports in different tabs. Each report takes 4 parameters from the screen, and the values get to carry to the next report.
    1. When users first come in to the tab, I don't want the report to be displayed until the SUBMIT button is clicked.
    Currently, we have created an item (dis_flag) and use 1 or 0 to control the display. But, the page always get requery after the users browsing to other tabs and come back. Any other methods that you can advise?
    2. Once the submit button is clickeded, the data should be kept on this page even after the users browsing around the application. No data should be change, until the SUBMIT button is been clicked again. Any ideas on this one?
    The reason that we don't want the report to be displayed first is because the data is huge, and if this is running at the first, some users maybe thinking that something is wrong on the page. That's why we want them to click on submit, so, they know they need to wait. Also, since the report can be huge, we don't want this to be re-query again and again while users are browsing around the application.
    Thank you for any advises that you can give!
    LC
    Edited by: LC on Sep 9, 2011 1:51 PM
    rephase the question

    1 . Put a condition on the interactive report to stop it running when you first display the page - I think you have done this already.
    2. Enable caching for that page (go to the Server Cache tab on Edit Page) - this will also need a condition so that you can actually refresh the report when you need to.
    This should make the browser use the cached version of the report (i.e. the one you ran originally) until you tell it not to.

  • Interactive Report uncheck Filter when adding new filter

    Is there any possibliity to uncheck all Filters which are already defined in a interactive report when a new filter will be created?
    My first approach started by adding a dynamic action which is related to the search field:
    event = key_down
    jQuery Selector = #apexir_SEARCH
    event Scope = live
    The Action contains:
    $('input:checkbox').attr('checked', false);
    There are 2 problems at the moment:
    1. When the user hits "go" or "enter" the checkbox are checked again when the result is shown
    2. If a filter is defined where the search field is not used, it doesn't work

    Hi Oliver,
    too much hassle I think. You can try to hijack any POST message, analyze it, and if it's about p_widget_action=FILTER you'd stop the action and interfere with an AJAX call to APEX_UTIL.IR_FILTER or IR_RESET. After the AJAX request has returnd (synchronously), you can fire the original POST again which sets the new filter.
    Hmm. Sounds to me like you'd better ask the client if he is willing to pay for that sort of convenience.
    Greetings from Northern Germany,
    Andreas

  • Interactive Report row filter item aliases

    When trying to use row filtering on an interactive report that selects over 100 items, the aliases are alphabetic for the report columns but once they get as high as FZ they stop and are all aliased as \\ and become unusable. Is this a limitation in the IR?? Has anyone gotten around this???
    Thanks,
    Andrew

    Jeff,
    Thanks again for the response and for looking into it. However, if I am not mistaken, the url in that excerpt does the same thing as the URL I posted except that you used IREQ_COLNAME instead of IR_COLNAME (which defaults to EQ I believe).
    I want to see if a value is in column a OR column b, etc. The "OR" is the all important caveat.
    I would settle for being able to pass a value to the IR's main search box (that searches all columns of all rows) if I cannot do a targeted row level filter on a few select columns.
    If anyone knows how to do either of those things, that would be great information to have.
    Thanks,

  • Download Interactive Report data does not match on-screen data

    Hi,
    I have a page which has a process which runs a query and returns a random % of rows from a table, and saves this into a collection.
    Then, based on the random rows, I want to select data from another table, where the rows match certain columns in the collection.
    I have created a query to select the data I want, and have it displayed in an Interactive Report region.
    The data on the screen is fine, but when I go to 'Dowload' the data to csv or excel from the Interactive report, the data is different.
    I have also created a normal report region with the same query, and when I download it from here, it works fine, so I know it has nothing to do with the query.
    Any ideas?
    Amanda.
    The process details are:
    Process Point: On Load - Before Regions
    Run Process: Once per page visit
    Then in the Interactive report query is something like:
    Select ..
    from
    DATA_TABLE c
    select
    c001 User_Id,
    c002 Account_No,
    c003 Transaction_Date
    from htmldb_collections where collection_name='PX_COLLECTION'
    *) d*
    where
    c.user_id = d.user_id AND
    c.account_no = d.account_no AND
    c.transaction_date = d.transaction_date

    Hi,
    This is because of web caching. You should invalidate the page caching in the access tab of page properties or you just change the page url with a dummy paramater like this
    http://domain/portal/page?_pageid=6,1,6_11&_dad=<dad>&_schema=<schema>&1=1
    Here &1=1 is a dummy parameter
    This will invalidate the cache and the page will be refreshed.
    Thanks,
    Sharmila

  • Interactive Report - default Filter

    I'm trying to create a report which would have a default filter (filter users can uncheck) which would be based on logged user :APP_USER
    in another words if user JIRI logs in and goes to a page, he can see by default all his records (one of my fields is called RECORD_OWNER), but he can also remove the filter and see all records if he wants to
    is this possible to have filter based on :APP_USER ?
    thank you
    jiri

    Jiri,
    You could make a check box item on the page which says something like "only show your records". lets say that item is called P150_checkbox and returns Y or N. then in your SQL statement you could put
    SELECT <columns>
      FROM <table>
    WHERE (RECORD_OWNER = :APP_USER AND :P150_checkbox = 'Y')
        OR  :P150_checkbox = 'N'
    {code}
    Is that What you are looking for?
    Tyson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Interactive Report - Date Format

    Hi,
    I created an interaticve report, in which one of the column is date picker data type. However, it's not showing the hour and minutes even though I chose the "DD-MON-YYYY HH:MIPM" format mask.
    Does any one know why this it? Thank you very much for the help!

    Hi Chris,
    I tried to replicate this, but could not. Now granted, I tried this using the new "modern" method of controlling the default application date format via the new application Globalization attribute "Application Date Format". I set the Application Date Format to fmMM/DD/fmYY and my IR on EMP worked just fine.
    If you can replicate this on apex.oracle.com (using Application Date Format), I'd be happy to take a look at it.
    Joel

  • Displaying different colors for cells/columns in Interactive Report

    Hi,
    I have a requirement to display just the 'cells' in the Interactive Report columns with different colors.
    There are 3 columns in the Interactive report.
    The color coding for all the 3 different columns should be such that:
    <40% - red color
    40-70-orange
    greater than 70%-green
    I tried the highlight option in the report and saved the report as default, but still the color condition ended up getting displayed to the end user. I dont want this.
    Can someone suggest a better way to handle this requirement?

    Perhaps explore similar solutions described here
    Background Colour of Report Cell Issues.
    Scott

  • Interactive Report with Calculated Aggregates - possible?

    I'm search for a possibility to create an aggregated column that is simply a computed value of two other aggregates.
    Example
    This how the basis data can look like
    Orderitem  | price |  no.
    A          | 100   | 3    
    B          | 10    | 1     The interactive report allows then to create a calculated column "total price" (price*no.) and some aggregates.
    Orderitem  | price |  no. | total price
    A          | 100   | 3     |  300
    B          | 10    | 1     | 10
               |       | sum: 4 | sum: 310I now want to create an additional aggregate line for column price holding the AVERAGE price.
    If I add such a column the result is (100+10) / 2 = 55 which is wrong from a business perspective.
    The correct value should be: 310/4 = 77.5.
    And the result would look like this
    Orderitem  | price     |  no. | total price
    A          | 100       | 3     |  300
    B          | 10        | 1     | 10
               | avg: 77.5 | sum: 4 | sum: 310Is is somehow possible to create this using only the interactive reports features? Without reprogramming regions or the base SQL.
    I can do it using pure SQL solutions. However the end users don't have the knowledge how to create such complicated queries.
    Edited by: Sven W. on Jul 3, 2009 3:22 PM
    Edited by: Sven W. on Jul 3, 2009 5:02 PM

    Btw. I mentioned that I can do it in pure SQL. Let me share this solution. Problem is that it is not interactive anymore.
    SQL> set timing off;
    SQL> with testdata as (select 'A' Orderitem, 100 price, 3 num from dual
      2                    UNION ALL select 'B' Orderitem, 10 price, 1 num from dual)
      3  select Orderitem,
      4         Price,
      5         num
      6  from testdata;
    O      PRICE        NUM
    A        100          3
    B         10          1
    SQL>
    SQL> with testdata as (select 'A' Orderitem, 100 price, 3 num from dual
      2                    UNION ALL select 'B' Orderitem, 10 price, 1 num from dual)
      3  select DECODE(GROUPING(orderitem), 1, 'All',orderitem) orderitem,
      4         DECODE(GROUPING(price), 1, sum(Price * num)/sum(num) ,price) price,
      5         sum(num) num,
      6         sum(Price * num) total_price
      7  from testdata
      8  group by grouping sets ((orderitem, price, num),()) ;
    ORD      PRICE        NUM TOTAL_PRICE
    A          100          3         300
    B           10          1          10
    All       77.5          4         310
    SQL> I'll guess for the real interactive feature we'll need to wait for some future Apex version.
    Edited by: Sven W. on Aug 19, 2009 2:07 PM

  • Link to interactive report

    i use the following link to point to a page (1) with a interactive report, but still all rows are shown and no filter is displayed:
    http://host:7000/pls/apex/f?p=104:1:3808170029937402::YES:1,RIR:IREQ_LOCATION:HSV
    whats wrong?
    here are the debug messages:
    0.00:
    0.00: S H O W: application="104" page="1" workspace="" request="" session="3808170029937402"
    0.00: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: de
    0.00: alter session set nls_language="GERMAN"
    0.00: alter session set nls_territory="GERMANY"
    0.00: NLS: CSV charset=WE8MSWIN1252
    0.00: ...NLS: Set Decimal separator=","
    0.00: ...NLS: Set NLS Group separator="."
    0.00: ...NLS: Set date format="DD.MM.RR"
    0.00: ...Setting session time_zone to +02:00
    0.00: NLS: Language=de
    0.00: Application 104, Authentication: CUSTOM2, Page Template: 1358427100808202
    0.00: ...Session ID 3808170029937402 can be used
    0.00: ...Application session: 3808170029937402, user=UID01971
    0.00: ...Determine if user "UID01971" workspace "1341613165726624" can develop application "104" in workspace "1341613165726624"
    0.00: Session: Fetch session header information
    0.00: Saving g_arg_names=IREQ_LOCATION and g_arg_values=HSV
    0.00: ...Set Interactive Report Column filter for report column "LOCATION"
    0.00: using existing session report settings
    0.00: ...Metadata: Fetch page attributes for application 104, page 1
    0.00: Fetch session state from database
    0.01: Branch point: BEFORE_HEADER
    0.01: Fetch application meta data
    0.01: Clear cache: request=1
    0.01: ...Clearing Cache for Page 1
    0.01: Nulling cache for application "104" page: 1
    0.01: Clear cache: request=RIR
    0.01: ...Resetting Interactive Report
    0.01: using existing session report settings
    0.01: Saving g_arg_names=IREQ_LOCATION and g_arg_values=HSV
    0.01: ...Set Interactive Report Column filter for report column "LOCATION"
    0.01: creating session report settings as copy of default report settings
    0.01: Computation point: BEFORE_HEADER
    0.01: Processing point: BEFORE_HEADER
    0.02: Show page template header
    0.02: Computation point: AFTER_HEADER
    0.02: Processing point: AFTER_HEADER

    it was my mistake, i used the column name of the report instead the column name of the query, using:
    'f?p='|| :APP_ID ||':1:'|| :APP_SESSION ||'::NO:1,RIR:IREQ_SERVER_LOCATION:HSV'
    it works fine, but maybe someone can help me to have more than one "filter", how should the link look? i tryed:
    'f?p='|| :APP_ID ||':1:'|| :APP_SESSION ||'::NO:1,RIR:IREQ_SERVER_LOCATION:HSV:IREQ_SERVER_TYPE:ORA'
    but it doesnt accept the second filter
    thank you

Maybe you are looking for

  • How to connect my old imac G4 (no airport card) to lynksys router

    I am going to buy a new imac. I want to put my old G4 15" with no airport card installed into my daughter's room. I have a linksys wireless router WRT54G connected to my dsl modem. The linksys wireless router is linked to my imac via an ethernet cabl

  • Ipod not recognized by computer; wont turn on

    My ipod was working fine earlier today, but now, nothing. It wont turn on, wont charge, wont respond to anything. I've tried two different USB cables. When I try to restore it, the computer tells me to plug in an ipod, but it is plugged in. This is v

  • Problem with struts validator on WLS 8.1

    I am having a strange problem, when I run my app in eclipse using weblogic plugin it works fine and I get no exception. As soon as I run it externally in a standalone server I get an ServletException which seem be be because of struts validator class

  • CC desktop app (windows) doesn't show latest versions of CC apps for installation. How do I fix it?

    I've been a CC member since the start; about 6 months ago the CC desktop app on my main desktop PC stopped showing the latest versions of most applications (for example Photoshop, Illustrator, etc., only showed the 'CS' version), and stopped giving m

  • Make to Order Stock

    Dear  PP  GURUs, I have a problem with Sales Order stock in MTO (Make to Order) Prob : I have one FG (FG-001) with MTO, and One more FG (FG-002) with MTS           One Raw Material (RM-001) common for the both FG's.          Due to some reasons, Some