Display apex report with subqueries

How to display apex report with main query contains sub quires and sub query returns multiple values . Showing error sub query returns multiple rows.

There is really two ways you can go about this. What it sounds to me like your dealing with is a master detail arrangement. What you probably need is two dependent reports where you pass a selected value from one report to a page item then key off that value for the 2nd report's query.
Otherwise you could move the sub-query into the from portion of your master query and just pick the fields. This would then join the main query on the sub-query. At that point if you set your fields up correctly, you could use APEX grouping to group the results together and remove extra rows of data.

Similar Messages

  • Tcode SD related for displaying a report with completed deliveries

    Dear SAP Experts,
    I would like to ask you a question.
    Is there any Tcode for displaying a report with all the completed outbound deliveries (8000++) or posted goods issues (4900++) with the relevant net values of the relevant sales orders, BEFORE the creation of the relevant billing documents.
    Great Thanks in Advance
    Kind Regards
    John

    You can use transaction VF04 - Billing due list.

  • Displaying a report with 250 000 rows in BI Publisher 11.1.1.6 == very slow

    Hi,
    I try to display a report with 250 000 rows in bi publisher 11.1.1.6.
    Running the SQL Request in TOAD take 20s.
    From bi publisher 11.1.1.6 this operation take more than 2 hour without result.
    The temp file show an xml file which increase (53 M to 70M to 100 M)
    I configure jvm (1.6_029) with the following parameters : Xms512m - Xmx2048 -XX:MaxPermSize=3072m
    My configuration is the following :
    REHL5 64bits
    8G RAM
    100G file system and 50 GB tmp file for bi publisher
    4 CPU
    Jdk Parameters:
    Xms512m -Xmx2048m -XX:MaxPermSize=3072m -XX:UseParallelGC.
    Total CPU usage : 25%
    Live Threads : 85 threads
    Used : 665 Mb
    Commited : 908 Mb
    GC time :
    8.047 s on PS MarkSweep (3 collections)
    8.625 s on PS Scavenge (242 collections)
    Any idea to increase performance or other will be appreciate.
    Thank you
    Mams

    If you are generating a PDF output, select "PDF Compression" option in the properties. Ensure you reduce all the log levels to "Low". Ensure there are no (or minimal) calculations/formulas in the report template.

  • Apex report with details below for one record

    Hi,
    I'm looking for an answer to my problem:
    We have a report with many columns ~60.
    And is not very user friendly because it is so wide table.
    If it is possible to display some less important columns like additional information below report,
    for single record in report. E.g. user selects radio button from first column and details are refreshed for that record.
    (if it is possible to group details in tabs)
    Thank you for your answers.

    Hi,
    Here is one example
    https://apex.oracle.com/pls/apex/apex/f?p=39006:41
    Create hidden item that is not protected. In my case item name is P41_DEPTNO
    First report query
    select
    APEX_ITEM.RADIOGROUP(1,DEPTNO,:P41_DEPTNO) AS rg,
    EMPNO,
    ENAME,
    JOB,
    MGR,
    HIREDATE,
    SAL,
    COMM,
    DEPTNO
    FROM EMP
    Second report query
    select LOC,
      DNAME,
      DEPTNO
    from DEPT
    WHERE DEPTNO = :P41_DEPTNO
    In second report region set Page Items to Submit your hidden item name.
    Create dynamic action
    - event: Change
    - Selection Type: jQuery Selector
    - jQuery selector: input[name=f01]
    - Action: Set Value
    - Set Type: JavaScript Expression
    - JavaScript Expression: this.triggeringElement.value;
    - Selection Type: Item(s)
    - Item(s): <Your hidden item name>
    Then add another true event to dynamic action
    - Action: Refresh
    - Selection Type: Region
    - Region: <select second report region>
    Regards,
    Jari

  • Cannot display Crystal Report with ActiveX Viewer

    I am using SmartViewerActivex.asp in a classic ASP website to display Crystal Reports and the report will not load. 
    I get a blank grey screen with only the toolbar showing but able to export out with data intact.
    I am  using CR9, running in Windows Server 2012 R2 IIS 8.5.
    I've already spent about 2 weeks and have not found an answer. Please HELP!

    Unfortunately, no help available. I suspect when CR 9 released in 2002, Win Server 2012 was not even a twinkle in Bill's eye. E.g.; you are looking for CR 9 to be 10+ years forward compatible. In other words, it is not supported on WIN server 2012.
    Possible option is to upgrade to CR XI R2 (v. 11.5). There you have a weak prayer and hope. With luck it may work. Note that CR XI r2 was the last version of CR to include the AcitiveX viewer. And CR XI R2 has been out of support for over 2 years now.
    Best bet: CR SDK for VS .NET or CR SDK for Java. This would mean a new app...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Error in displaying hierachry report with TableView and Tableiterator

    Hello,
    I tried to create a BSP as shown in this tutorial:
    /people/vijaybabu.dudla/blog/2008/08/04/display-hierarchy-report-in-bsp-using-tableview-and-tableview-iterator
    When starting the BSP I get an error that a field symbol is not assigned in the method get_column_name.
    When debugging the method get_column_name I can see that row_ref is initial. So the field symbols <row> and <col> are not assigned to any values, which causes the error some lines below.
    METHOD get_column_value .
    *-To get the Column values which is used in the Interator
      FIELD-SYMBOLS: <row> TYPE ANY, <col> TYPE ANY, <cur> TYPE ANY.
      ASSIGN row_ref->* TO <row>.
      ASSIGN COMPONENT column_name OF STRUCTURE <row> TO <col>.
      DATA tempchar(240) TYPE c.
      IF currency IS NOT INITIAL.
        ASSIGN COMPONENT currency OF STRUCTURE <row> TO <cur>.
        WRITE <col> CURRENCY <cur> TO tempchar.
        MOVE tempchar TO column_value.
        CONCATENATE column_value ` ` <cur> INTO column_value.
      ELSE.
        WRITE <col> TO tempchar.
        MOVE tempchar TO column_value.
      ENDIF.
      CONDENSE column_value.
    ENDMETHOD.
    Any help?
    Thank you

    Hi Patrick,
    Thank you for the answer.
    Unfortunately there is still the error with the unassigned field symbol after implementing the render_row_start method.
    Any help?
    Edit: It works now. There was an error with a wrong variable name (stupig mistake.)
    Thanks for the help!
    Edited by: Robert Karlovic on Mar 5, 2009 10:29 AM

  • BO fails to display cloned reports with DATE_TIME data in View mode

    Problem: We create a table using Rebean API. The table contains cells displaying DATE_TIME data (Detail). The cellu2019s formula is correct and the Applet shows the data alright. But when in view mode, there stand u201CINPUT_DATE_TIMEu201D text. If we open the report in the Applet and just click the cellu2019s formula without changing anything, the report starts to draw itself properly in view mode too.
    We have to manually touch cloned reports with DATE_TIME values.  Didn't find anything same in the search..
    Can anyone help with this problem?
    Great thanks,
    Oleg

    Hi Oleg,
    It may help if you post the code that you are using to create the block (table) with the DATE_TIME data.
    Please include the code from when you open/create the WebI document up to the point when you save the WebI document.
    Regards,
    Dan

  • APEX report with Break columns and BI Publisher

    I am having an issue with APEX and using column breaks when printing to BI publisher.. It seems that when you write an APEX report that breaks on the 1st or 1st and 2nd columns, the grouping shows nicely in APEX, but when BI Publisher gets the XML data, and you do the same grouping using an RTF file, there is a group of rows with NO grouping info that occurs at the top of the report, then each group you expect has just ONE row..
    (Just giving this a bump to see anyone has an idea here..)
    Any suggestions?
    Thank you,
    Tony Miller
    Message was edited by:
    Tony Miller

    WITH clause or Subquery Factoring allows the set of data to be reused multiple times within the SQL. Oracle will usually materialize the data into a temporary table (you will see it if you take an explain plan of the SQL).
    I would be surprised if it was the actual WITH clause that was causing the performance issue, however you can test this by turning the WITH clause feature off. Go to the Physical model, right mouse click on your Database > Properties > Features Tab, scroll down to WITH_CLAUSE_SUPPORTED and switch it off.
    I'd be interested to know if you do see actual improvement.
    Good Luck.

  • Oracle Forms displaying a report with WEB.SHOW_DOCUMENT

    I have a form that runs a report and generates the report.  Forms trys to open the url via port 9001, so error could not display page happens.  If I switch the port number to 9002 in the url, the report opens fine.  Where do I make this config change to?
    This is the url the form trys to bring up and it fails
    http://devserver:9001/reports/rwservlet/getjobid29?server=rep_wls_reports_devserver
    But when I put the following url, the report opens fine in the browser
    http://devserver:9002/reports/rwservlet/getjobid29?server=rep_wls_reports_devserver
    Any ideas?

    I have a form that runs a report and generates the report.  Forms trys to open the url via port 9001, so error could not display page happens.  If I switch the port number to 9002 in the url, the report opens fine.
    You didn't specify your Forms/Reports version, but from port numbers I guess it's 11g. If so, by default 9001 is the Forms port, while 9002 is the Reports one. You can confirm this by listing portlist.ini in $ORACLE_HOME/install.
    Did you try using OHS_LISTEN_PORT (normally 8888) ?

  • Displaying the Report with Period, Qtr and Year in a side by side view

    We have a requirement on which user wants to see report data with respect to week, Period, Quarter and Half Yearly views side by side in the same report on selecting a Period in the Prompt.
    Dividing this to multiple reports for Week, Period,Qtr and Half year is not a Solution as Customer is not ok.
    Project is using OBIEE 10.1.3.4.1 as a reporting tool.
    Regards
    Subhadipta Samantray

    Hi,
    if you are looking for the below format
    week|factvalue|month|factvalue|quarter|factvalue|year|factvalue with one prompt
    then revert back. Else revert back with the proper format required.
    Regards
    MuRam.

  • Report with Checkbox

    I am trying to follow the example shown at the below link but it is not working. I am modifying some of the code since I am using version 1.6. Any ideas as to what I may be doing wrong. The checkbox appears and I can select and deselect items but I cannot get P6_HOLDER to hold any of the values of the selected items. Thanks!
    http://apex-smb.blogspot.com/2009/01/apex-report-with-checkboxes-advanced.html
    First I created a page item called P6_HOLDER.
    Next I created a report region (sequence 40) with the below code.
    select htmldb_item.checkbox (1, dev_obj_id, 'onchange="spCheckChange(this);"',
    :P6_HOLDER, ':') checkbox, dev_id, dev_obj_desc from edm_dev_obj where
    dev_id = :P6_TEMP_DEV_ID
    **I then created a html region (sequence 1) with the below code**
    <SCRIPT src="http://www.google.com/jsapi"></SCRIPT>
    <SCRIPT>
    // Load jQuery
    google.load("jquery", "1.2.6", {uncompressed:true});
    function spCheckChange(pThis){
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=CHECKBOX_CHANGE',$v('pFlowStepId'));
    get.addParam('f01',pThis.value); //Value that was checked
    get.addParam('f02',pThis.checked ? 'Y':'N'); // Checked Flag
    gReturn = get.get();
    $f('checkListDisp').innerHTML=gReturn;
    </SCRIPT>
    CHECKBOX List:
    <DIV id=checkListDisp>&P6_HOLDER.</DIV>
    I then created an application process on Demand called CHECKBOX_CHANGE with the below code
    DECLARE
    v_item_val NUMBER := htmldb_application.g_f01;
    v_checked_flag VARCHAR2 (1) := htmldb_application.g_f02;
    BEGIN
    IF v_checked_flag = 'Y' THEN
    -- Add to the list
    IF :P6_HOLDER IS NULL THEN
    :P6_HOLDER := ':' || v_item_val || ':';
    ELSE
    :P6_HOLDER := :P6_HOLDER || v_item_val || ':';
    END IF;
    ELSE
    -- Remove from the list
    :P6_HOLDER := REPLACE (:P6_HOLDER, ':' || v_item_val || ':', ':');
    END IF;
    -- Just for testing
    HTP.p (:P6_HOLDER);
    END;

    Hi
    Create a page level validation (fucntion returning boolean) and write code similar to following
    DECLARE
    v_count NUMBER := 0;
    BEGIN
    FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
    IF APEX_APPLICATION.G_F01(i) IS NOT NULL THEN
    v_count := v_count + 1;
    END IF;
    END LOOP;
    IF v_count = 0 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END;I take it your report query is similar to following
    select apex_item.checkbox(1,"PK_CLMN") Tick, col2, col3 FROM tbl_nameCheers,
    Hari

  • Display the reports under all subfolders at a time in the content area?

    Hi All,
    In SAP EP portal,We have a requirement to display few reports wherein we have 7 roles with the same names but different ID's and they are merged together so that even if the users have 7 roles assigned he will see only 1 tab in the first level navigation and uder that there will  be one folder at the second level.Now the requirement is like this
    1st level navigation : Role Name
    2nd level navigation :Folder Name
    Detailed Navigation : Folder Name
                                     Sub Folder Name
                                     Sub -sub folder1 Name
                                     Reports   --(one or many)
                                     Sub -sub folder2 Name
                                     Reports   --(one or many)
                                     Sub -sub folder3 Name
                                     Reports   --(one or many)
    Under al the sub-sub folders a workset map iview is added to display the reports with a pictogram in the content area.In the detailed navigation, as soon as the user clicks on the Sub folder the user should be able to see the reports under all the Sub-sub folders( Sub-sub folder1,Sub-sub folder2,Sub-sub folder3) .But currently the user has to explicitly click on each of the Sub-sub folders to view the reports(thrice in this case).Plz give a solution in which all the reports under the 3 Sub-sub folders should appear simultaneouly in the content area at a single click on Sub Folder
    Thanks & Regards,
    Sowmya
    Edited by: Sowmya B on Jan 4, 2010 2:14 PM

    Resolved

  • Drilldown report with Office Integration

    Hi everyone,
    can anyone help me to understand how to display a report with Office Integration (on monitor) so that you can see the header?
    Thanks,
    Jess.

    Office Integration is available with Report Painter reports.  The first thing that you need to do is make sure the "Expert Mode" is selected.  Once the report is executed select Settings > Options.  In this pop up box you will see the List Output section and the Office Integration section.  We have all the boxes in the List Output section checked. 
    You may also want to check your Text for Export.  When you're in transaction GRR2 (Change mode of the Report Painter report), follow this menu path:  Extras > Report Text > Text for Export.  If you don't have anything here that is why your not getting any header information when you use Office Integration.  You can select Text > Copy from and copy the actual header information into the text for export.
    I hope this helps!

  • Apex report performance is very poor with apex_item.checkbox row selector.

    Hi,
    I'm working on a report that includes some functionality to be able to select multiple records for further processing.
    The report is based on a view that contains a couple of hundred thousand records.
    When i make a selection from this view in sqlplus , the performance is acceptable but the apex report based on the same view performes very poorly.
    I've noticed that when i omit the apex_item.checkbox from my report query, performance is on par with sqlplus. (factor 10 or so quicker).
    Explain plan appears to be the same with or without checkbox function in the select.
    My query is:
    select apex_item.checkbox(1,tan_id) Select ,
    brt_id
    , tan_id
    , message_id
    , conversation_id
    , action
    , to_acn_code
    , information
    , brt_created
    , tan_created
    from (SELECT brt.id brt_id, -- view query
    MAX (TAN.id) tan_id,
    brt.message_id,
    brt.conversation_id,
    brt.action,
    TAN.to_acn_code,
    TAN.information,
    brt.created brt_created,
    TAN.created tan_created
    FROM (SELECT brt_id, id, to_acn_code, information, created
    FROM xxcjib_transactions
    WHERE tan_type = 'DELIVER' AND status = 'FINISHED') TAN,
    xxcjib_berichten brt
    WHERE brt.id = TAN.brt_id
    GROUP BY brt.id,
    brt.message_id,
    brt.conversation_id,
    brt.action,
    TAN.to_acn_code,
    TAN.information,
    brt.created,
    TAN.created)
    What could be the reason for the poor performance of the apex report?
    And is there another way to select multiple report records without the apex_item.checkbox function?
    I'm using apex 3.2 on oracle 10g database.
    Thanks,
    Niels Ingen Housz
    Edited by: user11986529 on 19-mrt-2010 4:06

    Thanks for your reply.
    Unfortunately changing the pagination doesnt make much of a difference in this case.
    Without the checkbox the query takes 2 seconds.
    With checkbox it takes well over 30 seconds.
    The second report region on this page based on another view seems to perform reasonably well with or without the checkbox.
    It has about the same number of records but with a different view query.
    There are also a couple of filter items in the where clause of the report queries (same for both reports) based on date and acn_code and both reports have a selectlist item displayed in their regions based on a simple lov. These filter items don't seem to be of influence on the performance.
    I have also recreated the report on a seperate page without any other page items or where clause and the same thing occurs.
    With the checkbox its very very slow (more like 20 times slower).
    Without it , the report performs well.
    And another thing, when i run the page with debug on i don't see the actual report query:
    0.08: show report
    0.08: determine column headings
    0.08: activate sort
    0.08: parse query as: APEX_CMA_ONT
    0.09: print column headings
    0.09: rows loop: 30 row(s)
    and then the region is displayed.
    I am using databaselinks in the views b.t.w
    Edited by: user11986529 on 19-mrt-2010 7:11

  • APEX 5.0. Report with image stored in a BLOB gives ORA-06502.

    Hi,
    I want to create an Interactive Report - Desktop with an image in which is stored in a BLOB but it returnes a: ORA-06502: PL/SQL: numeric or value error: character to number conversion error.
    I have created a test report with only the image (billed - which is a BLOB) and an ID (the PK  - a number from a sequence)
    select ID, billed from foto
    I have tried with and without a formatmask for the ID '999999999999999' and the Type as Plain text as there seems not to be a better choice..
    For the 'billed' Type is 'Display Image' and the 'Table Name' and 'BLOB Column' are set. 'Primary Key Column 1' is set to ID. 'Mime Type Colomn' points to a field that contains 'image/jpeg' as the stored image is a photo in jpg.
    The image displays OK from a Forms application.
    DB is a 11.2.0.4 on Linux 6.6 and APEX is 5.0
    What have I missed?
    Thanks,
    Dino

    Dino Hustinx wrote:
    I want to create an Interactive Report - Desktop with an image in which is stored in a BLOB but it returnes a: ORA-06502: PL/SQL: numeric or value error: character to number conversion error.
    I have created a test report with only the image (billed - which is a BLOB) and an ID (the PK  - a number from a sequence)
    select ID, billed from foto
    As described in the documentation, the report query must select the length of the BLOB column, not the column itself:
    select id, dbms_lob.get_length(billed) billed from foto

Maybe you are looking for

  • Tab in Tabstrip Control in display mode (Module Pool)

    Hi friends, I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode.  please help me out in this Edited by: shravan sonayila on Aug 12, 2008 8:06 AM

  • Adjusting date and time does not work for pictures from one camera.

    I have a set of pictures taken with a Casio EX-Z20 camera in my Aperture 2 library. Because the clock of this camera was off by a few hours I changed them all at once with the option "Adjust date and time...". This worked well and when I sorted the i

  • Stub(Proxy) generation for external Web Service in SAP NW WebAS 6.40

    Hi, Can anyone tell me what tool is used to generate the proxy files for accessing any external web services in SAP NetWeaver WebAS 6.40 for JAVA (SAP DevStudio 2.0.5). Do i have to install any components or configuration for using external web servi

  • SAP XI BASIS material

    can anyone send me the XI BASIS material..either 2 the forum r <b><removed by moderator></b>..thanx in advance..

  • Working with Templates and Automatic Code Changes

    I am working in DW CS6. I am creating a new page based on a template and when DW creates the new page, it is automatically changing the paths to the links to .css and .js files.  These changes are breaking the template.  Is there a way to keep the au