Retrieving sort and filter criteria for interactive report

I have developed a test management system in APEX. Users log in and see an interactive report with their assignments. Each test they've been assigned occupies one row.
There is an "Execute" link for each row that takes the user to the test execution page, where they can see the input steps / expected results and report the test passing or failing.
I've implemented "Next >" and "< Previous" buttons on the execution page, so the user can immediately go forwards or backwards in his assigned tests without having to return to the assignments page and click the Execute link on the next or previous row.
The test execution page figures out what the next and previous assigned test is using the LAG and LEAD functions, like this:
lag(assignment_id) over (order by ref_num_full) prev_id,
lead(assignment_id) over (order by ref_num_full) next_id
Notice that I've "hardcoded" the over clause to be the reference number of the test.
The problem here - this solution ignores any custom sorts or filters the user has put in place on the assignments (interactive) report.
Is there a way I can "grab" the interactive report (1) sort criteria and (2) filter criteria dynamically? I'm thinking I could then use dynamic SQL to build an OVER clause used in the lag/lead calls so that the application now follows whatever sort and/or filter criteria the user has put in place.
Any help is greatly appreciated...thanks!!

Thanks WTine!
I took a look and determined
- I can get the sort criteria from the APEX_APPLICATION_PAGE_IR_RPT view (SORT_COLUMN_# and SORT_DIRECTION_# columns)
- I can get the filter criteria from the APEX_APPLICATION_PAGE_IR_COND view
Regards, Rich

Similar Messages

  • Sort and filter option missing in table view

    Hi,
    I am not able to see the sort and filter option for all the columns in table view. Could anyone please help me if i need to add something to see that option.
    Thanks,
    Kamesh Bathla

    Hi,
    Thanks for the reply, yes its web UI issue, i am having search and result view and i need sorting option for all the columns in result view. I thought that it is standard functionality, do i need to add something to html file or anyother place to see the sorting options?
    Regards,
    Kamesh Bathla

  • Problem with 'sort and filter' feature of embed codes in Excel Online Web App

    So my question has to do with the Excel Online feature where you can share a spreadsheet and embed it in a website with the option of allowing users to sort and filter the data. (The option is under the "Interaction" heading.)
    One of the options if you look closely is "Let people sort and filter" which is not checked off. In the embed code you can see "AllowInteractivity=False". The problem is that when I check "Let people sort and filter"
    the embed code changes completely - going from:
    <iframe width="700" height="900" frameborder="0" scrolling="no" src="https://onedrive.live.com/embed?cid=dontworryaboutitEDFD383&resid=6BAA9620AEDFD383%21107&authkey=AFj3X8xq2U3IfDE&em=2&wdAllowInteractivity=False&Item='Sheet1'!A1%3AI32"></iframe>
    to:
    <iframe width="700" height="900" frameborder="0" scrolling="no" src="https://onedrive.live.com/embed?cid=dontworryaboutitEDFD383&resid=6BAA9620AEDFD383%21107&authkey=AFj3X8xq2U3IfDE&em=2&Item='Sheet1'!A1%3AI32"></iframe>
    If I manually change 'false' to 'true' that doesn't do the trick so I'm not sure what to try next.
    Any thoughts?

    Hi,
    We support Office for Windows in the current forum, since this question is about Office Online, I suggest you post the question in Office Online forum:
    http://community.office365.com/en-us/f/default.aspx
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Getting active filter conditions from interactive reports

    I have been having trouble with how to properly get the filter conditions that a user has applied to an interactive report. I have tried to get at this information using the Apex defined view APEX_APPLICATION_PAGE_IR_COND. However, the problem I am running into is if the user ends their session without first removing their filter conditions, those conditions remain in this view the next time (and any future times) the report is accessed. I can not seem to determine how to tell which filter conditions are actually active in the report. Any help would be greatly appreciated.

    I've done several tests, and the results I'm getting are not like that, if it were there would be no problem. The exact steps I'm doing is setting an arbitrary filter on an interactive report, and then logging out. When I log back in the view still shows those filter conditions, but no records are filtered on the actual report. I've tried this on two separate installations of apex (one 3.1, the other 3.2) and the results are the same. Is this irregular? Or has anyone else found a workaround for this.

  • User Interface Template for Interactive Report Region

    In 3.2, where do we set the user interface template for Interactive Reports region?
    No matter what out of the box theme I switch to, the Interactive Reports region shows the same. What and where do I change the template so that alternating rows use two different colors?

    There is no template for Interactive Reports like for a "normal" report. You need to modify the CSS and supply your own for this to happen.
    I believe most things are tagged with #apexir - firebug with Firebox is invaluable. This thread may help:
    Re: changing the look and feel of interactive report.

  • How apex generate LOV values for Interactive report

    Scott,
    For interactive report, does APEX full table/index scan to generate the LOV drop down list every time user click the column header? If I set max row count to 100, does LOV values only derived from the first 100 rows that apex hits?
    If I enter SQL query in "list of value definition", will that sql get executed every time users click the column header or the result is cached?
    For standard and interactive report, does APEX parse (soft/hard) the sql statement again when user do pagination?

    Hi N.Raj,
    {thread:id=2245456}
    Yes you have to Configure BI Publisher or other.
    {thread:id=2242147}
    Hope it helps!
    Regards,
    Kiran

  • Pointers to Sample report for Interactive Reporting

    Hi All,
                Can any one provide me Pointers to Sample report for Interactive Reporting( which uses Hotspots, Hide, At-User Command).
    Thanks in advance.
    Regards,
    Navin.

    Hi
    see the sample report
    REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    REPORT demo_list_at_pf.
    START-OF-SELECTION.
    WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
    AT pf5.
    PERFORM out.
    AT pf6.
    PERFORM out.
    AT pf7.
    PERFORM out.
    AT pf8.
    PERFORM out.
    FORM out.
    WRITE: 'Secondary List by PF-Key Selection',
    / 'SY-LSIND =', sy-lsind,
    / 'SY-UCOMM =', sy-ucomm.
    ENDFORM.
    After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
    Secondary List by PF-Key Selection
    SY-LSIND = 14
    SY-UCOMM = PF06
    Example for AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
    WRITE: 'Basic List',
    / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
    WRITE 'Top-of-Page'.
    ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE sy-pfkey.
    WHEN 'TEST'.
    WRITE 'Self-defined GUI for Function Codes'.
    ULINE.
    ENDCASE.
    AT LINE-SELECTION.
    SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
    PERFORM out.
    sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'FC1'.
    PERFORM out.
    WRITE / 'Button FUN 1 was pressed'.
    WHEN 'FC2'.
    PERFORM out.
    WRITE / 'Button FUN 2 was pressed'.
    WHEN 'FC3'.
    PERFORM out.
    WRITE / 'Button FUN 3 was pressed'.
    WHEN 'FC4'.
    PERFORM out.
    WRITE / 'Button FUN 4 was pressed'.
    WHEN 'FC5'.
    PERFORM out.
    WRITE / 'Button FUN 5 was pressed'.
    ENDCASE.
    sy-lsind = sy-lsind - 1.
    FORM out.
    WRITE: 'Secondary List',
    / 'SY-LSIND:', sy-lsind,
    / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Activation of Infotype for Interactive reporting

    I know that from SAP CRM 7.0 EHP 1.0 sap provides support for interactive report on Service requests. My question
    - Is there any standard interactive report on service request provided by SAP CRM? I checked in ORDYWB(Interactive workbench), I did not see any report for Service report. Kindly confirm is that is the case.
    Now I believe if I activate report area (Infotype) Service request in the workbench then I can create by own interactive reports for service requests. How do I activate the report area  Service request- When i select and activate it - I get the message  - " Info type Service request switched of"

    Hi!
    I hope this comes not too late, or maybe it will help others: In order to activate report area Service Requests, you have to enable business function SAP BusinessObjects Integration and CRM Interactive Reporting (CRM_ANA_BOB).
    SAP does not deliver any pre-defined reports for the new report areas that are enabled by this business function. You may, however, create your own reports, just as you were able to do with the previously delivered report areas.
    Best regards

  • Using XSL-FO for Interactive Report PDF printout

    I am using XSL-FO, Apache FOP and use FO Designer to produce a PDF from SQL Based Report (not IR). This is working fine.
    How can use the same concept for Interactive Report. I can not see how to make IR to use XSL-FO and Apache FOP.
    It looks that IR is only working for BI Publisher. Am I right?

    Interactive Reports currently only support the built-in default XSL-FO layout, i.e. there are only limited customization options available. Report Queries (see Shared Components) and Classic Reports can either use the default XSL-FO Layout, or can be associated with RTF or XSL-FO based templates. We plan to extend printing support for Interactive Reports in a future version of Oracle Application Express to provide similar features as is currently available for Report Queries and Classic Reports.
    Regards,
    Marc

  • CSS default for Interactive Reports

    Hi,
    I wanted to modify some default attributes for interactive reports. I found this : Re: Interactive Report
    I tried to put this information in my modified CSS file attached to our default template, but it doesn't seem to work.
    I put this in my CSS file : .apexir_REPORT_TABS span.current {background:#7b9cbd none repeat scroll 0 0;
                                   color:#FFFFFF;
                          margin-bottom:0;}
    but the background color isn't 7b9cbd.
    Is there a way to make it work in a CSS file ?
    Thanks.
    My fault, I had to put #apexir... instead of .apexir
    Edited by: gfrancoeur on Jun 2, 2009 10:55 AM

    I found the information on this.
    It sounds like IR reports use a general CSS file (e.g. apex_4_1.css) and it's better to modify the page template than to modify that file...
    I did that and it worked.

  • Where is the "sort and filter" in numbers?

    I am trying to sort rows using Numbers for iPad. I can sort an entire table by using the Sort function when you highlight a column. However, I am now trying to sort only certain rows, i.e. a sort within a sort, and this is proving ridiculously difficult. I've read this can be done by highlighting and choosing "sort and filter" from the toolbar. However, I don't see this toolbar nor the "sort and filter". Where is it? I see 4 icons in the upper left: info, picture, wrench, and arrows. I'm very frustrated as it seems this should be so easy to do in a spreadsheet application. I appreciate any help!

    The text pop-up menu you read about may have been the Add Filter pop-up menu in the Query HUD (Cmd-F). You can use it to add additional text search boxes to the HUD. You already have one by default in the upper right corner of the HUD.
    That's for searching.
    Again, if what you're trying to do is overlay text on an image, you can't really do that except as I described the previous reply.
    If what you're trying to do is enter text to an image's metadata, you do that in the Metadata Inspector (I).

  • Define Logical Systems and Template Names for BW Reports

    Hi experts
    I would like to know if someone used the mentioned functionality 'Define Logical Systems and Template Names for BW Reports, I would like to know too IF I create a Z REPORT for example in webdynpro and insert it in this configuration it will work and where it will appear in sourcing cockpit?
    sds.
    Javier

    Hello Muthu,
    BW reports will be shown in SRM Box if the corresponding BW roles for SRM are integrated with SRM roles.
    You might to activate the corresponding datasource of this in SRM.
    And since you have to connect the source system to BW, I think you have to define SRM system as logical system in BW.
    Regards,
    Pavan

  • Middleware-Filter criteria for Transactions replication.

    Hi Experts,
    Can we use filter criteria while transferring transactional data from CRM to R/3.
    Like i want to restrict the replication of transactions of some BP's who belongs to one particular region. Based on the region field can i put the filter criteria for the transactions.
    Points will be rewarded.
    Thanks in advance
    Nadh.

    Hi Nadh,
    I dont think if it will work. As this object is used for BulK messaging, hence you will not be able to create filters.
    Regards
    Keshav
    PS: Please reward point if the info is useful.

  • Create Filter on an Interactive Report in a Link

    Hello,
    Here is info on my environment:
    Database: 10.2.0.1.0
    O/S: Windows XP
    APEX: v3.2.1
    I am trying to use the IR<operator>_<target column alias> feature to filter the linked Interactive Report. The feature does not seem to work. Does this feature work on a 10g database?
    Background:
    I am building the application (AnyCo Corp) described in the _2 Day + Application Express Developer’s Guide_ . On page 4-27 the section titled "_Linking a Column Value to Another Page_" describes linking from the Department report to the Employee report with the Column Link item IR_DEPARTMENT_ID. The link did not work, however.
    The included APEX Users Guide discusses this feature. The path to the relevant section is: Home > Adding Application Components > Creating Reports > Editing Interactive Reports > Linking to Interactive Reports. The Guide describes the string IR<operator>_<target column alias> with lots of operators.
    This is a neat feature. Unfortunately, no matter how I try to use it, it does not work. What am I doing wrong?
    Leon

    Check out these blog postings from the APEX Dev Team:
    http://anthonyrayner.blogspot.com/2008/07/dynamic-date-filtering-in-interactive.html
    http://dpeake.blogspot.com/2008/03/advanced-interactive-reports.html

  • CRM 7.0 - Enhancement of Data Sources for interactive Reporting

    Hallo All,
    I would like to know whether anybody has positive experience with the enhancement of CRM Data Sources for interactive Reporting. I read that the enhancement of Customer fields should be possible (Those Data Sources below the Hierarchy node /CRMBW/ROOT).
    I have seen that the extract structure can be enhanced via RSA6 (as for other data sources).
    Questions:
    1. Which USEREXIT / BADI has to be used to fill the added fields?
    2. Does it work?
    Best regards

    Hi!
    Those DS are not meant to be enhanced manually but only by one of the following two ways:
    1. Adding custom fields with the Application Enhancement Tool (AET) in the CRM UI.
    2. Adding SAP fields with the Interactive Reporting Enhancement Workbench (IREW).
    The AET is available since CRM 7.0. Please find more details in the SAP Help Portal:
    <http://help.sap.com>
        SAP Business Suite
            SAP Customer Relationship Mgmt.
                 SAP EHP1 for CRM 7.0
                     Application Help
                         WebClient UI Framework
                             Application Enhancement Tool
    The IREW is available since CRM 7.0 EhP1. More details can be found inside TX CRMD_IREW or in the SAP Help Portal:
    <http://help.sap.com>
        SAP Business Suite
            SAP Customer Relationship Mgmt.
                 SAP EHP1 for CRM 7.0
                     Application Help
                         SAP Customer Relationship Management
                             Analytics
    Best regards

Maybe you are looking for

  • How can i turn off voice control on iphone 5s

    hello my home button is not working well. so its stuck on voice control... i would like to turn it off completely, siri and the phone voice control

  • FI/AR:Bulk processing of UK cheques

    LS, our relation is processing customer payment using UK cheques. This process involves customers sending paper cheques, which ned to be matched with the outstanding balance of the customer. In the first step the paper cheques need to be posted to a

  • LSMW error report truncating

    Hi, I have an LSMW that produces an error report in the convert data stage. I run it on one system and everything is OK but when I export and import to the test system, the report gets truncated at around 80 characters. Does anybody know if there is

  • Messing with JavaCompiler

    I have a following problem : I need to put into webservice a method that at runtime compiles custom source code and executes it.Compilation is done by calling JavaCompiler class that I've rewrote to make compilation from/to memory and put error messa

  • HTML Editor size limitation?

    Hi,<br> I'm using Apex 3.1 on Oracle 10g...<br> Is there a size limitation on the number of characters in the HTML Editor? <br> We have a Report/Form combo for a column. clicking on the "Edit" Link from the Report takes you to the Form where you can