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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • 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 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,

  • 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

  • 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.

  • 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

  • 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

  • Interactive report - default number of rows

    I am using APEX 3.1.1 and can not find a way to change the default of 15 for the "number of rows" returned when initially displaying an interactive query. Have I missed something?
    It is certainly easy enough using "Layout and Pagination - Number of Rows" for a non-interactive report region.
    thanks Peter

    Hi Peter,
    In the report definition, there is a section headed Default Report Settings. This shows the instruction:
    To create default report settings, run the report as a developer, modify the settings (like hiding columns, adding filters, etc.), select Save Report from the Actions Menu and then save As Default Report Settings.
    The default row count is one of those settings - make sure you Run the report before saving.
    Andy

  • Interactive Report - Default settings

    Where are the default settings for an interactive report stored?
    When I run an interactive report, modify settings, save as default settings and export/import just the page to another environment, the default settings don't go for the ride. Of course, exporting/importing the entire application works but I was hoping there was a way to use Page or Component export to transfer the updated default settings.
    Thanks

    OK I will play around some more and see if I can narrow it down. I just wanted to make sure that IR default settings are stored in the page metadata and not in Shared Components so a page export/import should capture them.
    P.S. Thanks for asking. Been busy with some big projects at work. I do lurk on the forum, glad to see that a new generation of helpful professionals have joined us old-timers in supporting the community. Looking forward to Version 4. Cheers.

  • Interactive report default has alternating row colors, how to remove this?

    Is it possible to remove the alternating row colors from the interactive report.
    In a standard report I can select the report template, but in a interactive report not.
    Regards,
    Rob

    To customize a single page, add this rule to the CSS Inline page attribute:
    .apexir_WORKSHEET_DATA tr.odd td {
      background: rgb(242, 242, 242) !important;
    To apply to a complete application, either add
    .apexir_WORKSHEET_DATA tr.odd td {
      background: rgb(242, 242, 242) !important;
    to the Cascading Style Sheet Inline attribute on each page template, or create a CSS file containing
    .apexir_WORKSHEET_DATA tr.odd td {
      background: rgb(242, 242, 242);
    upload it to your workspace, and reference it after the theme link in each page template Header:
    <link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_4/css/theme_4_0.css" type="text/css" />
    <link rel="stylesheet" href="#WORKSPACE_IMAGES#theme_4_0_no_alt_row.css" type="text/css" />

  • 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

  • APEX Interactive Reports - Default number of records

    With the new version of APEX (3.1.2) Interface Reports are available. This is a very nice functionalilty.
    The problem is that the default number of records are put to 15.
    Is it possible to put the default to 1000 for all users?
    Thanks for all the input
    Toon Schilder

    Roel,
    Thank you for the quick reply.
    The problem is as follows:
    In stead of manually updating page for page I would like to update the default of 15 to 1000 for all users for all pages.
    Of course if for some reason for one page it should be 500 I can use your method (save to default report settings).
    Is there a solution?
    Kind regards,
    Toon

  • 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

  • Link to Interactive Report Using Report Column as Parameter Value

    I'm using Apex version 4.0.
    I have an interactive report that I want to link to a second interactive report in order to create drill down functionality.
    The user will click on a column in the main report called "Insurance Company Name" which will link to the second interactive report and filter for that Insurance Company.
    I'm just trying to pass the Insurance Company Name to a Page 0 Item and use that value to filter the drill down report. Pretty simple. I don't want to create a declarative filter on the second IR, if that makes sense. My query for the drill down report is something like:
    SELECT *
    FROM MARKETS
    WHERE INSURANCE_COMPANY_NAME = :P0_INSURANCE_COMPANY_NAME
    I can't seem to get this to work-I've created the column link on the Insurance Company Name field in my main report.
    The values I have are:
    Link Text: #INSURANCE_COMPANY_NAME#
    Target: URL
    URL: f?p=&APP_ID.:5:&SESSION.::&DEBUG.::P0_INSURANCE_COMPANY_NAME:#INSURANCE_COMPANY_NAME#
    It links to the drill down report but the drill down report is not filtering for the Insurance Company Name selected. It's not picking up the value for some reason.
    Thanks for the help.

    Possibly the value is NOT in session state when you call the dropdown.. Open up your session state menu option in the developer menu and see if there is a value in the Page 0 item..
    Why don't you just create a page item on the second IR page and use that in your Select statement instead?
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Button branch to filtered interactive report

    Is it possible to have a button branch to an interactive report and filter it per click of the button rather than using the search bar? Basically my user wants the same action as the search bar but in button form on the previous page.
    I know, I know...somoetimes you've just gotta say, "NO" to users, as well.
    Edited by: userRRRYB on Apr 12, 2010 1:06 PM

    You could reference your form fields in the where clause like this:
    SELECT something
       FROM some_table st
    WHERE (:F100_FILTER_01 IS NULL OR st.col_name_01=:F100_FILTER_01)
         AND (:F100_FILTER_02 IS NULL OR st.col_name_02=:F100_FILTER_02);You have to compare the filter to NULL as well. That way, if they don't enter anything in the form field, they will get all records. I've done this with one app, and the users really like it.
    Rick

Maybe you are looking for