Apex Defination report template class

Hello

I'm new to Apex. I'm looking into Oracle built in Packgae Aria people.

Please tell us how can I see the definition or the class source code = ariaHeader used in the report Template (Person_Detail).

I saw that he used many classes used in various custom models that did not come with the default installation.

I would like to create my own as well.

Kind regards
Harinder

You can ask your question in the forum of the APEX.
[OTN to Oracle Application Express forum | http://forums.oracle.com/forums/forum.jspa?forumID=137]

Tags: Fusion Middleware

Similar Questions

  • In my custom report template link doesn't work - Apex 3.1

    I created a report model based on my report columns

    The report of my query is:
    SELECT ID, NAME, MEM_DATE_NAIS BIRTH MEM_NOM MEM_NAS
    OF ACMT_MEMBRE;

    My custom report template have this definition of the line template:
    < tr onclick = "redirect ('f?)" p = & APP_ID.:6: & SESSION. (: 6:P6_NAS: #ID #'); ">
    < class td #ALIGNMENT # = "t16data_edit" > #NAME # < table >
    < class td #ALIGNMENT # = "t16data_edit" > #BIRTH # < table >
    < /tr >

    This would redirect to page 6, when the user clicks anywhere on a line, but it does not work.
    I have this error message:
    CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ("> CHECK$ 01'); ">

    I realized that this problem is caused by #ID # because if I encode this ID, it works.
    How my report model can get the 'ID' of my query report?

    Apex version: 3.1

    Published by: mario_romero77 on 8 June 2012 10:06

    >

    As requested previously, use .

    ...\
    

    Tags.

    Hi fac586:

    (1) my request report is:

    SELECT '''f?p=&APP_ID.:6:&APP_SESSION.:::6:P6_NAS:'||MEM_NAS||'''' LINK
    ,MEM_NOM NAME
    ,MEM_DATE_NAIS||decode(MEM_DATE_NAIS, NULL, NULL,' >') BIRTH_DATE
    FROM ACMT_MEMBRE
    

    I wouldn't try to include the quotes here: put them in the template (below):

    SELECT 'f?p=&APP_ID.:6:&APP_SESSION.:::6:P6_NAS:' || MEM_NAS LINK
    ,MEM_NOM NAME
    ,MEM_DATE_NAIS||decode(MEM_DATE_NAIS, NULL, NULL,' >') BIRTH_DATE
    FROM ACMT_MEMBRE
    

    (2) here are all the HTM in the sections of the report model:
    Models of the line: line model 1

    <tr onclick="redirect("#LINK#");">
    #NAME#
    #BIRTH_DAY#
    
    

    You cannot nest quotes of the same type (and note that this is not what you posted previously). Use:

    <tr onclick="redirect('#LINK#');">
      #NAME#
      #BIRTH_DAY#
    
    

    (3) the display attributes for the columns of the report are:

    Link: hidden

    As previously stated, in a model of named column, column values are not "hidden" just because the user doesn't see them: if it is referenced in the model column must be shown and "displays" in an appropriate form. In this case, it should be Standard report column. (Displayed as 'Hidden' will be generated a < input type = "hidden"... > element, which is where all of these weird attributes in the output of.)

  • Is it possible to change the default report templates CSS?

    Hi folk, is there a way to change the default report templates CSS or HTML?

    At APEX 3.1, I have the default templates for reports:

    default: Look 1
    default: Look 2
    ... default: Watch 5

    It only allows me to change the templates that I have created. Thank you and best regards.

    default: report models are hardwired into APEX and cannot be changed the way the theme templates can.

    Using the web Inspector in a browser with the tools of development such as Safari or Firefox + Firebug you can look at the source of the report with a default: model to determine the HTML structure and classes used and applied by the APEX CSS selectors, then override these in your own style sheet, or create a custom from scratch theme template.

  • 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

  • MSDS report templates

    I'sdlike to use templates of reports, but TMS > Reporting > Reporting Templates no records exist under 'My models' or 'all '. I don't see a way to add a model, no such imports.

    Amodule statement which must be purchased under license and installed?

    Paul

    Hi Paul:

    You create a template by going to one of the Reporting menus (e.g. detail record call--> end points, for example) and by searching based on criteria you choose.  If you want to save the search, you click 'Save as template' in the reports page on which you ran the research.  It will prompt you to enter a model name; Once registered, it will then appear under TMS--> Reporting--> report templates.

    TMS online help file:

    Creating a template

    Creating a report model can be done on most of the pages viewed in Cisco TMS:

    1. Click on Save as template button in the field of the request.
    2. Enter a unique name for your model.
    3. Click Save.
    4. The saved query will be available in models reports page.

    Try it using the page of detail records call for your end points - shouldn't it need to buy additional licenses for the above information are available.

    HTH-

    Tina

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

  • Permissions on the report templates &amp; views

    Is it possible to give a non admin user permission to copy a view exsisting or models or give him the right to create a new view or report templates without the ability to remove or modify the default / built-in views and models report?

    The user must be able to remove the views & templates report he created or copied himself.

    I tried this but as soon as the user got delete it or change the law he was also able to remove or change models and integrated views.

    UPDATED July 18, 2016: I dropped a request for service at VMware for that matter.

    Het bericht is bewerkt door: Simmetje

    VMware support response:

    Hi Rob,

    I have troubleshooted this extensively in my 6.2.1 lab environment and concluded that it is not possible to achieve in vROps at the moment and we look at a feature request.
    I came to the same conclusion that you mentioned in the case where as soon as the user got delete or modify right he was also able to remove or change models and integrated views.
    Even a view or a report created and owned by the local user admin can be deleted by a user to test if they have the delete permission that their responsibilities under the management of the views. If you don't give them the delete permission, even when they create a notice or report that they own, they are not able to remove it.

    In contrast to the dashboards, which can be shared by the local user administrator and set up for a user in turn, views and reports are not the same.

    In order to put this file, we would suggest to send a feature request. Would you mind signing your request using the link below:

    http://www.VMware.com/company/contact/contactus.html?Department=prod_request

    It is the best way to get traction on requests for features or product improvements, you can have.
    The RSS link in the various heads of product and based on the feedback they receive, they have the opportunity to submit requests/improvements of features for future product versions.

  • How to define a style class?

    Hello

    I have a selector in my css to look similar to the following file:

    AF | panelHeader {}
    background-image: url("..) /.. (' / images/thanks ");
    background-repeat: no-repeat;
    background-position: center;
    }

    As you know it is applied to each panelHeader component in the application, but I want to apply to one of the components of panelHeader and not others. I know that this could be done using style classes, but I couldn't find how to define a style class. Could you please tell me how to define a style class based on the selector above?

    Kind regards
    Will do

    Hello.
    check this post to Lucas Jellema
    http://technology.AMIS.nl/Blog/5722/using-ADF-faces-11g-skinning-for-setting-the-styles-of-specific-component-instances-or-groups-of-instances

  • SQL Developer 3.1 EA3 impossible to import / export user defined reports

    Hi gentlemen,

    Name says it all. Import / export do not appear more or in the drop down menu to the users defined reports, or export to other reports (DD or shared reports).

    Best regards
    Olivier.

    They now save as / Open...

    Hope that helps,
    K.

  • Customization of report templates

    I was looking for a copy and customize default report template, but I can't locate via the model search form.

    I'm looking for the ' default: vertical report, watch 2 (include columns null)'

    In fact, none of the 'default' models appear under ' shared components > models

    Someone had some luck finding these? I am running on request Express 4.0.2.00.07

    Thank you
    Jeremy

    Hello

    You cannot change the models 'by default'
    Re: Change default report model Look 3

    Kind regards
    Jari

  • Dynamic where clause of user defined reports

    Hello everyone,

    Is there a way to make / calculate a where clause clause in a user defined report according to the value of some bind variables?
    I am trying to remove where the terms of my application if the binding variable is not defined.
    previously, I did something as
    AND tab.column = nvl (: colum_bin, tab.column)

    but there are problems in implementation plans.

    Stone

    Sure that you can not, but how about you to rewrite the NVL in

    OR: colum_bin IS NULL

    Hope that helps,
    K.

  • Remove the sign $ pre-defined reports

    Hello

    You have an idea how the sign $ pre-defined reports can be removed?


    Thank you
    Ionela

    Do in the formatting of the column data.

  • On the report templates in the Apex and report queries

    Hi all.

    I'm reading about models and report queries and asks me to use cases of these options. I have two questions:

    -Can be used to print reports of special loyalty, such as printing a document (invoice, invoice, check)?

    -Make the report accept queries settings? for example, you can filter specific data...?

    Any other uses?

    Best regards, Luis...!

    Your welcome. Review the marking of the answers correct or useful in order to help other people traveling the same road. :)

  • 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

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




Maybe you are looking for