To reference Interactive Report filtered rows in PL/SQL

Hello All,
I am using an interactive report on a page. I want a page process to reference the rows filtered dynamically by an end user. The report to be referenced is not saved but merely filtered from the primary report.
How do I reference the filtered rows in pl/sql. I have searched through the forum and can't find a concise answer.
Br,
Ben.

Hi Trent, Jari, Ben
Update the IR's SQL to include APEX_ITEM.HIDDEN(1, primarykeyfieldname) || firstdisplayedfieldname columnheading and then use APEX_APPLICATION.G_F01 to loop through the results using PL/SQL to get the primarykeyfieldname values displayed and retrieve the rest of the data from there if necessary.
That will still require that all records are displayed, though.
Something like: http://apex.oracle.com/pls/apex/f?p=267:237
The SQL is:
SELECT APEX_ITEM.HIDDEN(1, EMPNO) || EMPNO EMPNO, ENAME
FROM EMPand the process is:
DECLARE
vTEMP VARCHAR2(4000);
BEGIN
vTEMP := '';
FOR x IN 1..APEX_APPLICATION.G_F01.COUNT
LOOP
  vTEMP := vTEMP || APEX_APPLICATION.G_F01(x) || CHR(13) || CHR(10);
END LOOP;
:P237_SELECTED := vTEMP;
END;which just outputs the EMPNOs showing on the page into a Display Only page item.
Andy

Similar Messages

  • Regular Expression functions not supported in Interactive report filters ??

    I'm using APEX 4.0.2 and I'm trying to create a row filter in an interactive report which uses regexp_instr and regexp_replace functions and I'm getting the message:
    Invalid filter expression. regexp_instr
    The code runs fine in SQL Workshop
    select cytogenetics from z_patient
    where regexp_instr(regexp_replace(cytogenetics,'(\,+|\"+|\s)',''),'(^46XX$|^46XY$|^46XX\[..\]$|^46XY\[..\]$)')=1
    CYTOGENETICS
    "46,XX [20]"
    "46,XY[20]"
    "46,XX"
    "46,XY[20]"
    "46,XY[30]"
    "46,XY[26]"
    "46,XY [33]"
    "46,XX[32]
    etc...
    my filter is just the where clause above i.e.
    regexp_instr(regexp_replace(cytogenetics,'(\,+|\"+|\s)',''),'(^46XX$|^46XY$|^46XX\[..\]$|^46XY\[..\]$)')=1
    *Are regular expression functions just not supported in interactive report filters?*
    thanks in advance
    Paul P

    Hi Paul,
    regular expression functions are supported in interactive report filters, but it looks like that REGEXP_INSTR hasn't been added as valid command. Only REGEXP_SUBSTR and REGEXP_REPLACE are valid commands for computation expressions and REGEXP_SUBSTR, REGEXP_REPLACE and REGEXP_LIKE for row level filters.
    I have filed bug# 12926266 to fix this issue. Sorry for the inconvenience.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Interactive report filtered by date/time ?

    Hi All,
    I have an interactive report in my application.
    Sql query of the report having start date ,end date column name.E.g.The values of start date and end date are like 16-NOV-2009 12:00AM and 16-NOV-2009 12:00AM.
    I have 2000 records in my report.
    When I go to Filter on the column, I can only pick the Date and not the Time. Is there a way so I can enter Date/Time as the Filter?
    I need your help.Please suggest some solution.
    Thanks,
    Ramya.

    Hi All,
    Apex gurus please suggest some solution.Is it possible to do this below task?
    In an interactive report
    Click actions -> click filter -> select 'Start date' ||select operator 'between'||select click expression calender.
    In the calender ,i want to display bath time and date.If its a user defined item like P2_START_DATE then i can set the format mask and check the date and time ,but its a in built one!! appearing from Action menu.
    Am using APex 4.0,Is it a known apex issue or we can do it by adding some custome code or plugin?
    Thanks
    with Regards,
    Ramya.

  • Reuse Interactive Report Filtering components

    Hi everyone! I wanted to create a change notification application with APEX. I'm planning to use the Interactive Report to enable the users build their own saved query using the filtering function of IR. I will provide an option for the user to subscribe (via email) for every query they want when their conditions has been met due to data change in the future. (ex. the user is waiting for some material delivery. This application will alert the user when it became available.)
    I want to use the filtering components from the Interactive Report (column selection, automatic operator availability based on column data type and the expressions box) for query building. Is this possible? Or if not, can I at least retrieve the "SQL WHERE clause" behind the Filter?
    Any ideas for this type of application? Thanks in advance!

    I've found it! I could get the SQL for the filters by using the APEX_APPLICATION_PAGE_IR_COND APEX view. I'm still not sure about the multiple user situation. But all the filter information are there! Great!
    APEX is magnificent! And I'm such a newbie.
    Thanks!

  • Interactive report unique row count

    Hi,
    I just want to know if there is a way to do a row count with a unique on an interactive report column.
    What I mean is that I have a report that looks like that
    Project Project type Hours
    Project 1 Project type 1 1
    Project 2 Project type 2 1
    Project 1 Project type 1 1
    Project 3 Project type 3 1
    Project 2 Project type 2 1
    I would like to do a unique on the project name. So, at the end, I would like to have a count that says that I have 3 different projects.
    Is there anyway to do that ?
    Thanks,
    Chantale

    Hi Chantale - did you manage to solve this one?
    Example here (http://apex.oracle.com/pls/otn/f?p=11189:1) showing 14 rows, but only 7 distinct rows. These duplicates are valid, and the SQL cannot be changed. Is there a way through the IR to show a count of 7 (the distinct rows)?
    Thanks,
    Mike
    Edited by: Mike, UK on Oct 2, 2009 12:04 PM

  • Interactive Report Filtering apex 3.2.1

    Hello there,
    I've been searching around for some time and I can't seem to find much on filtering saved reports.
    For example I have a report which displays information on a set of organisations and depending on the user, they can only see their own allocated organisations reports.
    However, if someone saves a report (i.e. create a sort on details and save it as a saved report), it shows up on another person's interactive report as a saved report despite looking at a different organisation's details. Is it possible to only show saved reports to people who created the report for a particular organisation?
    Apologies if this is somewhat confusing.
    Thanks for your time!
    Stef
    Edited by: SHuth on 01-Sep-2010 04:21

    Hi,
    As I understand and tested, saved reports are visible only for that user who saves it.
    Developer can save default report, that is visible to everybody.
    I do not know where start looking your problem. But it sounds something relating your authorization
    What kind authorization you use ?
    Is page public ?
    Regards,
    Jari

  • Need to modify css for interactive report Single Row view

    I've tried to go through and find the code for the Single Row View css in the interactive reports, but have been unsuccessful so far. I would like to change it so the Grouping headers are larger than the column names that are grouped under them. Does anyone know what style I would need to override in order to accomodate that?
    Thanks!

    Hi,
    In the page's HTML Header, add in something like:
    <style type="text/css">
    .worksheet .worksheet_detail th.group, .worksheet_detail th.group {font-size:18px;}
    </style>
    If you use FireFox, I would recommend getting the FireBug add-in - this allows you to examine the contents of the page and shows the style class names used.
    Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Interactive report with row selector?

    I've just upgraded to APEX 3.1. I've been playing with all those amazing new features of interactive report but I miss one very important for me - a row selector. I used to have the traditional reports based on updatable queries with row selector that enabled multi-row-delete operations. Is it still possible to include a row selector to IRR so as to accomplish MRD?
    Thanks,
    Zdenek

    Hi,
    this circumstance --> "missing row selector" raises another big problem.
    My Question now:
    I can't do row-specific processes now as in v3.0 where i could start a single process for every marked row.
    Is there any feature (that i don't know yet) to integrate process-buttons for every row in a report? Mean this button should start a process for the row, where the button was pressed.
    I didn't find any information about this feature.
    Thank you!

  • Interactive Report filters

    When applying filters to an interactive report, they are treated as logical AND statements. For example, "fieldA is equal to X" AND "fieldB is less than Y."
    Is there a way to have these filters act as OR statements instead?

    Solved!
    Turns out that caching was enabled on this page. Disabling the caching solved the problem.

  • Pass Interactive Report Filters into Form

    Hi there,
    I've got a set of interactive reports which act as a drill-down through information. At each level there is a "Create" button, which presents a form for creating an item at the bottom level. The user does not have the ability to change the filters.
    For the top level, showing an empty form is fine. However we would like it if at the lower levels the values which have been filtered are passed into the form.
    Sort of like:
    Companies -> Create [New Employee]
    - Divisions [Company = Company] -> Create [New Employee - Company = Company]
    -- Location [Company = Company; Divsion = Division] -> Create [New Employee - Company = Company; Division = Division]
    if that makes any sense?
    Cheers,
    Andrew
    Edit: I've tried using IR_[Name] and #IR_[Name]#, no effect (unless I'm doing it wrong)
    Edited by: ad13 on 12-Aug-2009 02:38
    Edited by: ad13 on 12-Aug-2009 02:39

    Hi Andrew,
    It makes no sense to me. Are you saying that e.g. you select marketing department and then on the page navigated to your query shows people in the marketing? Or it automatically sets that persons department to marketing so when clicking "create" the user doesnt have to specify a department? If so then have a hidden item on the new page e.g. :P2_DEP. The previous page will send have a link on the department column which passes the value to this item. The insert statement (for create) or select query (for a report) will use this item as a basis for their process.
    If neither then explanation take 2 =)
    Mike

  • Interactive Report filtering with hidden item column names

    I have created an Interactive Report and changed some of the default column headings by using hidden Items with appropriate title. However, when I look at the filter option in the "Gear" drop-down, the only column names which appear are the default ones. There are blank lines for the columns using hidden Items. Any suggestions for having the hidden item content appear in the filter column name list?
    Thanks,
    George

    George,
    What is it you're actually trying to do here? Maybe there's an easier way?
    Hidden items aren't going to show up in the Column List.
    I'm guessing you're trying to separate a long list of column names using '----------' or something like that? We're looking to do just that in our application, but obviously we don't want to users selecting these dummy entries. We tried using the IR column groups, but those make the list look even more cluttered IMHO. (Plus setting the sort order w/in the groups doesn't seem to affect the drop-down column lists, which seems counter-intuitive to me).
    If anyone has other suggestions for breaking up the column list display, I could use something immediately (going into beta-test in 2 weeks!).
    Thanks,
    Stew

  • How to show an icon in an interactive report against rows using a criteria

    Hi,
    I have an interactive report with customer and revenue details (let's say based on Table_A data)... I want to highlight the customers (via ICON beside the names) that has some collections related issues...I've stored these customers in Table_B... Please advice...
    Thanks in advance...

    Modify the IR region's SQL query for the emp name column by adding the HTML code for the image.
    For example
    SELECT <column 1>
          ,<column2 >
        ,DECODE(    (SELECT count(1) from table_b B where B.empno = A.empno)
                           ,0
                           ,emp_name
                           ,'<img alt="special icon" src="i/myicon.png">'||emp_name
                       ) AS EMP_NAME
    FROM <table a> A
    Note: In the code above, I have used a decode statement and an inner SQL to fetch the value from the other table. Modify it as per you case
    You also need to change the emp_name column in the report settings to be shown as "standard report column" (instead of display as ..)

  • Interactive Report Filtering

    I have a requirement for a few things, but they all can be achived by using the same page. I have an interactive report, and I was wondering if there is a way I can programmatically apply a filter to it if certain options are chosen.
    Example: This is an order list... if they click for open orders... I'd want to filter for open without having to click on teh filter on top.
    any guidance?
    thanks,
    Scott

    Scott,
    Here's the link:
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#BABDHIDJ
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

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

  • Interactive Reporting and Row Suppression

    Is there any way to do a conditional suppression of a row in an IR report? For example, if the "Total Hours" column is 0, then I'd like to suppress that row in the report.
    Thanks.
    Terri T.

    Hello.
    Other way to do a custom filter is to "add a computed item" in the result set. This will help you to select the data that you want to be viewed in a new column. For example "Total hours greater than zero". The disadvantage is: the rows that doesn't match your new computed item will be empty. But this idea maybe will be useful for you.
    take care
    ales

Maybe you are looking for

  • Mapping Error in CAF

    Hi there, when creating CAF Application services with custom operations, the added input parameters are treated as optional. This becomes obvious when researching the generated WSDL (Expose as web service) ---> maxOccurs=1, minOccurs=0. Now, if tryin

  • SocketException reading request, ignored in Tomcat !

    In my application I get sometimes the following Exception : ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read      at java.net.SocketInputStream.socketR

  • Attn: Michal and Shabarish!!

    Hi Everyone, I am trying to implement a scenario with sync RFC to Sync SOAP using BPM. RFC <- -> BPM <- -> SOAP How do I implemnt this scenario, cause if I am not mistaken the first receive step in the BPM can only be asynchronous. <b>Also when I dec

  • MORE photoshop questions

    I have a hundred 3000x2000 jpegs to take into FCP. I have read a tutorial or two about formatting these in Photoshop (I have the CS version). They all confuse me. I am working in NTSC. Can someone make this a simple explanation? What size do I resize

  • Extracting preview jpeg...

    Hi...first post here...I'm wondering if there is any way to extract the preview jpeg created at import...this is a very useful feature in Aperture when working with offline images (allows you to still send email etc. of images not in the computer, bu