Interactive report's Enchance QUERy

HI All
I have one question when we apply any filter on a interactive report then their might be some query is generated for that filter.
so how we can find that query in apex pls tell me i m very much intreasted in that.
Thank's In Advance to all expert.
Dipen.

Hi,
These links might help
http://stewstools.wordpress.com/apex_ir_query-package/
http://www.talkapex.com/2009/04/log-apex-interactive-report-search.html
Regards,
Jari

Similar Messages

  • Using Interactive Report with SQL query accessing tables via db link

    Is there a known issue with using the interactive report in version 3.1.2.00.02 with SQL that is accessing tables via a database link? I get the error 'not all variables bound', I do not get this error when using the standard report for the same SQL?
    Thanks,
    Edited by: [email protected] on May 26, 2009 2:59 PM

    Varad,
    Good question, failed to check that. In fact there are errors. Dump file c:\oraclexe\app\oracle\admin\xe\bdump\xe_s002_3640.trc
    Mon Jun 15 08:48:11 2009
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Windows XP Version V5.1 Service Pack 3
    CPU : 2 - type 586, 1 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:1051M/2038M, Ph+PgF:2273M/3934M, VA:1302M/2047M
    Instance name: xe
    Redo thread mounted by this instance: 1
    Oracle process number: 16
    Windows thread id: 3640, image: ORACLE.EXE (S002)
    *** ACTION NAME:(PAGE 2) 2009-06-15 08:48:11.743
    *** MODULE NAME:(APEX:APPLICATION 112) 2009-06-15 08:48:11.743
    *** SERVICE NAME:(SYS$USERS) 2009-06-15 08:48:11.743
    *** CLIENT ID:(ADMIN:232384011651572) 2009-06-15 08:48:11.743
    *** SESSION ID:(24.931) 2009-06-15 08:48:11.743
    *** 2009-06-15 08:48:11.743
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_LdiDateFromArray+55] [PC:0x608B04F3] [ADDR:0x0] [UNABLE_TO_WRITE] []
    Current SQL statement for this session:
    select Stage,Procedure,Stp,FW,Reslt,MSG,date_run
    from bi_msg_VW@dwitnm
    order by 1
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    2FE1EA14 1207 package body SYS.DBMS_SYS_SQL
    2FE1F064 328 package body SYS.DBMS_SQL
    2ABDC520 5097 package body APEX_030200.WWV_RENDER_REPORT3
    2BD5E55C 1538 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    2BD5E55C 366 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    335BDA88 11190 package body APEX_030200.WWV_FLOW
    2BDBD1C8 255 procedure APEX_030200.F
    2AB58D10 30 anonymous block
    ----- Call Stack Trace -----
    I didn't include the call stack, it is too large. Now I'm even more puzzled that the IR would work while a sql report would fail.
    Bob

  • Interactive reports using ABAP query

    I have developed an ABAP query which prints the sales documents in ALV list display.
    In that  list display I would do develop a functionality is , when ever i double click on the sales doc number it will directly go to the VA03 transaction for the corresponding VBELN.
    Can anybody explain how to do this?

    Hi,
    When you double-click on any cell of alv, use this code to fetch the data of the line that you currently clicked, its working:-
    When you double click on the ALV line, you will have sy-ucomm = '&IC1'.
    So when you define a i_callback_user_command for the FM reuse_alv_list_display,
         i_callback_user_command           = 'COMMAND' " for User-Command
    and create it as:-
    FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
      DATA : ok_code TYPE sy-ucomm.
      ok_code = ucomm.
      CASE ok_code.
        WHEN '&IC1'. "for double click on alv line
          " your code
      ENDCASE.
    ENDFORM.
    As you have used selfield TYPE slis_selfield, the field selfield will hold all the values.
    To know on which row you have clicked and to retain that line, use code:-
    Suppose you are currently displaying data from internal table itab and corresponding to it you have work area wa.
    read table itab into wa index selfield-tabindex. "index value of line you clicked
    " now you have the contents of line that you double clicked currently
    Now to know the field name that you clicked, use:-
    selfield-fieldname " will fetch you the name of field that you clicked
    Now using the work-area and the name of field that you clicked, you can easily make out the details of the field i.e., field name and field value and you can code as per your requirement.
    Refer:-
    CASE selfield-fieldname.
      WHEN 'VBELN'.
        SET PARAMETER ID 'AUN' FIELD <wa-vbeln>. "value for work area for vbeln
        CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    ENDCASE.
    Hope this helps you.
    Regards,
    Tarun

  • Interactive reports in SAP query

    I created a SAP query which prints the sales documents numbers..After displaying the ALV list,when I click the sales documet ,it will directly go to the VA03 tcode.
    Can any body help how to develop it?

    Hi,
    try this .
    at user-command.
      GET CURSOR FIELD w_cursor VALUE fs_customer-kunnr.(field on which you click)
      CASE sy-ucomm.
        WHEN 'CUSTINFO'.
          IF w_cursor = 'FS_CUSTOMER-KUNNR'.(compare field name )
            SET PARAMETER ID 'KUN' FIELD fs_customer-kunnr.( see parameter id in dataelement further characteristics )
            CALL TRANSACTION 'TCODE' .
            CLEAR w_cursor.
          ELSE.
            MESSAGE text-005 TYPE 'I'.
          ENDIF.                           " IF W_CURSOR = 'FS_CUSTOMER-KUNNR'

  • Please, Wait - Processing Icon - for Interactive Report Query

    Is there a way to use the built in animation that displays a "busy or processing" animation when using an Interactive Form with a live dynamic query?
    For example, I built an Interactive Report using a query. However, I would like to display to the end user an animation while they wait for the query to load the updated data.
    I notice when interacting with the Interactive Report, there is an animation that displays when using filters, sorts and searching for data. How can I use this built in animation when querying data to build the report on initial load?
    Any direction on this is appreciated.
    Thanks in advance!
    Jason

    Hello Jason,
    Take a look at this thread to see if it answers your question.
    "Please Wait" message
    Thanks,
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)

  • Paramerterized Interactive Reports - is there a quick solution to stop the query from executing when entering the page prior to user clicking go.

    Example
    Currently, when the user enters the page the interactive report runs (without the user hitting "go")and - indicates no data found because one of the "parameterized" fields is required and the sql is not setup for nulls.
    I'm Looking for a way to not perform a query  at all -------until the user hits go for the first time on the page - then each time they re-enter the page in the same session it would be ok to auto submit the query.
    I believe I can setup a hidden item and check on my interactive report E1 not null.  Then create a "computation" on "after submission" that would set this value to a value - say 1.
    I can seem to be able to get this to work however.
    In my interactive report - I'm wondering what "condition type" should I be using.  Any thoughts would be greatly appreciated.

    In this case I just have 2 parameters.  The goal is to allow the user to "pre filter" BEFORE rendering the interactive due to the possible size of the report.  This pre fliter could be by say- order type or region or branch etc.
    Right now, I believe its all one region - see below.
    My first attempt, I put a branch on the after submit on the go button and then put a condition on the interactive report.  This worked but caused a looping issue when trying to select a column on the interactive report itself.  My guess is , because that drop down was also using that same go button.
    Anyway, please advise how to best  "pre filter" prior to rendering an interactive report.  Should I have two seperate regions or can I use one region.  Any assistance would be greatly appreciated. 
    Order Parameters 2 
    Before Header 
    Branches
    Computations
    Processes
    After Header 
    Computations
    Processes
    Regions
    Before Regions 
    Computations
    Processes
    Regions 
    Body (3) 
    Search 
    Items 
    P6_TEXT
    P6_ITEM_NUMBER
    Region Buttons  P6_GO
    Order Type &P6_TEXT 
    Report Columns 
    Order Type
    Operating Unit
    Order Number
    Line Number
    Item Number
    Invoice Week
    Items 
    P6_NAME
    P6_ITEM_NUMBER_ALT
    Position 01  Breadcrumbs
    After Regions 
    Computations
    Processes

  • Interactive report errors when trying to query external table.

    I'm trying to create an interactive report against an external table and getting the following error. I see a note in metalink the describes its cause, but I doesn't seem to apply here.
    Query cannot be parsed, please check the syntax of your query. (ORA-06550: line 2, column 17: PLS-00302: component 'ODCIOBJECTLIST' must be declared ORA-06550: line 2, column 13: PL/SQL: Item ignored ORA-06550: line 4, column 18: PLS-00302: component 'ORACLE_LOADER' must be declared ORA-06550: line 4, column 6: PL/SQL: Statement ignored ORA-06550: line 5, column 12: PLS-00320: the declaration of the type of this expression is incomplete or malformed ORA-06550: line 5, column 6: PL/SQL: Statement ignored)
    Metalink Note:437896.1 identifies this same error related to external tables. It says the cause is an object named 'sys' that exist in the user's schema and must be removed. I checked dba_objects and there is no object named 'sys'

    Please ignore thread - operator error. There was an object named sys.

  • Performance tuning of a query in Hyperion Interactive Reporting Studio.

    Hi All,
    Cud some one please tell me... what are the possible ways that one can enhance the performance of the query in Hyperion interactive Reporting studio.. ??
    Thanks & Regards,
    Raj

    Topic Order Priority...Data Model Options
    Use Hints/Directives
    Ask DBA to review the SQL Generated by IR --- TopMenu - View - Query Log

  • Interactive report based on dynamic query

    Hello
    I am using Apex 4.1 and have a requirement to create an interactive report based on a dynamic query. This option is available in Classic report but in Interactive this feature is not there. Tried using collections or just a view (thought of changing the view definition during "On load", but structure of the report is already defined based on the definition of the view at design time).
    Is there any way of achieving this?
    Appreciate any help!
    Thanks
    aks

    Try looking at this: http://rakeshjsr.blogspot.com/2010/10/oracle-apex-interactive-report-based-on.html
    Thank you,
    Tony Miller
    Dallas, TX

  • Interactive Report with union all in the query

    I have an interactive report with the following query in the report region:
    select property,saddr1,upostdate,sotherdate1,journal_control-1000000000,account,sdesc,uref,
    suserdefined1,trans_notes,samount,detail_notes
    from journal_entries
    union all
    select property,saddr1,upostdate,sotherdate1,journal_control-700000000,account,sdesc,uref,
    suserdefined1,trans_notes,stotalamount,detail_notes
    from charge_entries;
    This gets translated as listed below during runtime. I am trying to pass a value to both SELECT statements instead of the just the bottom select statement. Is this possible using interactive reports.
    select
    PROPERTY,
    SADDR1,
    UPOSTDATE,
    SOTHERDATE1,
    ACCOUNT,
    SDESC,
    UREF,
    SUSERDEFINED1,
    TRANS_NOTES,
    SAMOUNT,
    DETAIL_NOTES,
    "JOURNAL_CONTROL-1000000000" "JOURNAL_CONTROL-1000000000"
    from (
    select property,saddr1,upostdate,sotherdate1,journal_control-1000000000,account,sdesc,uref,
    suserdefined1,trans_notes,samount,detail_notes
    from journal_entries
    union all
    select property,saddr1,upostdate,sotherdate1,journal_control-700000000,account,sdesc,uref,
    suserdefined1,trans_notes,stotalamount,detail_notes
    from charge_entries
    ) r
    where ("PROPERTY" = :APXWS_EXPR_1)
    0.14: IR binding: ":APXWS_EXPR_1"="APXWS_EXPR_1" value="prop1"
    Thanks for any help,
    Jim

    The bottom query is actually the third query, it encompasses the two that are unioned. It is generated by APEX to allow for the search facility - to achieve what you want ignore the larger query, and get your query working in something like SQL developer. Once it's working then put it into APEX, and the search wrapper will be generated.
    select property,saddr1,upostdate,sotherdate1,journal_control-1000000000,account,sdesc,uref,
    suserdefined1,trans_notes,samount,detail_notes
    from journal_entries
    where property = :YOUR_CRITERIA
    union all
    select property,saddr1,upostdate,sotherdate1,journal_control-700000000,account,sdesc,uref,
    suserdefined1,trans_notes,stotalamount,detail_notes
    from charge_entries
    where property = :YOUR_CRITERIA;
    Then you need to think about how you are using the report, if it is linked to from another report, then create a hidden variable and pass it from the parent.
    If the report is standalone , then you could create an item , that can be edited and when submitted, re-executes the report based on the criteria entered.
    Steve
    Hot and bothered in sunny Dubai

  • Implementing Interactive Reports Sorts in Report Query

    My users love how the Interactive Reports work, especially being able to choose their sort fields. I have an Report Query that can use multiple sorts and many sort fields (chose from APEX page). Is it possible to implement this type of thing in the Report Query (without using decodes or dynamic SQL).
    I looked at the code being executed by Interactive Reports and can see the order by changing
    select
    null as apxws_row_pk,
    "CODE",
    "CITY_NAME",
    "STATE_CODE",
    "PK_ID",
    count(*) over () as apxws_row_cnt
    from (
    select * from (
    select "PK_ID",
    "CODE",
    "CITY_NAME",
    "STATE_CODE"
    from "#OWNER#"."ZIP"
    ) r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    order by "CODE"

    Ben, Not sure I follow.
    I'm passing in the column names of the order by's from my APEX page to the DB function. Right now I'm doing a huge case statement for each one.
    FUNCTION get_student_demographic (l_user in varchar2,
    l_owner in varchar2,
    l_report_order1 in varchar2,
    l_report_order2 in varchar2,
    l_report_order3 in varchar2,
    l_report_order4 in varchar2,
    SELECT (CASE l_report_order1
    WHEN '%null%' THEN ''
    WHEN 'LAST_NAME' THEN A.LAST_NAME
    WHEN 'FIRST_NAME' THEN A.FIRST_NAME
    ..... many more
    ELSE ''
    END ) report_order1,

  • Error when process an Interactive Reporting Query  - EPM 11

    Hi everyone...
    We are on EPM 11.1.2 working with Interactive Reporting
    I already submitted a SR with Oracle, with this problem that I describe on the next lines:
    If I open a document and then try to process the Query (Essbase/Oracle datasource). It throws the next error message…
    *[2018]: "Failed to acquire Data Access Service with data sources that match the specified OCE";*
    If try Again (like 1, 2, or 3 times) without close the document … then the query process responds without problem.
    If I try to process the query again (without close the document)… eventually it throws me the same error.
    Why sometimes makes the connection with the values configured and sometimes throws the error ?
    Any clue, about the origin of this problem... or some tests to discard some kind of configuration
    Note:
    - The connections are already configure in DAS, and in some time it works well
    - We have 2 DAS Services running on my environment (with the same values ) created at the beginning to work as a cluster.
    Regards
    Alberto Martínez

    Yes I did.
    I have written the code as given below. It is not working either. Can you please check my code.
    DATA:
          FM_NAME TYPE RS38L_FNAM,
          FP_DOCPARAMS      TYPE SFPDOCPARAMS,
          FP_OUTPUTPARAMS   TYPE SFPOUTPUTPARAMS.
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf = 'X'.
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Get the name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = 'ZHR_APPT'
    IMPORTING
    e_funcname = fm_name.
    Set form language and country (->form locale)
    fp_docparams-langu = 'E'.
    fp_docparams-country = 'US'.
    fp_docparams-fillable = 'X'.
    call the generated function module
    CALL FUNCTION FM_NAME
        EXPORTING
          /1BCDWB/DOCPARAMS        = FP_DOCPARAMS
          T_HR                     = wa_emphr1
       IMPORTING
        /1BCDWB/FORMOUTPUT       =
        EXCEPTIONS
          USAGE_ERROR           = 1
          SYSTEM_ERROR          = 2
          INTERNAL_ERROR           = 3.
    Thx,
    John

  • Interactive Report based on a function returning SQL query?

    Hi guys!
    I'm wondering if the IR based on a function returning SQL query will be available on the final release of APEX 4.0..I can't see this functionality in EA1 and EA2 and I think it should be there..dont you think?
    With regards,
    PsmakR

    Hi!
    You're absolutely sure you're talking about the Interactive Report region and not about the default SQL Report region ?
    With regards,
    PsmakR

  • MV Query RE-write and Interactive reports

    did any you of try queries that do a query re-write on your MVs in Interactive reports in apex 3.1?
    bharat

    Do you think this might be related to OracleAS?
    This is my current hypothesis, I don't see any other explaination at the moment.
    "Discoverer uses its own rewrite system when any of the following is true:
    1. The database version is less than 8.1.6
    2. The database version is later than 8.1.6 and it is not possible for
    Discoverer to create Materialized Views.
    The point #2 is applicable to my case.
    Marcos, could you please point me to the source of this quotation?
    My query is below:
    SQL> explain plan for
      2  SELECT O100096.LOCAL_DAY,
      3         O100088.NETWORK_ABBREVIATION,
      4         MAX(O102377.IMPRESSIONS_LIVE)
      5  FROM DOMRSCH.DW_NETWORK           O100088,
      6       DOMRSCH.DW_TIME              O100096,
      7       DOMRSCH.TELECAST_DEMO_RATING O102377
      8  WHERE ((O100096.TIME_KEY = O102377.TIME_KEY) AND
      9        (O100088.NETWORK_KEY = O102377.NETWORK_KEY)) AND
    10        (O100096.LOCAL_DAY IN (TO_DATE('20060515000000', 'YYYYMMDDHH24MISS'),
    11         TO_DATE('20060516000000', 'YYYYMMDDHH24MISS'),
    12         TO_DATE('20060522000000', 'YYYYMMDDHH24MISS')))
    13  GROUP BY O100096.LOCAL_DAY,
    14           O100088.NETWORK_ABBREVIATION
    15  ORDER BY MAX(O102377.IMPRESSIONS_LIVE) DESC;
    Explained.
    SQL>
    SQL> select * from table(dbms_xplan.display);
    Plan hash value: 2592166193
    | Id  | Operation                     | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                         |    23 |   414 |     8  (13)| 00:00:01 |
    |   1 |  SORT ORDER BY                |                         |    23 |   414 |     8  (13)| 00:00:01 |
    |*  2 |   MAT_VIEW REWRITE ACCESS FULL| TELECAST_DEMO_RATING_MW |    23 |   414 |     7   (0)| 00:00

  • Generated Query for Interactive Report

    Hi folks
    I am getting an error in an Interactive Report: "Column ambiguously defined".
    This cannot have been triggered by the columns selected to appear in the report. Where can I see the query generated by the report after all the user-defined edits on the original query?
    Regards
    CS

    Hi Chris,
    I'm not sure what version it became available, but in later versions you can enable debugging at the application level and then view the debugging information when running the application as a developer. This gives you information on the actual query issued by Apex.
    Andre

Maybe you are looking for