Apex 5 - report

Hello

I'm trying to build a page in the underside of mode when the user clicks a button.

I tried to get various forms. But no luck. Someone please direct me to the right module/URL... Thanks for your time.

Please let me know if you need more information.

===================================================================================================================

consultation_no 1:doctor_name:ABC

Medicine 1

Medicine 2

Medicine 3

consultation_no 2:doctor_name:DEF

Medicine 4

Medicine 5

Medicine 6

consultation_no 3doctor_name:IGS

Medicine 7

Medicine 8

Medicine 9

consultation_no: 4doctor_name:JKL

Medicine 10

Medicine 11

Medicine 12

===================================================================================================================


Base tables are:

() m_doctors

doctor_no

doctor_name

);

() m_cons

consultation_no

doctor_no

Issue_description

);

() m_medicines

consultation_no

name of medicine

)

Mazelin wrote:

Hello

I'm trying to build a page in the underside of mode when the user clicks a button.

I tried to get various forms. But no luck. Someone please direct me to the right module/URL... Thanks for your time.

Please let me know if you need more information.

===================================================================================================================

consultation_no 1: doctor_name: ABC

Medicine 1

Medicine 2

Medicine 3

consultation_no 2: doctor_name: DEF

Medicine 4

Medicine 5

Medicine 6

consultation_no 3 doctor_name: IGS

Medicine 7

Medicine 8

Medicine 9

consultation_no: 4 doctor_name: JKL

Medicine 10

Medicine 11

Medicine 12

===================================================================================================================

Base tables are:

() m_doctors

doctor_no

doctor_name

);

() m_cons

consultation_no

doctor_no

Issue_description

);

() m_medicines

consultation_no

name of medicine

)

If the 'report' and 'page' are used with their standard APEX meanings, then what is required is a classic report based on a custom report named column model (a few examples).

If you can not understand the information contained in the examples, reproduce the problem with a few examples of data on apex.oracle.com and share identification information of developer here, or post some sample data in the form of DDL/DML or SQL scripts.

Tags: Database

Similar Questions

  • ORA-20987: APEX - interactive report region does not exist in the application

    ORA-20987: APEX - interactive report region does not exist in the application

    I'm trying to get the query of an international registration (interactive report) on a specific page in my application.

    The code I am using is thesi:

    create or replace function get_report_query (nPage_id number)

    return varchar2

    as

    l_report apex_ir.t_report;

    l_query varchar2 (32767).

    l_list varchar2 (32767).

    number of nRegion_id;

    number of nIR_id;

    OWA.vc_arr nm;

    VL owa.vc_arr;

    BEGIN

    SELECT region_id

    IN nRegion_id

    Of apex_application_page_regions

    WHERE application_name = "E-BRIL.

    AND page_id = nPage_id

    AND source_type = "interactive report";

    nIR_id: =.

    apex_ir.get_last_viewed_report_id (p_page_id = > nPage_id,)

    p_region_id = > nRegion_id);

    NM (1): = "DUMMY_JUST_TO_SET_UP_OWA_UTIL";

    VL (1): = 'WHATEVER ';

    OWA.init_cgi_env (nm.count, nm, vl);

    l_report: = APEX_IR. () GET_REPORT

    p_page_id = > nPage_id,

    p_region_id = > nRegion_id,

    p_report_id = > 0);

    l_query: = l_report.sql_query;

    because me in 1.l_report.binds.count

    loop

    l_list: = l_list | i||'. '|| l_report. Binds (i) .name | » ='|| l_report. Binds (i) .value;

    end loop;

    Return l_query;

    end;

    /

    I want to get the query of the IR on my page 3. And I run;

    get_report_query (3)

    That's what I get:

    ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55

    ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19

    The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.

    Page 3 is also correct.

    I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).

    What I'm doing wrong here?

    We use the Apex 4.2.

    Thanks in advance.

    Reg,

    Chris

    1717220 wrote:

    Please update your forum profile with a recognizable username instead of "1717220": Video tutorial how to change username available

    ORA-20987: APEX - interactive report region does not exist in the application

    I'm trying to get the query of an international registration (interactive report) on a specific page in my application.

    The code I am using is thesi:

    create or replace function get_report_query(nPage_id IN number)
    return varchar2
    as
    l_report  apex_ir.t_report;
    l_query  varchar2(32767);
    l_list  varchar2(32767);
    nRegion_id number;
    nIR_id number;
    nm  owa.vc_arr;
    vl  owa.vc_arr;
    BEGIN 
    
        SELECT region_id
        INTO nRegion_id
        FROM apex_application_page_regions
        WHERE application_name = 'E-BRIL'
          AND page_id = nPage_id
          AND source_type = 'Interactive Report';
    
        nIR_id :=
          apex_ir.get_last_viewed_report_id (p_page_id        => nPage_id,
                                            p_region_id      => nRegion_id);
    
        nm(1) := 'DUMMY_JUST_TO_SET_UP_OWA_UTIL';
        vl(1) := 'WHATEVER';
        owa.init_cgi_env( nm.count, nm, vl );
    
        l_report := APEX_IR.GET_REPORT (
                        p_page_id  => nPage_id,
                        p_region_id => nRegion_id,
                        p_report_id => 0); 
    
        l_query := l_report.sql_query;
        for i in 1..l_report.binds.count
        loop
            l_list := l_list||i||'. '||l_report.binds(i).name||'='||l_report.binds(i).value;
        end loop;
    
    return l_query;
    end;
    

    I want to get the query of the IR on my page 3. And I run;

    get_report_query (3)

    That's what I get:

    ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55

    ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19

    The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.

    Page 3 is also correct.

    I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).

    What I'm doing wrong here?

    We use the Apex 4.2.

    The '0' in line 31 should be "nIR_id".

    What is the purpose of the lines 24-26?

  • HOW TO ADD HYPERLINK IN THE INTERACTIVE IN APEX 5 REPORT COLUMN?

    Hello

    I'm new apex.i oracle uses apex 5.

    I want to do a column in my report to a hyperlink.

    When I put the following SQL query there are no errors, but in the report, it shows that a text.it is not rendered as a hyperlink.

    Select

    BL_BUG. BUG_TITLE as BUG_TITLE,

    "BUG_ID" BUSINESS SUCKS SO "

    " ELSE ' < a href =" http://LCS.corpnet.ifsworld.com/login/secured/buglnw/BlBug.page? & BUG_ID = ' | BUG_ID | "' target = '_blank' > ' |" BUG_ID | "< /a > ' END like BUG_ID,

    BL_BUG. DESCRIPTION as DESCRIPTION,

    CASE WHEN BL_BUG. CASE_ID = 0

    THEN NULL

    OF OTHER BL_BUG. CASE_ID

    END as case_id,

    BL_BUG. BUG_SOURCE_REFERENCE as BUG_SOURCE_REFERENCE,

    BL_BUG. MODIFIED_BY as MODIFIED_BY,

    BL_BUG. Date_modified as DATE_MODIFIED

    BL_BUG. CREATED_BY as CREATED_BY,

    BL_BUG. Date_created as DATE_CREATED,

    BL_BUG. BUG_CATEGORY as BUG_CATEGORY,

    BL_BUG. BUG_IMPACT_DESC as BUG_IMPACT_DESC,

    BL_BUG. BUG_SOURCE as BUG_SOURCE,

    BL_BUG. TASK_ID as TASK_ID,

    BL_BUG. ORIGINATING_SOLUTION_ID as ORIGINATING_SOLUTION_ID

    AT THE BEGINNING OF THE BL_BUG WITH BUG_ID =: P405_NEW CONNECT PRIOR BUG_ID = BUG_SOURCE_REFERENCE ORDER BY BUG_ID, BUG_SOURCE_REFERENCE

    bl_bug is my table.can someone tell me why is that?

    Thanks in advance!

    Hi geslin,.

    Garza says:

    I'm new apex.i oracle uses apex 5.

    I want to do a column in my report to a hyperlink.

    When I put the following SQL query there are no errors, but in the report, it shows that a text.it is not rendered as a hyperlink.

    bl_bug is my table.can someone tell me why is that?

    Yes. As narrated by Sunil, you must change the property view as of column DESCRIPTION Standard report column if you use the component view. If you use Page Designer view, and then set the column of Type plain text and No special escape characters .

    If you use followed by "Designer's Page" the following suggestions:

    Kind regards

    Kiran

  • APEX 5 - report Classic - line limitation cards theme?

    Hi Experts,

    I would use the new theme of CARD in the universal theme of the APEX.

    I want to show 20 records in 4 lines and 5 columns.

    (1) create report-> OK

    2) replace by maps model + columns of reports used for substitution-> OK

    (3) option model to 5 columns-> OK

    (4) there are only 15 cards shown due to the number of lines is set at 15. I changed it to 50, but he has yet indicated only 15 of them.

    (6) I have made to change the type of paging: No. Pagination (display all lines)-> always 15 boxes.

    Is there a limitation for the model of card show a maximum of 15 cards per region report page?

    I have created example on apex.oracle.com.

    https://Apex.Oracle.com/pls/Apex/f?p=16502

    Login: demo

    Pass: demo

    component settings:

    2015-06-22_125620.png

    Concerning

    J

    jozef_SVK wrote:

    Hi Experts,

    I would use the new theme of CARD in the universal theme of the APEX.

    I want to show 20 records in 4 lines and 5 columns.

    (1) create report-> OK

    2) change of model cards + columns of reports used for substitution-> OK

    (3) model option set to 5 columns-> OK

    (4) there are only 15 cards shown due to the number of lines is set at 15. I changed it to 50, but he has yet indicated only 15 of them.

    (6) I have made to change the type of paging: No. Pagination (display all lines)-> still 15 boxes.

    Is there a limitation for the model of card show a maximum of 15 cards per region report page?

    I have created example on apex.oracle.com.

    https://Apex.Oracle.com/pls/Apex/f?p=16502

    Login: demo

    Pass: demo

    component settings:

    Pagination settings are cached for the duration of the session. After modification of the line in the attributes of report parameters, log off, restart the browser and connect again or manually re - ask the page in the browser's address bar, adding 'RP' in the ClearCache position in the URL.

  • Oracle Apex Interactive report missing filter column header information?

    Hello

    I use Oracle Apex 4.2, on Internet Explorer 9. I created an interactive report based on the views created in the database (11 g, version 11.2.0.1.0) oracle (workspace = database schema) I use the value of rownum to act as a key to identify the different lines.

    Whenever I try to find the information of one of the column headers for the interactive report (number), I'm not able to find the line, but when I try the same search for "action bar" at the top I am able to see the desired results. That is true of the SQL Developer so know if enter the same information in the filter of the columns, I see the corresponding lines.

    Y at - it an explanation for this behavior?

    Thank you

    Harry

    Hello

    This is a limitation of APEX. Column header filters in IR displayed first 999 distinct values in the ascending (after the application of all the IR filters). For example, you can filter 2310 using 'menu action filter' (as you specify) and then try clicking on the topic 'the number '. Then you must see 2310 here.

    fac586 of course it is a bug in the documentation, but 1 million limit is neither practical nor a way to go.

    Kind regards

    Hari

  • Update of the elements on the Page regarding filters in Oracle APEX interactive report

    I recently started using interactive reports in my Oracle APEX application. Previously, all pages in the classic application reports. The interactive report in my new page works fine, but now, I would like to add a summary box/table above the interactive report on the same page that displays values added some columns in the interactive report. In other words, if my interactive report displays 3 names of separate Manager, 2 separate offices and 5 different employees, my summary (box) will contain a line and three columns with numbers, 3, 2, and 5, respectively.

    So far, I did this job creating the box summed up as a classic report that account of the distinct values for each column in the same table that my interactive report pulls. The problem is when I try to filter my interactive report. Of course, the classic report is not updated based on the interactive report filters, but I don't know how I could link the two so that the classic report meets interactive report filters. From my research, there are ways to refer to the value in the search box of the interactive report using javascript/jquery. If possible, I would like to refer to the value of the filter of the interactive table with javascript or jquery to refresh the summary box whenever a new filter is applied. Does anyone know how to do this?

    Thanks, Patrick! I was always getting some of the old filters for a reason, but I was able to use the tables included in queries to retrieve my ID to report, that I used in the APEX_IR. Function GET_REPORT.

    More details here.

  • I can capture the number of records retrieved by page in the Apex Interactive report?

    Hello

    I have a requirement in which I need to conditionally hide / show button on an interactive report.

    To achieve this, I need to compare the number of reows read by v/s lines page number to be

    read as specified by the user (defined using Actions-> lines per page).

    Please help me to know if there is a way to capture these 2 values:

    1. number of records retrieved in a report by page

    2. the value set by the user for the number of rows must be extracted (Actions--> lines per page).

    Quick help is really appreciated. Thank you.

    Hello

    You can use by jariola in his blog

    http://dbswh.webhop.NET/Apex/f?p=blog:read:0:article:41900346848694

    Thank you

    Benjamin

  • Altova StyleVision 2013 - APEX PDF report

    Hello

    I read this tutorial to create report: http://www.oracle.com/technetwork/developer-tools/apex/learnmore/custom-pdf-reports-1953918.pdf

    But I have a problem when I create report for APEX with Altova StyleVision.

    I use Oracle XE 11 GR 2, APEX 4.2 and APEX auditor 2.0.4.

    At the TOP, I created a State with 14 queries and I exported in XML format.

    I can build four tables (4 different queries / rowset) in my report and PDF printing.

    But I have a problem when I want to add a fifth (table) query in my report:

    When I generate the PDF on my APEX application, I got the following error message:

    "The error page displaying the error ORA-01403: no data available ORA-06502: PL / SQL: digital error or value."

    Do you know why I get this error message when my report is 5 queries?

    Is the number of queries in a PDF report limited?

    Thank you very much for your help! And sorry for my English ;-)


    Hello

    For more information, I solved the problem by installing the Apex 4.2.3.

    I still got the message "String index out of range:-1" when I download the xml file, but the reports with more than 4 questions work!

  • How to use WITH Clause of Apex classic report

    Hello.

    I use Apex 4.2.1 on mod_plsq and Oracle 11 g 3.

    I need to create a report classic usiing a WITH clause in the SQL report.  Apex keeps throwing the error 'CAN finf SELECT statement.

    I then wrapped my report query in an envelope, SELECT * clause.  Apex then raises an error you need to use a variable LONG.

    How is - a uses a WITH clause in the report query.

    Here is my report query:

    SELECT *.

    Of

    (

    WITH W

    AS

    (

    SELECT

    MIN (W1. URMT_BTRS_PK URMT_BTRS_PK),

    MIN (W1. EARLIER_NOTICE_ID URMT_NOTICES_ID),

    TO_CHAR (MAX (W1. EARLIER_NOTICE_TYPE NOTICE_TYPE)),

    TO_CHAR (MAX (W1. NOTICE_TYPE)) | '- Day' EARLIER_NOTICE_TYPE_DESC,.

    MAX (W1. LATER_NOTICE_ID URMT_NOTICES_ID),

    TO_CHAR (MIN (W1. LATER_NOTICE_TYPE NOTICE_TYPE)),

    TO_CHAR (MIN (W1. NOTICE_TYPE)) | '- Day' LATER_NOTICE_TYPE_DESC,.

    W1. NOCHG_STATUS_ORDER,

    W1. CHG_STATUS_ORDER,

    W1. ADD_STATUS_ORDER,

    W1. REM_STATUS_ORDER

    Of

    (

    SELECT

    URMT_BTRS_PK,

    URMT_NOTICES_ID,

    NOTICE_TYPE,

    : P202_NOCHG_STATUS_ORDER AS NOCHG_STATUS_ORDER,

    : P202_CHG_STATUS_ORDER AS CHG_STATUS_ORDER,

    : P202_ADD_STATUS_ORDER AS ADD_STATUS_ORDER,

    : P202_REM_STATUS_ORDER AS REM_STATUS_ORDER

    Of

    V_URMT_COMPARE_NUCLIDE_DATA

    WHERE

    URMT_NOTICES_ID IN (TO_NUMBER(:P202_COMPARE_EARLER_NOTICE_ID), TO_NUMBER (:P202_COMPARE_LATER_NOTICE_ID))

    ) W1

    )

    ------------------

    SELECT

    CASE WHEN (X.STATUS IS NULL) THEN

    CASE WHEN (INSTR(X.MASS ||)

    X.NUCLIDE_FRACTION

    ((' *', 1, 1) > 0) THEN '< div class = "chg_highlight" >' | HTF. ESCAPE_SC (' changed (' |)) (SELECT EARLIER_NOTICE_TYPE |) ' => ' || LATER_NOTICE_TYPE | ((' W)) | "< / div >"

    Else 'no change '.

    END

    WHERE (X.STATUS = 'Added') THEN ' < div class = "add_highlight" > ' | HTF. ESCAPE_SC(X.STATUS ||) "To" | (BY SELECTING LATER_NOTICE_TYPE_DESC IN W)) || "< / div >"

    WHERE (X.STATUS = 'Deleted') THEN "< div class ="rem_highlight"> ' |" HTF. ESCAPE_SC(X.STATUS ||) 'From ' | (BY SELECTING EARLIER_NOTICE_TYPE_DESC IN W)) || "< / div >"

    OF OTHER X.STATUS

    END AS STATUS

    ----

    CASE WHEN (X.STATUS_ORDER IS NULL) THEN

    CASE WHEN (INSTR(X.MASS ||)

    X.NUCLIDE_FRACTION

    ((' *', 1, 1) > 0) THEN (SELECT CHG_STATUS_ORDER FROM W)

    OTHER (SELECT NOCHG_STATUS_ORDER FROM W)

    END

    OF OTHER X.STATUS_ORDER

    END AS STATUS_ORDER,

    ----

    X.NUCLIDE,

    ----

    CASE WHEN (X.STATUS IS NULL) THEN

    BOX WHEN (SUBSTR (X.MASS, 1, 1) = ' *') THEN SUBSTR (X.MASS, 2).

    OF OTHER X.MASS

    END

    OF OTHER X.MASS

    MASS OF THE END AS,

    ----

    CASE WHEN (X.STATUS IS NULL) THEN

    BOX WHEN (SUBSTR (X.NUCLIDE_FRACTION, 1, 1) = ' *') THEN SUBSTR (X.NUCLIDE_FRACTION, 2).

    OF OTHER X.NUCLIDE_FRACTION

    END

    OF OTHER X.NUCLIDE_FRACTION

    END AS NUCLIDE_FRACTION

    Of

    (

    -THE NUCLIDES EXIST IN * TWO * BEFORE AND AFTER VIEW.  SOME OF THEIR ATTRIBUTES (MASS, NUCLIDE_FRACTION, ETC.)  MAY HAVE CHANGED.

    SELECT

    STATUS AS NULL,

    VALUE NULL AS STATUS_ORDER,

    C.NUCLIDE,

    BOX WHEN (NVL (C.A_MASS, 'Null')! = NVL (C.B_MASS, 'Null')) THEN ' *' | '< div class = "chg_highlight" >' | HTF. ESCAPE_SC (NVL (C.A_MASS, 'Null') |) ' => ' || NVL (C.B_MASS, 'Null')) | "< / div >"

    Of ANOTHER NVL (C.B_MASS, 'Null')

    MASS OF THE END AS,

    ----

    BOX WHEN (NVL (C.A_NUCLIDE_FRACTION, 'Null')! = NVL (C.B_NUCLIDE_FRACTION, 'Null')) THEN ' *' | '< div class = "chg_highlight" >' | HTF. ESCAPE_SC (NVL (C.A_NUCLIDE_FRACTION, 'Null') |) ' => ' || NVL (C.B_NUCLIDE_FRACTION, 'Null')) | "< / div >"

    Of ANOTHER NVL (C.B_NUCLIDE_FRACTION, 'Null')

    END AS NUCLIDE_FRACTION

    Of

    (

    SELECT

    A.NUCLIDE,

    TO_CHAR(A.MASS, '999.99EEEE') AS A_MASS,

    TO_CHAR(A.NUCLIDE_FRACTION, '99999.999EEEE') AS A_NUCLIDE_FRACTION,

    ----

    TO_CHAR(B.MASS, '999.99EEEE') AS B_MASS,

    TO_CHAR(B.NUCLIDE_FRACTION, '99999.999EEEE') AS B_NUCLIDE_FRACTION

    Of

    V_URMT_COMPARE_NUCLIDE_DATA, A.

    V_URMT_COMPARE_NUCLIDE_DATA B

    WHERE

    1 = 1

    AND A.URMT_BTRS_PK = B.URMT_BTRS_PK

    AND A.NUCLIDE = B.NUCLIDE

    AND A.URMT_BTRS_PK = (SELECT URMT_BTRS_PK FROM W)-TO_NUMBER(:P202_URMT_BTRS_PK)

    AND A.URMT_NOTICES_ID = (SELECT EARLIER_NOTICE_ID FROM W) - TO_NUMBER(:P202_COMPARE_EARLER_NOTICE_ID) - PRIOR NOTICE (EXAMPLE: 30 DAYS)

    AND B.URMT_NOTICES_ID = (SELECT LATER_NOTICE_ID FROM W) - TO_NUMBER(:P202_COMPARE_LATER_NOTICE_ID) - FURTHER VIEWS (EXAMPLE: 7 DAYS.)  NOTE: PRIOR NOTICE IS COMPARED WITH OPINIONS LATER, FOR EXAMPLE, 30 DAYS IS COMPARED TO 7 DAYS)

    ) C

    UNION

    -ADDED NOTICE LATER NUCLIDES.  THEY DO NOT APPEAR IN THE EARLIER OPINION.

    SELECT

    "Added" AS the STATUS,

    (BY SELECTING ADD_STATUS_ORDER IN W) AS STATUS_ORDER,

    A.NUCLIDE,

    TO_CHAR(A.MASS, '999.99EEEE') AS A_MASS,

    TO_CHAR(A.NUCLIDE_FRACTION, '99999.999EEEE') AS A_NUCLIDE_FRACTION

    Of

    V_URMT_COMPARE_NUCLIDE_DATA HAS

    WHERE

    1 = 1

    AND A.URMT_BTRS_PK = (SELECT URMT_BTRS_PK FROM W)-TO_NUMBER(:P202_URMT_BTRS_PK)

    AND A.URMT_NOTICES_ID = (SELECT LATER_NOTICE_ID FROM W)-TO_NUMBER(:P202_COMPARE_LATER_NOTICE_ID)

    AND NOT EXISTS

    (SELECT NULL

    OF V_URMT_COMPARE_NUCLIDE_DATA B

    WHERE B.URMT_BTRS_PK = A.URMT_BTRS_PK

    AND B.NUCLIDE = A.NUCLIDE

    AND B.URMT_NOTICES_ID = (SELECT EARLIER_NOTICE_ID FROM W)-TO_NUMBER(:P202_COMPARE_EARLIER_NOTICE_ID)

    )

    UNION

    -DELETED THE PREVIOUS NOTICE NUCLIDES.  THEY DO NOT APPEAR IN THE NOTICE LATER.

    SELECT

    'Removed' AS the STATUS,

    (BY SELECTING REM_STATUS_ORDER IN W) AS STATUS_ORDER,

    A.NUCLIDE,

    TO_CHAR(A.MASS, '999.99EEEE') AS A_MASS,

    TO_CHAR(A.NUCLIDE_FRACTION, '99999.999EEEE') AS A_NUCLIDE_FRACTION

    Of

    V_URMT_COMPARE_NUCLIDE_DATA HAS

    WHERE

    1 = 1

    AND A.URMT_BTRS_PK = (SELECT URMT_BTRS_PK FROM W)-TO_NUMBER(:P202_URMT_BTRS_PK)

    AND A.URMT_NOTICES_ID = (SELECT EARLIER_NOTICE_ID FROM W)-TO_NUMBER(:P202_COMPARE_EARLER_NOTICE_ID)

    AND NOT EXISTS

    (SELECT NULL

    OF V_URMT_COMPARE_NUCLIDE_DATA B

    WHERE B.URMT_BTRS_PK = A.URMT_BTRS_PK

    AND B.NUCLIDE = A.NUCLIDE

    AND B.URMT_NOTICES_ID = (SELECT LATER_NOTICE_ID FROM W)-TO_NUMBER(:P202_COMPARE_LATER_NOTICE_ID)

    )

    ) X

    )

    I have searched this forum for clues but found nothing.

    Any help would be appreciated.

    Thank you.

    Elijah

    EEG wrote:

    I'll now try to place my report within a packaged procedure, and then run it from there.  You don't love doing cela, but seem to don't have is not a choice.

    Elijah

    Huh?  How can you put a SELECT statement in a procedure?  you return a cursor reference?

    You create VIEWS.  You have three sections.  Give an opinion on each of them.  Test them with SQL Developer (or SQL * more)

    Build from there.

    In fact, it looks like you are trying to compare two tables"and return a DIFF

    THINKING IN SETS

    Use the WITH clause to build a 'virtual' table for EARLIER_NOTICE and a 'virtual' table for LATER_NOTICE.

    Use FULL OUTER JOIN to compare the two.

    THE FORMAT OF THE EXAMPLE:

    select * from (
    with w as ( .... )
    ,table_A as ( -- build the Virtual Table for EARLIER_NOTICE
    SELECT *
     FROM
     V_URMT_COMPARE_NUCLIDE_DATA A1
       join W on (A1.urmt_btrs_pk, W.urmt_btrs_pk  and A1.earlier_notcie_id=W.earlier_notice_id)
    
    --  old code
    -- WHERE
    -- 1 = 1-- why???
    -- AND A.URMT_BTRS_PK     = (SELECT URMT_BTRS_PK FROM W)    --TO_NUMBER(:P202_URMT_BTRS_PK)
    -- AND A.URMT_NOTICES_ID = (SELECT EARLIER_NOTICE_ID FROM W)   --TO_NUMBER(:P202_COMPARE_EARLER_NOTICE_ID)
    ,table_b as ( -- build the Virtual Table for the LATER_NOTICE
    
     select *
     from
    
     V_URMT_COMPARE_NUCLIDE_DATA B1
       join W on (b1.urmt_btrs_pk = W.urmt_btrs_pk  and b1.urmt_notice_id=W.later_notice_id)
    )
    
    --/*** NOW - WE COMPARE THE TWO ***/
    select CASE
        when A.urmt_btrs_pk is null then 'ADDED'
        when B.urmt_btrs_pk is null then 'DELETED'
        else 'possibily updated'
    end CHANGES_MADE
      , A.*
      , B.*
    
    FROM TABLE_A A FULL OUTER JOIN B
    ON (
     A.URMT_BTRS_PK = B.URMT_BTRS_PK
    AND A.NUCLIDE = B.NUCLIDE )
    




  • APEX export report rerun the query

    Hi all!

    Version-
    Oracle 11.2
    Apex 4.1

    We have a report of Apex that is generated by calling a function. When the report is displayed in the area, when you click Export to export to CSV, the query is executed again. The report should not be exported without rerunning the query?
    Y at - it all parameters must be configured to disable the query to new while exporting a report or it comes to APEX?

    Thanks in advance.

    -SS.

    Export a report is a separate application and it will get the requested data and create a CSV file out of it. Thus, the query will always to run once more. The report that you view on your page will always get only that number of lines to the customer as requested in the paging and the condition in your report can ask many more lines.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • APEX-PDF-reports: Add IDS and data more on behalf of file-PDF

    Hello
    I create a report layout in APEX, and a report query to export data to a PDF file (I use BI Publisher).
    It works fine, but now I need to add the ID and some other information to the file name.

    Because if the user create PDF files, it should be able to see, this file is for which data...

    How can I do this?

    Kind regards
    Mark

    Hi Mark,

    The file name is based on the name of your report query. If you want to specify your own file name, your best option would be to create a process of the page to start the download of your report by calling the API print APEX directly, here are the API, you must call, it is documented here:

    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDGFADB

    APEX_UTIL. () DOWNLOAD_PRINT_DOCUMENT
    p_file_name in VARCHAR,
    p_content_disposition in VARCHAR,
    p_application_id in NUMBERS
    p_report_query_name IN VARCHAR2,
    p_report_layout_name IN VARCHAR2,
    p_report_layout_type IN VARCHAR2 default 'xsl - fo.
    p_document_format IN VARCHAR2 default 'pdf '.
    p_print_server IN VARCHAR2 default null);

    Just specify the desired, dynamic name including IDS, or information you need for the content-disposition header, you can use "attachment" or "inline" and then enter your application ID, the name of your query and report layout and the desired output format. Print server argument can be NULL to use the server instance to the scale defined reports.

    Kind regards
    Marc

  • is the result data for the APEX linkable report, able to put in place another report?

    I'm working on a directory. If the user enters John as first name and Smith as a surname, after "enter" John Smith will appear, with all its details such as his Department, title, email, telephone, rental of office etc.. Is possible that the Department is a link and if the user clicks on the link they will consider the entire Department is the list?

    Thank you very much for the help.

    MZ

    Yes, it is possible... When you build select it, you would go in the setup of the region and the column you want make a link to another report: http://st-curriculum.oracle.com/obe/db/apex/r40/apexirr/apexirradv/apexirradv_ll.htm

    Thank you

    Tony Miller
    Webster, TX

  • Default appearance on APEX interactive report

    I'm working against the latest version of the APEX. I created a simple interactive report based on an SQL query. When you run interactive this report there is a gray bar directly above the search bar at the top of the browser window. Does anyone know which file needs to be changed to get rid of this?

    Also I was wondering where I go to change the setting so that it displays not the 1-4 at the bottom right of the page, just below the report results.

    Thank you in advance,
    Wes

    Wes,

    Under shared-> templates components, change the model "without tab - Right Sidebar (optional / table-based)", in the "Body" section, delete the following code...

    Thank you
    Machaan

  • APEX interactive report OnMouseOver Row

    Hello

    I have an interactive report and I need some things to display when the user is MouseOver a certain rank of a column.
    I have no ideea how can I add an OnMouseOver event on a certain column in a report.
    Thanks in advance.

    Kind regards
    Cearnau Dan

    APEX 4.0 10g XE

    Hello

    I'm not sure what you're looking for. But you want to say something like that?
    https://Apex.Oracle.com/pls/OTN/f?p=40323:66

    When you place the cursor on the cell with the value MANAGER, alert is displayed.

    This can be done with javascript in the HTML page header

    
    

    Kind regards
    Jari

  • Apex slow report but not in dev?

    Hello world

    as the title says I have a problem with the speed of my reports (I.R.).
    The scenario is this: I report with a filter at the front which is not rendered until at least one of 6 possible values is defined. The statement underlying the report is large enough (about 8 tables with millions of rows, but each of them is indexed nicely) so a filter is necessary. The preparation of the declaration, that everything worked perfectly, since each of the given values is a single point of entry in the data model and access roads resulting for the optimizer were always "unique index scan" or "range of index scans.
    Now the problem is that I don't have many of the 6 values the user will now use. That's why I had to make every filter criteria in the statement as follows:

    WHERE (customer_id =: P1_CUSTOMER_ID or: P1_CUSTOMER_ID IS NULL)
    AND (= client_name: P1_CUSTOMER_NAME or: P1_CUSTOMER_NAME IS NULL)
    and so on...

    My problem is that when the value is giving the execution plan result is obviously horrible. But given that the report is not rendered unless there is at least a set of values, this isn't the problem right?

    Unfortunately, Apex doesn't seem to work that way, as it always uses the execution plan that has no values listed. As revealed a SQL Trace.
    Unfortunately, I can work only with limited hints (first_rows and others), since forcing him an index does not work.

    Any of you guys have an idea, how can I solve this problem?

    Published by: docdir on January 29, 2010 06:15

    Docdir wrote:
    Hey everybody,

    Thanks for your interest. As I already mentioned the query itself is not the issue because it works very well in sqlplus and produces a brilliant execution plan when a value is provided. Here it is:
    ...
    and (buis_type.id =: P10_BUISNESS_TYPE or: P10_BUISNESS_TYPE is NULL)
    and (buis.id =: P10_BUISNESS_ID or: P10_BUISNESS_ID is NULL)
    and (as buis_lo.title: P10_TITLE or: P10_TITLE is NULL)
    and (as buis_lo.versiontitle: P10_VERSION_TITLE or: P10_VERSION_TITLE is NULL)
    and (as buis_lo.displaytitle: P10_DISPLAY_title or: P10_DISPLAY_title is NULL)
    and (buis_lo.locale_id =: P10_LOCALE_ID or: P10_LOCALE_ID is NULL)
    and (CUSTOMER.id =: P10_CUSTOMER_ID or: P10_CUSTOMER_ID is NULL)
    and (customer.name to the client as: P10_CUSTOMER_NAME or: P10_CUSTOMER_NAME is NULL)
    and (lic. CONTENTCATEGORY_ID =: P10_CONTENTCATEGORY_ID OR: P10_CONTENTCATEGORY_ID is NULL)

    I seriously doubt that you will get the execution plan in SQL Plus. If you add values then this is a diferent request. You must use liaison even variables in sqlplus to compare the execution plan. How have you seen the execution plan in sql * more?

    The problem is not to do much with APEX. For the first part, it's just a pure sql problem.
    However. You could create DIFFERENT reports with different behind sql queries or regions. According to the chosen input values, you can decide what region/query will be executed.

    Example not tested

    /* region one:  INPUT = customername */
    ...
    and (buis_type.id =  :P10_BUISNESS_TYPE OR :P10_BUISNESS_TYPE is NULL)
    and (buis.id = :P10_BUISNESS_ID OR  :P10_BUISNESS_ID is NULL)
    and (buis_lo.title like :P10_TITLE OR :P10_TITLE is NULL)
    and (buis_lo.versiontitle like :P10_VERSION_TITLE OR :P10_VERSION_TITLE is NULL)
    and (buis_lo.displaytitle like :P10_DISPLAY_title OR :P10_DISPLAY_title is NULL)
    and (buis_lo.locale_id = :P10_LOCALE_ID OR :P10_LOCALE_ID is NULL)
    and (CUSTOMER.id = :P10_CUSTOMER_ID OR :P10_CUSTOMER_ID is NULL)
    and CUSTOMER.name like :P10_CUSTOMER_NAME
    and (lic.CONTENTCATEGORY_ID = :P10_CONTENTCATEGORY_ID OR :P10_CONTENTCATEGORY_ID is NULL) 
    
    /* region two: INPUT = Business ID choosen */
    ...
    and (buis_type.id =  :P10_BUISNESS_TYPE OR :P10_BUISNESS_TYPE is NULL)
    and buis.id = :P10_BUISNESS_ID
    and (buis_lo.title like :P10_TITLE OR :P10_TITLE is NULL)
    and (buis_lo.versiontitle like :P10_VERSION_TITLE OR :P10_VERSION_TITLE is NULL)
    and (buis_lo.displaytitle like :P10_DISPLAY_title OR :P10_DISPLAY_title is NULL)
    and (buis_lo.locale_id = :P10_LOCALE_ID OR :P10_LOCALE_ID is NULL)
    and (CUSTOMER.id = :P10_CUSTOMER_ID OR :P10_CUSTOMER_ID is NULL)
    and (CUSTOMER.name like :P10_CUSTOMER_NAME OR :P10_CUSTOMER_NAME is NULL)
    and (lic.CONTENTCATEGORY_ID = :P10_CONTENTCATEGORY_ID OR :P10_CONTENTCATEGORY_ID is NULL) 
    

    You can also use different hint in the select statement to force the optimizer to choose a special map, you prefer. But that shouldn't be necessary.

    This is only of a poor workaround, but it might be useful.

    BTW: decode is able to compare NULL values. But point you might not equal to NULL.

    Published by: Sven w. February 1, 2010 16:44

Maybe you are looking for

  • I would like to spelling to reflect the American English spelling English not British.

    When I use LibreOffice Writer, the spell checker uses American English. When I'm in Firefox, however, the spell checker uses British English, i.e. favorite favorite instead. Firefox used to spell according to American English. I would like to convert

  • Why my iPad says I used all my gigabytes?

    I don't have any app!

  • XControl publish subscribe?

    Hi all I'm trying to implement a publication if subscribe model messaging using XControls and LVOOP. I have various XControls that represent different views of the State of an object. I want all my (clients) XControl to be updated when the object (ed

  • Helix cannot sleep when closing lid

    Helix does not sleep after closing cover, even if I put the to let him sleep in power management in windows. Previously, I don't have this problem. Didn't notice that anything changed. Any suggestions? Thank you!

  • Repeated low disk message.

    I get the message low disk all the time. I run Disk Cleanup daily and he returned. I don't want to receive notifications, I want the problem to stop. I run Disk Cleanup daily and it does not help. Is it possible to solve the problem? I can't run syst