Help needed in the table in the Table using the OPS approach

We have a requirement in the OPS in which the region of the page of search results should provide details of the header. And in the header Details there is a show and hide the button that would show details of line corresponding to the header (such as the Table - to - Table).



For more details header I used table under the tip, I used region of detail and there I created the table for more details of line.

I also created see links in the header details links discovers the object and a view object Details.



I put in the request of the controller process method, see link name and name of the child attribute for external table (table details header) and the inner table (line details table)



When I launch OAF page, I get the error below. I am facing this error when I tried to put the link name view attribute and child of the internal table (i.e. table line details) in the controller.

Retail 0 #.
java.lang.NullPointerException
at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.updateInnerTableProperties (unknown Source)
at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.processRequestAfterController (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.processRequest (unknown Source)
at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.processRequest (unknown Source)
at oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean.processRequest (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest (unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean.processRequest (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest (unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.processRequest (unknown Source)

User - try the framework OFA Forum

Tags: Java

Similar Questions

  • Help needed on the BIC


    Hi team,

    Please help on the below questions on BICS.

    1. How do I delete records that has been loaded into the DATABASE LOADER?

    2. how to remove the database tables in DATA MODELER?

    3. how change the data type varchar to Date format in the DATA LOADER loading data?  I can see only the number and the type varchar.

    4. after the publication of the data model with success, I can create visual reports. If I change the data model for all the changes, the join conditions are go (missing persons) automatically. Don't know why its happening. I have to recreate the model again for this.

    Please provide documentation for the same if no.

    Thank you

    Malli

    At the beginning of the end, the tabs are domain names when loading data using the data loader fixed the issue with the knuckles that disappears into the data model.

    We can delete, create, and can change the formats of data using Oracle Apex for BICS.

    Thank you

    Malli

  • SQL query help needed in the Clause type

    Hello

    I'm currently learning Clause type. How can I write in the clause type to get the result below:

    I have a table like this

    DEPTNO ENAME

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

    20 SMITH

    CELINE 10

    BOND 20

    ALLEN 30

    WARD 30

    20 JONES

    30 MARTIN

    30 BLAKE

    10 CLARK

    SCOTT 20

    10 KING

    30 TURNER

    20 ADAMS

    30 JAMES

    20 FORD

    10 MILLER

    I want the output should look like this

    DEPTNO ENAME

    ------     -----

    CELINE 10, CLARK, KING, MILLER

    20 JONES, ADAMS, BOND, FORD, SCOTT, SMITH

    30 MARTIN, JAMES BLAKE, WARD, TURNER, ALLEN

    Hear is the script I am currently working on.

    with emp_group as

    (

    Select 20 deptno, ename 'SMITH' Union double all the

    choose 10, 'CÉLINE' from dual union all

    Select 20, "BOND" of all the double union

    Select 30, 'ALLEN' from dual union all

    Select 30, 'WARD' of all the double union

    Select 20, "JONES' from dual union all

    Select 30, 'MARTIN' from dual union all

    Select 30, "BLAKE" from dual union all

    choose 10, 'CLARK' from dual union all

    Select 20, 'SCOTT' from dual union all

    choose 10, 'KING' of the dual union all

    Select 30, 'TURNER' from dual union all

    Select 20, 'ADAMS' from dual union all

    Select 30, 'JAMES' of the dual union all

    Select 20, 'FORD' Union double all the

    choose 10, 'MILLER' from dual

    )

    Select

    DEPTNO

    A1

    of emp_group

    model

    ignore the nav

    partition (deptno)

    dimension (ROW_NUMBER() over (PARTITION BY deptno ORDER BY ename DESC) rn)

    measures (ename, LPAD(' ', 100) A1)

    rules)

    A1 [rn > 0] = ename [cv ()],

    A1 [0] = ename [cv ()]

    )

    order by deptno

    ;

    your help is very appreciated.

    Thank you in advance.

    Try this.

    Select

    *

    Of

    (

    with emp_group as

    (

    Select 20 deptno, ename 'SMITH' Union double all the

    choose 10, 'CÉLINE' from dual union all

    Select 20, "BOND" of all the double union

    Select 30, 'ALLEN' from dual union all

    Select 30, 'WARD' of all the double union

    Select 20, "JONES' from dual union all

    Select 30, 'MARTIN' from dual union all

    Select 30, "BLAKE" from dual union all

    choose 10, 'CLARK' from dual union all

    Select 20, 'SCOTT' from dual union all

    choose 10, 'KING' of the dual union all

    Select 30, 'TURNER' from dual union all

    Select 20, 'ADAMS' from dual union all

    Select 30, 'JAMES' of the dual union all

    Select 20, 'FORD' Union double all the

    choose 10, 'MILLER' from dual

    )

    Select

    DEPTNO

    names

    rn

    of emp_group

    model

    ignore the nav

    partition (deptno)

    dimension of)

    ROW_NUMBER() over (PARTITION BY deptno ORDER BY ename) rn

    )

    measures (ename, cast (null as names of varchar2 (40)))

    rules

    (

    names [any] order by desc = ename [cv ()] rn | «, » || names [cv () + 1]

    )

    order by deptno

    )

    where rn = 1

    Best regards, Andrei

  • Help needed in the list item... need display a selected Department employees

    Hi all
    I am very beginner in D2K technology. I use Forms 10g.
    Could you please help me...

    I created a list item that contains dept_id = 10, 20, 30...

    My requirement is when I change the value of the dept_id (select dept_id = 20), the employees belong to this desire to display dept (to display 5 dept 20 employees).

    I created two block - block2, block3 hepatitis has

    In block2, there is a list item

    Block3, there is an element of the screen and I've changed the number of properties displayed in block 10.

    I have atteched a trigger when-list-changed and the code is:
    Select last_name in: block3.item14 of employees where department_id =:block2.item4;

    But it does not work...

    Thanks in advance,
    Tapan.

    Published by: user630863 on August 8, 2010 21:20

    Published by: user630863 on August 8, 2010 21:55

    Well, the 'right' wa would be in the basic block 3 on the emp table database, set the somthind as where clause

    DEPTNO=:BLOCK.THE_LIST_ITEM:
    

    If you want to stay with the 'wrong' way to fill th eblock by yourself, try something like

    GO_BLOCK('BLOCK3');
    CLEAR_BLOCK(NO_VALIDATE);
    FOR rec IN cursor LOOP
      IF :SYSTEM.RECORD_STATUS!='NEW' THEN
        CREATE_RECORD;
      END IF;
      :BLOCK3.LASTNAME:=rec.LASTNAME;
    END LOOP;
    
  • Help needed on the export of the Photo App

    I'm a photo hobbyest with thousands of photos stored in my Mac using the Photos app. I already saved them on Time Machine and iCloud. However, I try to upload some on an external hard drive but can't.  The Photo app continues to CHANGE the resolution of my images when I export them.  Here is what happens...

    • I have uploaded a JPEG of 5 MB in the Photo app earlier this year.
    • Now, I'm ready to take a copy of this picture on my external hard drive.
    • If I just move the original photo to the Photo app on my counter top, the resolution GOES from 5MB to 2.1 MB.
    • If I export 'The Original unmodified' I lose all the changes that I made in the Photo app.
    • If I export the 'High' quality jpeg image, it DROPS my resolution of 2.1 MB.
    • If I export the photo to the "Maximum" quality jpeg, it INCREASES my resolution to 14.3 MB!
    • I found NO WAY to download my original photo size!

    Question... How to export or copy an image from within the app of the Photo on an external hard drive with the resolution of the EXACT SAME as it is?

    Thank you!

    You first need to understand the resolution - the file size is not resolution - the resolution concerns the dimensions in pixels of the image - file to a JPEG file size is determined by the compression you choose - compression of the image does not change the dimensions in pixels of all - compression removes the donnΘes form the pictures and all JPEG in theory is inferior finial an uncompressed image as TIFF - but for practically all the uses, it does not matter

    When you export a modified version of the photo you create a new file that contains the image and the size of the files is determined by the selections you make and has no resolution at all to the original file

    Photos has limited control over file size - ir you want a file size, then export a copy of very high quality (maximum or even a TIFF uncompressed) and use another program that gives you more control to compress in the JPEG compression you want

    But at the end of the day the size of the file is really no different and it is very likely that the big JPEG will give you the same results as an uncompressed TIFF

    LN

  • Help needed on the BlackBerry PUSH API

    Hi ALL, I've learned that by using the BlackBerry PUSH API, we can send data to any user of blackberry (beyond the company) (reference: BlackBerry_Push_APIs_Whitepaper.pdf).

    (1) is it necessary to configure BlackBerry Enterprise Server to use the BlackBerry PUSH API.

    (2) using the PUSH API, can we send data or store data or add data to a file in persistent memory on the BlackBerry smartphone.

    Thanks in advance.

    you need a bes

    You can do whatever you want with the received data, which includes adding them to the other persistent memory stuff.

  • Help needed in the parameter validation and ownership

    Hello Denzz/Dupont,

    Sorry for the confusion between you guys, but please find a new parameter of condition that I need for a property evaluation and validation above top of it.

    I have 2 Essbase property i, e Essbase.ASO.DataStorage and Essbase.BSO.DataStorage that are defined with the default as empty from now.

    I want to do it derived property satisfying the scenarios below.

    (1) all the Member of sheet under hierarchy account should be Essbase.ASO.DataStorage = Nevershare

    All the Limb Member of the hierarchy that account must have Essbase.ASO.DataStorage = StoreData

    (2) all the leaf Member of the hierarchy that account must have Essbase.BSO.DataStorage = Nevershare

    All the Limb Member of the hierarchy that account must have Essbase.BSO.DataStorage = DynamicCalc

    (3) as it is requested to the point 2, all the sheet military under the hierarchy ought to have Essbase.BSO.DataStorage = Nevershare

    (with condition applied here)

    Essbase.Bso.Formula property if it is filled or have all the values in it, then Essbase.BSO.DataStorage should be replaced by DynamicCalc

    Alternatively it can be Nevershare if Essbase.Bso.Formula property is empty.



    I also want a parameter validation here, if the user tries to change all values in these two different properties of the derived value, then it should give them a validation error.


    Yes it would be then that node add and that was my main reason to ask if it worked - the fire

    The thing is it prevents the two properties ASO and storage BSO to have empty values and while creating nodes these accessories will be empty

    OK try this-

    If (PropValue (Core.Leaf),

    And)

    If)

    IsBlank (PropValue (Custom.Essbase.BSO.DataStorage)), it's true.

    If)

    IsBlank (PropValue (Custom.Essbase.BSO.Formula)).

    Equals (String, PropValue (Custom.Essbase.BSO.datastorage), Nevershare),

    Equals (String, PropValue (Custom.Essbase.BSO.datastorage), DynamicCalc)

    )

    ),

    If)

    IsBlank (PropValue (Custom.Essbase.ASO.DataStorage)), it's true.

    Equals (String, PropValue (Custom.Essbase.ASO.datastorage), Nevershare)

    )),

    And)

    If)

    IsBlank (PropValue (Custom.Essbase.ASO.DataStorage)), it's true.

    Equals (String, PropValue (Custom.Essbase.ASO.datastorage), StoreData)

    ),

    If)

    IsBlank (PropValue (Custom.Essbase.BSO.DataStorage)), it's true.

    Equals (String, PropValue (Custom.Essbase.BSO.datastorage), DynamicCalc)

    ))

    )

  • Help needed - debug the script.

    Hi Experts,

    Can someone help me to debug the script below.

    Basically, I'm just checking the dates of a column DATE_NAME and if its between the selected range, I'm assiging a number.

    Select DATE_NAME, CASE
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (15 - DEC ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (10-JAN ',' DD - MY '), "JJ - LUN")) THEN 1
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (11-JAN ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE ('07 - FEB ',' DD - MY '), "JJ - LUN")) THEN 2
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE ('08 - FEB ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE ('07 - MAR ',' DD - MY '), "JJ - LUN")) THEN 3
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE ('08 - MAR ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE ('04 - APR ',' DD - MY '), "JJ - LUN")) THEN 4
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE ('05 - APR ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE ('02-MAY ',' DD - MY '), "JJ - LUN")) THEN 5
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE ('03-MAY ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (MAY 30 ',' DD - MY '), "JJ - LUN")) THEN 6
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (MAY 31 ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (27 - JUN ',' DD - MY '), "JJ - LUN")) THEN 7
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (28 - JUN ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (25 - JUL ',' DD - MY '), "JJ - LUN")) THEN 8
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (26 - JUL ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (22 - AUG ',' DD - MY '), "JJ - LUN")) THEN 9
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (23 - AUG ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (19-SEP ',' DD - MY '), "JJ - LUN")) THEN 10
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (20-SEP ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (17 - OCT ',' DD - MY '), "JJ - LUN")) THEN 11
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (18 - OCT ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (14 - NOV ',' DD - MY '), "JJ - LUN")) THEN 12
    WHEN
    Trim (to_char(DATE_NAME,'DD-MON')) BETWEEN the TRIM (TO_CHAR (to_DATE (15 - NOV ',' DD - MY '), "JJ - LUN")) AND TRIM (TO_CHAR (to_DATE (12 - DEC ',' DD - MY '), "JJ - LUN")) THEN 13
    0 OTHERWISE
    END AS D_TIME PERIOD;

    Any help will be appreciated.

    PS: DATE_NAME is of DATE data type.

    Thank you
    G

    Published by: Gurusank on June 24, 2009 15:53

    Do not convert the date to a string for comparison. For example your following code snippet:

    TRIM(TO_CHAR(DATE_NAME,'DD-MON')) BETWEEN
         TRIM(TO_CHAR(to_DATE('15-DEC', 'DD-MON'),'DD-MON') )
          AND
         TRIM(TO_CHAR(to_DATE('10-JAN', 'DD-MON'),'DD-MON')) 
    

    should be written as

    DATE_NAME BETWEEN to_DATE('15-DEC', 'DD-MON')
    and to_DATE('10-JAN', 'DD-MON')
    

    Are you sure avoiding the year (YYYY) in your format to to_date mask. This will affect current year to date
    In this case, something like

    TO_DATE(TO_CHAR(DATE_NAME,'DD-MON')), 'DD-MON') BETWEEN
       to_DATE('15-DEC', 'DD-MON')
       AND
       to_DATE('10-JAN', 'DD-MON')
    

    (It could be an effective way to make this part. Nothing is striking for me from now on.)

    I hope this helps.

    Kind regards
    JO

  • Help needed in the management LR5.7 and color

    LR5.7 in the print module - the printer settings - I cannotget predefined a pop up screen under the settings tab to go to advanced or anywhere else, so I can't disable the printer management. I want to activate the icc profiles print from LR

    What is your OS and the brand/type of printer?

  • Help needed on the links between drop-down list boxes

    Hello

    I use 8 adobe life cycle designer to make shapes. These forms are usesd to collect information on people working in the health sector.

    I want to use drop-down lists that are "connected". According to the choice made in the first box, the user will receive new options in the second box.

    Example:

    Dropbox 1

    Values

    -value 1

    -value 2

    -value 3

    Dropbox 2

    If the value of things 1 user, they can choose the following values in dropbox 2:

    -Value has

    -Value B

    If the value of things 2 user, they can choose the following values in dropbox 2:

    -Value C

    -Value D

    If the value of things 3 user, they can choose the following values in dropbox 2:

    -Value E

    -Value F

    I've been puzzeling for awhile, but impossible to find the solution for this.

    Thanks in advance

    Daniel

    I'm compatible pdf for ES 8. Now we work. https://workspaces.Acrobat.com/?d=qBsk3hERFH2RcSn5vQ5rBg

    When the script does not check

    scripting language - javascript

    ObjectName - is your identical objectname (when your dd called dd_choice2 or dropbox_2, then you must modify the script)

    case "123":
            dropbox_2.clearItems();
            dropbox_2.addItem("Please select a value");
            dropbox_2.addItem("456");
            dropbox_2.addItem("789");
            dropbox_2.selectedIndex = 0;
            break;
    

    The behavior is correct when you copy them.

    You select '123 '.

    2 JJ '456' and '678 '.

    You select "456".

    2 JJ "123" and "678".

    You select "678".

    2 JJ '456' and '678 '.

    Please give your feedback tomorrow if it's work.

    Kind regards Mandy

  • Audit for each record in a table using PL/SQL

    Hello gurus,

    I would need your help to find the best approach to address to the below analysis using PL/SQL.

    I have a table that contains two columns

    Username and months

    I want to know the users who made orders each month during the first half of the 2012.That is the user ordered on Jan 2012, Feb2012... and June 2012.

    The table is huge and has more than 1 million records. How do I approach this in PL/SQL.

    --
    Joe

    You can use the cursor if you wish...
    Try this

    declare
    cursor c1 is
    SELECT user name, counting the months (separate months)
    From your_table
    Months WHERE the ("Jan 2012', ' February 2012', ' March 2012',..., 'June 2012'" ' ")
    GROUP BY userid
    HAVING COUNT (distinct months) = 6;

    Start
    I'm looping c1

    insert into insert_table (userid) values (i.userid);

    end loop;
    end;
    /

  • Need help to read the xml file and place it in a table.

    Nice day!

    Here is the configuration. I have a xml file from another source which will call a stored procedure in my database (which I am supposed to create). This is a first for me, I've never done development pl/sql or worked with xml. :(

    That's what I hoped to accomplish, if there is a better way, that I am open to him.
    In short, to have a stored procedure that takes the xml file (transmitted by third parties via the call, no url must be a file), creates a temporary table and populates the two columns needed. Then, the SP will make a select join with the temporary table and other data available in another schema. Once the completed table selection will be truncated and dropped. SP farm.

    Details:
    DB: Oracle 11.2.0.1 RAC.
    Charset: AL32UTF8
    Example of XML: (nearly 10,000 lines like this in production)
    "< MerchantID report =" "#" name = 'Conversion detail report' ReportStartDate = '2011-09-27 12:00:00GMT' ReportEndDate = '2011-09-27 21:38:13GMT"Version ="1.1"> < Conversion = '1234567891234567 D' MerchantReferenceNumber Convertingdate =" 2011-09-27 13:39:02 "RequestID ="1234567891234567891234"> < OriginalDecision > REVIEW < / OriginalDecision > < NewDecision > ACCEPT < / NewDecision > < Reviewer > testusr < / examiner > < ReviewerComments > no reason to reject. < / ReviewerComments > < Notes > < Note Date = "2011-09-27 13:39:02" AddedBy = "testusr" comment = "Took possession" / > < / Notes > < queue > Digital Review < / queue > < profile > Digital orders QA < / profile > < / Conversion > "
    ...
    < / report >

    What I tried.
    I found a tutorial: http://it.toolbox.com/blogs/oracle-guide/oracle-and-xml-in-action-a-real-world-example-5319 I tried and was able to make it work. But I could not duplicate the results with my xml file. So I looked away and have had no success. :( I'm not a developer, so I'm really bad...

    I found a note of support: (how to load an XML file into a Database Table using DBMS_XMLSave unaided Bfile [227476.1 ID]) and couldn't make it work.

    I found some online then Odie son xml and tried these but slipped and couldn't get my versions of these great answers to work for me.

    Then... I'm here now and hoping that someone could walk me through this.


    I tinkered this SP (it doesn't have to be that way, the suggestions are greatly appreciated)

    create or replace procedure xml_to_table (call_1 call_2) as

    Start
    run immediately "CREATE GLOBAL TEMPORARY TABLE XMLType IMRPT
    --(clé primaire contrainte-imrpt_pk (MerchantReferenceNumber))
    XmlType store as xml binary basicfile
    -(high compression)
    virtual columns
    (MerchantReferenceNumber as (xmlcast (xmlquery ('/ Conversion/MerchantReferenceNumber ' from object_value content back) as VARCHAR2 (32))))
    , NewDecision as (xmlcast (xmlquery ('/ Conversion/NewDecision ' from object_value content back) as VARCHAR2 (10)))
    )
    -ON COMMIT PRESERVE ROWS

    run immediately 'save xml as a file on the local system?'

    insert into IMRPT (MerchantReferenceNumber, NewDecision)

    run immediately "join select statement.
    run immediately 'truncate table IMRPT.
    run immediately "drop table IMRTP.

    end;
    /

    On my last test, I tried to select just in the xml file using this:

    DECLARE
    indomdoc DBMS_XMLDOM. DOMDocument;
    innode DBMS_XMLDOM. DOMNode;
    myParser DBMS_XMLPARSER.parser;
    buf VARCHAR2 (2000);
    BEGIN
    myParser: = DBMS_XMLPARSER.newParser;

    DBMS_XMLPARSER.setBaseDir (myparser, 'XML_DIR');
    DBMS_XMLPARSER. Parse (myParser, "test.xml");

    indomdoc: = DBMS_XMLPARSER.getDocument (myParser);

    -just to test content
    innode: = DBMS_XMLDOM.makeNode (indomdoc);
    DBMS_XMLDOM.writeToBuffer (innode, buf);
    Dbms_output.put_line (BUF);

    dbms_xmldom.freeDocument (indomdoc);
    dbms_xmlparser.freeParser (myParser);
    END;
    /

    It was another accident and burn.

    Any help would be appreciated.

    Thank you

    Like I said:

    Here is an example using a REF CURSOR variable ( you will need to declare a plus for your actual procedure )

    Your procedure has two parameters, you must declare two variables to hold the two REF CURSOR ;)

    DECLARE
    
      v_filename      VARCHAR2(50) := 'DMReport.xml';
      v_rc1            SYS_REFCURSOR;
      v_rc2            SYS_REFCURSOR;
    
      v_order_name       VARCHAR2(100);
      v_reason_text      VARCHAR2(100);
    
    BEGIN
    
      xml2table(v_filename, v_rc1, v_rc2);
    
      commit;
    
      loop
        fetch v_rc1 into v_order_name;
        exit when v_rc1%notfound;
        dbms_output.put_line('ORDER_NAME='||v_order_name);
      end loop;
    
      close v_rc1;
    
      loop
        fetch v_rc2 into v_order_name, v_reason_text;
        exit when v_rc2%notfound;
        dbms_output.put_line('ORDER_NAME='||v_order_name||', REASON_TEXT='||v_reason_text);
      end loop;
    
      close v_rc2;
    
    END;
    /
    

    If you test this in SQL * Plus, do not forget to SET SERVEROUTPUT ON to see the result.

  • Need urgent help to run the PL/SQL function when executing is having IN OUT type of table.

    Created under object types.

    (1) CREATE OR REPLACE TYPE INVENTORY_ITEM_ID_TAB IN THE TABLE OF THE NUMBER;

    --

    (2) CREATE OR REPLACE TYPE ITEM_TYPE_REC AS OBJECT (ITEM_ID ISSUE

    , ITEM_VALUE VARCHAR2 (4000)

    );

    --

    (3) CREATE OR REPLACE ITEM_TYPE_TAB AS TABLE ITEM_TYPE_REC;

    The function code

    FUNCTION XXqp_get_pts_model)

    p_item_id_tab IN INVENTORY_ITEM_ID_TAB)

    RETURN ITEM_TYPE_TAB

    IS

    l_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();

    ln_org_id NUMBER;

    BEGIN

    L_ITEM_TYPE_TAB. DELETE;

    l_ITEM_TYPE_TAB. EXTEND;

    LN_ORG_ID: = FND_PROFILE. VALUE ("QP_ORGANIZATION_ID");

    SELECT ITEM_TYPE_REC (EGO. INVENTORY_ITEM_ID,

    C_EXT_ATTR10)

    LOOSE COLLECTION l_ITEM_TYPE_TAB

    To ego_mtl_sy_items_ext_b ego.

    ego_fnd_dsc_flx_ctx_ext ag,

    fnd_descr_flex_column_usages atr

    WHERE ego.attr_group_id = ag.attr_group_id

    AND ag.descriptive_flex_context_code = atr.descriptive_flex_context_code

    AND ag.application_id = atr.application_id

    AND ag.descriptive_flex_context_code = 'XXEGO_PRICE_INFO. '

    AND atr.end_user_column_name = 'XXEGO_PLAN_TO_SELL. '

    AND IN ego.inventory_item_id

    (SELECT

    (SELECT inventory_item_id

    OF MTL_SYSTEM_ITEMS_B

    WHERE segment1 = A.item_name

    AND organization_id = ln_org_id

    ) inventory_item_id

    OF geqp_apl_pricelist_sku_tbl A

    )

    AND ego.organization_id = ln_org_id;

    RETURN l_ITEM_TYPE_TAB;

    end XXqp_get_pts_mode;

    Below the code works fine BUT when calling function in pl/sql dynamic mode it does not underneath.

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

    Labour Code

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

    DECLARE

    CURSOR c1 IS SELECT (SELECT inventory_item_id

    OF mtl_system_items_b

    WHERE segment1 = A.item_name

    AND organization_id = 83

    ) INVENTORY_ITEM_ID

    of XXqp_apl_pricelist_sku_tbl;

    L_INVENTORY_ITEM_ID_TAB INVENTORY_ITEM_ID_TAB: = INVENTORY_ITEM_ID_TAB();

    L_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();

    LV_CHAR VARCHAR2 (1000);

    LV_QRY VARCHAR2 (1000);

    BEGIN

    --

    l_inventory_item_id_tab. DELETE;

    OPEN c1;

    LOOP

    C1 FETCH BULK COLLECT INTO L_INVENTORY_ITEM_ID_TAB;

    OUTPUT WHEN c1% NOTFOUND;

    END LOOP;

    CLOSE C1;

    SELECT XXQP_APL_ELIG_TCA_DEV_PKG. XXQP_GET_PTS_MODEL (L_INVENTORY_ITEM_ID_TAB)

    IN L_ITEM_TYPE_TAB

    FROM DUAL;

    --

    FOR j IN 1.l_ITEM_TYPE_TAB. COUNTY

    LOOP

    DBMS_OUTPUT. PUT_LINE (L_ITEM_TYPE_TAB (J). ITEM_VALUE);

    END LOOP;

    END;

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

    Code does not

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

    DECLARE

    CURSOR c1 IS SELECT (SELECT inventory_item_id

    OF mtl_system_items_b

    WHERE segment1 = A.item_name

    AND organization_id = 83

    ) INVENTORY_ITEM_ID

    of GEqp_apl_pricelist_sku_tbl;

    LV_QRY VARCHAR2 (1500);

    L_INVENTORY_ITEM_ID_TAB INVENTORY_ITEM_ID_TAB: = INVENTORY_ITEM_ID_TAB();

    l_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();

    BEGIN

    l_inventory_item_id_tab. DELETE;

    OPEN c1;

    LOOP

    C1 FETCH BULK COLLECT INTO L_INVENTORY_ITEM_ID_TAB;

    OUTPUT WHEN c1% NOTFOUND;

    END LOOP;

    CLOSE C1;

    LV_QRY: = ' START: 1: = XXQP_APL_ELIG_TCA_DEV_PKG. XXQP_GET_PTS_MODEL(:2); END;';

    DBMS_OUTPUT. Put_line ('-> lv_qry' |) LV_QRY);

    IMMEDIATE EXECUTION in USING LV_QRY IN l_INVENTORY_ITEM_ID_TAB, OUT l_ITEM_TYPE_TAB;

    END;

    Kindly help me out here in the execution of the function from PL/SQL runtime which is having IN OUT type of table.

    Kind regards

    Devendra

    Wrong code

    IMMEDIATE EXECUTION in USING LV_QRY IN l_INVENTORY_ITEM_ID_TAB, OUT l_ITEM_TYPE_TAB ;

    When I use the code below, able to perform the function without any error.

    EXECUTE LV_QRY IMMEDIATELY WITH THE HELP OF THE L_ITEM_TYPE_TAB, IN L_INVENTORY_ITEM_ID_TAB;

    Thank you all for your help in fixing the code.

  • Help Removeing all the commas of the results table.

    Good afternoon al,.

    I'm pretty new on Oracle SQL developer and need a little help to find the best way to replace all commas in a table of results with ' > '.

    I run a select statement:

    SELECT

    WHERECLAUSEVALUE

    Of

    FDM_SAB. TDATAMAP

    ORDER BY WHERECLAUSEVALUE ASC

    To produce a very simple table with 1 column. (see bleow):

    *

    *

    *

    *

    00000,50000

    00000,50000

    00000,50000

    00000,50000

    00000,50000

    00000,50000

    As you can see some of the results contains a comma then a space, I'm looking to replace the "," (comma and space) with ' > ' (greater-than sign in). I guess this is done at a point with the function replace but have had no luck so far.

    Any help would be greatly appreciated. Thank you very much


    Charlie

    P.S. I'm new to this forum and this is my first post here; I apologize if my question is not clear or I don't give enough information.

    Replace (columnname, ',' > ')

    Should work for you.

    If this isn't the case, please post what you've tried and show the results you get.

  • I want to loop through the data from two different tables using for loop where the query should be replaced at runtime, please help me

    I have the data into two table with the structure of similar column, I want to loop through the data in these two tables

    based on some condition and runtime that I want to put the query in loop for example, the example is given, please help me

    create table ab (a number, b varchar2 (20));

    Insert into ab

    Select rownum, rownum. "" sample "

    of the double

    connect by level < = 10

    create table bc (a number, b varchar2 (20));

    Insert into BC.

    Select rownum + 1, rownum + 1 | "" sample "

    of the double

    connect by level < = 10

    declare

    l_statement varchar2 (2000);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: =' select * ab ';

    on the other

    l_statement: =' select * from bc';

    end if

    I'm in execute immediate l_statement - something like that, but I don't know

    loop

    dbms_output.put_line (i.a);

    end loop;

    end;

    Something like that, but this isn't a peace of the code work.

    Try this and adapt according to your needs:

    declare

    l_statement varchar2 (2000);

    c SYS_REFCURSOR;

    l_a number;

    l_b varchar2 (20);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: = "select a, b, AB;

    on the other

    l_statement: = "select a, b from bc;

    end if;

    --

    Open c for l_statement;

    --

    loop

    extract the c in l_a, l_b;

    When the output c % notfound;

    dbms_output.put_line (l_a |') -' || l_b);

    end loop;

    close c;

    end;

    /

Maybe you are looking for