"member of " not working with nested table of dates

Can someone explain why this doesn't work. The last select does not return any row. When trying the same with a table of number, it works fine.
drop table test;
drop type date_tab;
create type date_tab as table of date;
create table test(dates date_tab) nested table dates store as dates;
insert into test values (date_tab(to_date('10-jan-2007'),to_date('15-jan-2007'),to_date('15-jan-2007')));
commit;
select * from test where to_date('10-jan-2007') member of dates;
Line above should find the row, but does not return anything.

> With 10G Oracle said that these two engines are now sharing the same source code
Is that documented somewhere? Regarding database versions, it was 9.0.1 that claimed an integrated parser. I don't see any update for 10g.
> So in the old days one had to do a [SELECT sysdate INTO d FROM dual] to assign a function value to a PL/SQL var - as the function did not exist in PL/SQL.
Then (from Oracle 7 onwards?) these functions were also available in PL/SQL. However, the two engines did not share common code. So functions in SQL did not always behave like function in PL/SQL and vice versa.
I don't recall that limitation in PL/SQL v1 (Forms 3 to 4.5, and database v6, though I doubt many people actually used PL/SQL on the database because (1) it was separately licensed, and (2) it didn't have stored procedures) - but then it was a while ago so I could be mistaken.
I know USER, SYSDATE and others used to be implicit queries of dual (i.e. the supplied PL/SQL function was just a wrapper containing SELECT SYSDATE INTO dt FROM dual; RETURN dt;) although that's probably just confusing the issue.

Similar Messages

  • How to work with nested tables

    HI Everybody,
    I have a relational table one of whose columns is an object and another column is a collection stored as a nested table. I would like to set up a user interface ADF Rich Client, where I consider the parent table as Master and the nested table as Detail. If I build a READONLY master and detail view with a view link based on the primary key of the parent table, it works fine. However, when I try to generate entities from the views, the detail view object disappears from JDeveloper. Otherwise, when I try to make business components from tables, the nested table is not listed. Do anyone know a solution?
    Please help!
    Here is the view creation script with table structures:
    create or replace view dp_master_view as
    select p.dept_no,p.dept_name, p.dept_mgr.idno mgr_idno, p.dept_mgr.name mgr_name,p.dept_mgr.phone mgr_phone from department_persons p
    create or replace view dp_detail_view as
    select p.dept_no,e.* from department_persons p,table(p.dept_emps) (+) e
    SQL> desc department_persons
    Name Null? Type
    DEPT_NO NOT NULL NUMBER
    DEPT_NAME CHAR(20)
    DEPT_MGR PERSON_TYP
    DEPT_EMPS PEOPLE_TYP
    SQL> desc person_typ
    Name Null? Type
    IDNO NUMBER
    NAME VARCHAR2(30)
    PHONE VARCHAR2(20)
    Thanks, regards
    Miklos HERBOLY

    HI Everybody,
    I have a relational table one of whose columns is an object and another column is a collection stored as a nested table. I would like to set up a user interface ADF Rich Client, where I consider the parent table as Master and the nested table as Detail. If I build a READONLY master and detail view with a view link based on the primary key of the parent table, it works fine. However, when I try to generate entities from the views, the detail view object disappears from JDeveloper. Otherwise, when I try to make business components from tables, the nested table is not listed. Do anyone know a solution?
    Please help!
    Here is the view creation script with table structures:
    create or replace view dp_master_view as
    select p.dept_no,p.dept_name, p.dept_mgr.idno mgr_idno, p.dept_mgr.name mgr_name,p.dept_mgr.phone mgr_phone from department_persons p
    create or replace view dp_detail_view as
    select p.dept_no,e.* from department_persons p,table(p.dept_emps) (+) e
    SQL> desc department_persons
    Name Null? Type
    DEPT_NO NOT NULL NUMBER
    DEPT_NAME CHAR(20)
    DEPT_MGR PERSON_TYP
    DEPT_EMPS PEOPLE_TYP
    SQL> desc person_typ
    Name Null? Type
    IDNO NUMBER
    NAME VARCHAR2(30)
    PHONE VARCHAR2(20)
    Thanks, regards
    Miklos HERBOLY

  • TableChanged() does not work with parrent table reference

    Hi,
    I used this example http://www.javalobby.org/articles/jtable/ where the cells refocus after updating, but I have rewrote it to my needs and the program throws nullpointerexception when I update any cell:(
    here is the tableChanged part of code:
        public class InteractiveTableModelListener implements TableModelListener {
            public void tableChanged(TableModelEvent evt) {
                if (evt.getType() == TableModelEvent.UPDATE) {
                    int column = evt.getColumn();
                    int row = evt.getFirstRow();
                    System.out.println("updated row: " + row + " column: " + column);
                   if((column + 1) >= model.getRowCount()){
                      table.removeColumnSelectionInterval(column,column);
                    }else{
                      table.setColumnSelectionInterval(column + 1, column + 1);
                    table.setRowSelectionInterval(row,row);
    }the table reference worked in the exaple but doesnt work in my program:(
    here is the init of the table in function initComponent:
            tableModel.addTableModelListener(new InteractiveTableModelListener());
            TableSorter sorter = new TableSorter(tableModel);
            JTable table = new JTable(sorter);the class is on the same level as the function
    i have searched all the internet for this with no results:(
    thank you for your advice!

    Yes, you are right, I wrote this post in a hurry and exhaused, that it does not work.
    I'm trying to write out a data file (now only a vector of data) in a JTable and I want to edit the rows and after I submit text in a cell, I want the caret to move one cell right, so the user can write another text, just like in MS Excel. At the end of the row the caret disapears but does not create another row.
    And I have problems with variable JTable table in the inner class that contains method tableChanged().
    Well After making an example I realized it worked and then I checked the example line by line and found out that I declare another JTable with the same name in the table initializing method,
    Then the variable couldnt work in tableChanged method... It was empty...
    I used your example from thread, you advised me:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class TableProcessing extends JFrame implements TableModelListener
         // here I declare the table
            protected JTable table;
         public TableProcessing()
              String[] columnNames = {"Item", "Quantity", "Price", "Cost"};
              Object[][] data =
                   {"Bread", new Integer(1), new Double(1.11), new Double(1.11)},
                   {"Milk", new Integer(1), new Double(2.22), new Double(2.22)},
                   {"Tea", new Integer(1), new Double(3.33), new Double(3.33)},
                   {"Cofee", new Integer(1), new Double(4.44), new Double(4.44)}
              DefaultTableModel model = new DefaultTableModel(data, columnNames);
              model.addTableModelListener( this );
                    // here I declare it again, which is a MISTAKE
              JTable table = new JTable( model )
                   //  Returning the Class of each column will allow different
                   //  renderers to be used based on Class
                   public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
                   //  The Cost is not editable
                   public boolean isCellEditable(int row, int column)
                        int modelColumn = convertColumnIndexToModel( column );
                        return (modelColumn == 3) ? false : true;
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
          *  The cost is recalculated whenever the quantity or price is changed
         public void tableChanged(TableModelEvent e)
              System.out.println(e.getSource());
              if (e.getType() == TableModelEvent.UPDATE)
                   int row = e.getFirstRow();
                   int column = e.getColumn();
                   if (column == 1 || column == 2)
                                   // AND here is not initialised - throws NullPointerException
                        TableModel model = table.getModel();
                        int     quantity = ((Integer)model.getValueAt(row, 1)).intValue();
                        double price = ((Double)model.getValueAt(row, 2)).doubleValue();
                        Double value = new Double(quantity * price);
                        model.setValueAt(value, row, 3);
         public static void main(String[] args)
              TableProcessing frame = new TableProcessing();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • 9iR2 : FORALL UPDATE is not working with remote table

    Hi,
    I am trying to use BULK COLLECT & FORALL to get records from a remote table (using Dblink) and insert the copy of the data locally and update the remote table to mark the record being processed. FORALL is working well with local tables but with not remote table. Am I missing some thing here interms of permissions or it would n't work that way?
    Thanks
    Sara

    Hello,
    I have the exact same question. I understand I cannot use FORALL with a database link, but what is the best alternative?
    The removte databases are on ships and the bandwidth is very narrow. I need to bulk collect about 8000 records a day; update the loacal database; and then update the remote (ship) database that I have taken these records.
    I can use the database link in a classic cursor FOR loop, but with the narrow bandwidtch it takes hours.
    Short of writing a file on the local server, ftp'ing it to the remote server any suggestions? Would Advanced Queuing be appropriate here?
    Gary

  • Bridged networking not working with nested VMware Workstation

    I am having an issue that I can't seem to find any answer to.... 
    We are running Vsphere 5.5 and I have 2 Guests each running Windows 7 64-bit.  Each of these guests has VMware Workstation 10 running on them.  When we P2V the systems we followed all the instructions to allow nested VMware Workstation.  However, we are running into an issue where the Bridged Networking will not work.  Both of the Win7 guests are on the same vlan and all of the VMs in Workstation are on the same network as well.  However, while the 2 Windows 7 guests can ping each other and each of the guests can ping the VMs that are hosted locally, they cannot connect to the systems on the other guest running workstation.
    I tried to upgrade the Guest NIC to VMXNet3, but that did not help. 
    All of the research I have done brings me to people who are having the opposite problem (ESXi nested in VMware Workstation). 
    How can I get the 2 bridged networks to connect?
    Thanks!

    The ESXi vSwitch to which the outer guests are connected must be configured for promiscuous mode and forged transmits.

  • Working with nested table in uix

    Hello everybody,
    Im using JDeveloper 9051+adf+uix.
    I've to use a table in which there is a column having reference to another table(one to many relationship).
    So is this kind of nested table support is provided in jdeveloper 9051??
    and if available then how to use it??
    Thanks and Regards
    Mina

    Hi!
    Me again!
    This nested table ... what is it supposed to do?
    If you want the user to be able to select in that table, then that might be difficult.
    Sascha

  • Connect By not working with nested queries in from clause.

    Using Connect By on a query which has a nested from clause(The from clause fetches around 100k records) gives incorrect results but if the same nested queries are used to build a table and the Connect By is used on the table then the output is correct.
    I put the nested queries in a 'WITH' clause and got the correct output also.
    I am not sure how to give the code here as you would need dump to make them work.
    I am giving the a sample code:
    --Non Working Code
    SELECT     con_item, prod_item, compsite, bcsite, ibrsite, res
          FROM (SELECT con_item, prod_item, compsite, bcsite, ibrsite, res
                  FROM (SELECT bd.item AS con_item, bd.fromid AS compsite,
                               bd.toid AS bcsite, bd.toid AS ibrsite,
                               bd.bodname AS ID, bd.item AS prod_item,
                               'BOD' AS res
                          FROM TABLE1 bd
                        UNION
                        SELECT bc.item AS con_item,
                               bc.componentsiteid AS compsite,
                               bc.siteid AS bcsite, ibr.siteid AS ibrsite,
                               ibr.routingid AS ID, ibr.item AS prod_item,
                               op.resourcename AS res
                          FROM TABLE2 ibr,
                               TABLE3 bc,
                               TABLE4 op
                         WHERE ibr.bomid = bc.bomid
                           AND ibr.siteid = bc.siteid
                           AND ibr.routingid = op.routingid(+))
                 WHERE con_item IN ('SCFCD0T9B', 'SWXCD0S9B')
                   AND ibrsite LIKE 'CRCW%HSM')
    START WITH ibrsite = 'CRCW_QA_HSM' AND prod_item = 'SWXCD0S9B'
    CONNECT BY PRIOR con_item = prod_item AND PRIOR compsite = bcsiteWorking Code:
    --The table TEST_V is constructed on the from clause of above query
    SELECT     CON_ITEM, PROD_ITEM, COMPSITE, BCSITE, IBRSITE, RES
          FROM TEST_V
    START WITH IBRSITE = 'CRCW_QA_HSM' AND PROD_ITEM = 'SWXCD0S9B'
    CONNECT BY PRIOR CON_ITEM = PROD_ITEM AND PRIOR COMPSITE = BCSITEAlso another working code:
    WITH SUB AS
         (SELECT BD.ITEM AS CON_ITEM, BD.FROMID AS COMPSITE, BD.TOID AS BCSITE,
                 BD.TOID AS IBRSITE, BD.BODNAME AS ID, BD.ITEM AS PROD_ITEM,
                 'BOD' AS RES
            FROM TABLE1 BD
          UNION
          SELECT BC.ITEM AS CON_ITEM, BC.COMPONENTSITEID AS COMPSITE,
                 BC.SITEID AS BCSITE, IBR.SITEID AS IBRSITE, IBR.ROUTINGID AS ID,
                 IBR.ITEM AS PROD_ITEM, OP.RESOURCENAME AS RES
            FROM TABLE2 IBR, TABLE3 BC, TABLE4 OP
           WHERE IBR.BOMID = BC.BOMID
             AND IBR.SITEID = BC.SITEID
             AND IBR.ROUTINGID = OP.ROUTINGID(+))
    SELECT     CON_ITEM, PROD_ITEM, COMPSITE, BCSITE, IBRSITE, RES, LEVEL
          FROM SUB
    START WITH PROD_ITEM = 'SWXCD0S9B' AND IBRSITE = 'CRCW_QA_HSM'
    CONNECT BY PRIOR COMPSITE = BCSITE AND PRIOR CON_ITEM = PROD_ITEMI am sorry if I am giving incorrect syntax, please let me know if my giving the dump of table be of any help.
    Regards,
    Vikram
    Edited by: BluShadow on 11-Jan-2012 11:05
    fixed {noformat}{noformat} tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi, Vikram,
    Welcome to the forum!
    user2765706 wrote:
    Using Connect By on a query which has a nested from clause(The from clause fetches around 100k records) gives incorrect results but if the same nested queries are used to build a table and the Connect By is used on the table then the output is correct.
    I put the nested queries in a 'WITH' clause and got the correct output also.What exactly is the problem? Why not use one of the queries that gives the correct output? I find that WITH clauses are a lot easier to understand and debug than in-ine views, anyway.
    Are you just wondering why one of the queries doesn't work?
    I am not sure how to give the code here as you would need dump to make them work. You're absolutely right! You need to post some sample data and the results you want from that data. Without that, it's much harder for people to understand what the problem is, or how to fix it.
    I am giving the a sample code:
    --Non Working CodeLet's call this Query 1.
    SELECT     con_item, prod_item, compsite, bcsite, ibrsite, res
    FROM (SELECT con_item, prod_item, compsite, bcsite, ibrsite, res
    FROM (SELECT bd.item AS con_item, bd.fromid AS compsite,
    bd.toid AS bcsite, bd.toid AS ibrsite,
    bd.bodname AS ID, bd.item AS prod_item,
    'BOD' AS res
    FROM TABLE1 bd
    UNION
    SELECT bc.item AS con_item,
    bc.componentsiteid AS compsite,
    bc.siteid AS bcsite, ibr.siteid AS ibrsite,
    ibr.routingid AS ID, ibr.item AS prod_item,
    op.resourcename AS res
    FROM TABLE2 ibr,
    TABLE3 bc,
    TABLE4 op
    WHERE ibr.bomid = bc.bomid
    AND ibr.siteid = bc.siteid
    AND ibr.routingid = op.routingid(+))
    WHERE con_item IN ('SCFCD0T9B', 'SWXCD0S9B')
    AND ibrsite LIKE 'CRCW%HSM')
    START WITH ibrsite = 'CRCW_QA_HSM' AND prod_item = 'SWXCD0S9B'
    CONNECT BY PRIOR con_item = prod_item AND PRIOR compsite = bcsite
    [\CODE]
    Working Code:Let's call this Query 2.
    --The table TEST_V is constructed on the from clause of above query
    SELECT     CON_ITEM, PROD_ITEM, COMPSITE, BCSITE, IBRSITE, RES
    FROM TEST_V
    START WITH IBRSITE = 'CRCW_QA_HSM' AND PROD_ITEM = 'SWXCD0S9B'
    CONNECT BY PRIOR CON_ITEM = PROD_ITEM AND PRIOR COMPSITE = BCSITE
    [\CODE]Why does Query 1 not do the same thing as Query 2? That depends on what is in test_v. Only you know what test_v is, so only you can say. If you'd post the code that created test_v, maybe somebody else could help.
    Also another working code:Let's call this Query 3.
    WITH SUB AS
    (SELECT BD.ITEM AS CON_ITEM, BD.FROMID AS COMPSITE, BD.TOID AS BCSITE,
    BD.TOID AS IBRSITE, BD.BODNAME AS ID, BD.ITEM AS PROD_ITEM,
    'BOD' AS RES
    FROM TABLE1 BD
    UNION
    SELECT BC.ITEM AS CON_ITEM, BC.COMPONENTSITEID AS COMPSITE,
    BC.SITEID AS BCSITE, IBR.SITEID AS IBRSITE, IBR.ROUTINGID AS ID,
    IBR.ITEM AS PROD_ITEM, OP.RESOURCENAME AS RES
    FROM TABLE2 IBR, TABLE3 BC, TABLE4 OP
    WHERE IBR.BOMID = BC.BOMID
    AND IBR.SITEID = BC.SITEID
    AND IBR.ROUTINGID = OP.ROUTINGID(+))
    SELECT     CON_ITEM, PROD_ITEM, COMPSITE, BCSITE, IBRSITE, RES, LEVEL
    FROM SUB
    START WITH PROD_ITEM = 'SWXCD0S9B' AND IBRSITE = 'CRCW_QA_HSM'
    CONNECT BY PRIOR COMPSITE = BCSITE AND PRIOR CON_ITEM = PROD_ITEM
    [\CODE]Why does Query 1 not do the same thing as Query 3? Query 1 has these conditions:
    ...           WHERE con_item IN ('SCFCD0T9B', 'SWXCD0S9B')
                    AND ibrsite LIKE 'CRCW%HSM'but Query 3 does not.
    I am sorry if I am giving incorrect syntax, please let me know if my giving the dump of table be of any help.Yes, that always helps. Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data. Simplify the problem as much as possible. For example, if you have the same problem when you leave out one of the tables, then don't include that table in the problem.
    Always say what version of Oracle you're using. This is especially important with CONNECT BY queries, because every version since Oracle 7 has had major improvements in this area.

  • .click on row works with php table - does not work with javascript table.

    Howdy,
    I've run into a very interesting problem today, and I hope you'll be able to help me.
    I have a page in which the top is php to read a table from the server, and post the table as the html page is being built.
    The data come up as a table, and each row is clickable, that click moving the user to a different page, based on the row clicked.
    Here are the relevant parts of the php code:
    <?php
    echo "<table id='patienttable' cellpadding=5px border=0 font-size=16px>";
    echo "<tr><th width='30'>"."ID#"."</th><th width='100'>"."Last Name"."</th><th width='100'>"."First Name"."</th><th width='100'>".
    "Middle Name"."</th><th width='80'>"."DOB"."</th><th width='50'>"."Zip"."</th><th width='50'>"."Gender"."</th><th width='100'>".
    "Phone"."</th></tr>";
    while ($row = mysqli_fetch_array($result))
    blah blah blah
    echo "<tr><td id='localid'>".$localid. "</td><td>".$lastname. "</td><td>".$firstname. "</td><td>".$middlename."</td><td>".$dob."</td><td>".$physzip. "</td><td>".$gender."</td><td>".$phone1.       "</td></tr>";
      echo "</table>";
    ?>
    And here is the code to click on a row:
    $("#patienttable tr").click(function() {
           var passthis = $(this).find("#localid").html();
           $.post("php/setsessionvariable.php",
                  {sessionval: passthis},
         function(e) {window.location.href = "root.php"}
    EVERYTHING works great - no problems - working now for about 2 months.
    Today I started to build something similar, BUT! I cannot read from the database at the top of the page, I must do an ajax query, call the db, and post the data in a table;
    Here is the boring, fairly straight-forward javascript code:
    $.ajax({
        type: "POST",
        url: "findpatientbackend.php",
        data: {letterslastname: lastname},
        dataType : 'json',
        success: function(result) {
      $("#div1").html("");
            if(result.length >= 1)
       {var output = "";
             $("div1").html("<table id='findtable'>");
              $.each(result, function(index, value) {
                                                     output += "<tr><td width='100px'></td><td id='localid' width='100px'>"
                 + value.localid + "</td><td width='100px'>"
                 + value.lastname + "</td><td width='100px'>"
                 + value.firstname + "</td><td width='100px'>"
                 + value.middlename + "</td><td width='100px'>"
                 + value.dob + "</td></tr>";
                $("#div1").html(output);
             $("div1").html("</table>");  
        error : function() { alert("error on return"); }
    And here is the click row code, almost EXACTLY like the one above:
    $("#findtable tr").click(function() {
           var passthis = $(this).find("#localid").html();
           $.post("php/setsessionvariable.php",
                  {sessionval: passthis},
         function(e) {window.location.href = '../root.php'}
    All the "stuff" loaded onto the page just fine, BUT, absolutely nothing happens when I click a row.
    Playing around this afternoon, I did a "View Source" on both pages, and saw something VERY interesting;
    1 - The table written by PHP is present, can be seen, and therefore is "clickable" to the jquery .click function.
    2 - The table written by javascript is INVISIBLE! I cannot see it in the source view (but I can see it on the screen) and therefore the .click function can't see it either.
    Questions:
    1. How can I make the table written in javascript "clickable" - how can I make the javascript table "visible"?
    2. Could it be the use of ".html" to post the table to the div? Is there another way?
    And again, I thank you in advance for any help.

    I found the solution to my problem, and perhaps my comments here will help others.
    Thinking a bit more, I wrote a separate javascript routine that created a table, allowed it to be styled, and allowed it to be clickable.
    Here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" type="text/javascript"></script>
    <style>
    #findtable {
    width:200px;
    background-color:#CFD3FE;
    margin:10px auto;
    text-align:center;}
    </style>
    <body>
    <div id="puttablehere"></div>
    <script>
    $(document).ready(function () {
    var output = "<table id='findtable'>";
    for (var i = 0; i<15; i++) {output += "<tr><td width='100px'>X</td><td id='localid' width='100px'>X</td></tr>";}
    output += "</table>";
    $("#puttablehere").html(output);
    $("#findtable tr").click(function(e) { alert("it works!"); });
    </script>
    </body>
    </html>
    The initial code I posted was creating the table the wrong way.
    You have to create the WHOLE table at the same time, and post it all at once.
    The code above does that.
    My learning points are:
    1. To create a table in javascript, and post it with a $("#puttablehere").html(output); call, you must put the ENTIRE table into that single string variable called "output" (or whatever you want to call it).
    2. Everytime you call a jqeury .html function like this: ---("#puttablehere").html(output); -- It COMPLETELY over-writes the whole div/tr/td block that it is pointed at.
    3. If you create a table in javascript (client side) you cannot see it with "View Source" - because what is posted in the table is AFTER the DOM is loaded.
    Creating a table with php server side - you CAN see, because it is posted with the DOM.
    So I thank you for your ideas, and I hope this may help another noob, such as myself, in the future.
    Adios!

  • Web Service Test in SE80 does not work with internal Table

    Hello,
    I have created a web server based on a function module. It works fine when the server is invoked from outside (.Net or SOAPUI).
    However, when I test it in SE80, (open the Server and then F8), it shows error message:
         Access to the table ref. node 'Y02VSI_CAE_CONDITIONITEM' outside a loop
    (Germany Zugriff auf den Tabellen-Ref-Node 'Y02VSI_CAE_CONDITIONITEM' außerhalb einer Schleife )
    The test xml is generated from SAP, I just fill the data as following:
    This XML is absolute correct. Why item ('Y02VSI_CAE_CONDITIONITEM) is outside a loop?
    Is it a bug from SAP?
    Thanks in advance!
    Regards
    Dianlong

    Hi Dianlong,
    Please check if SAP note 1132501 is relevant for your ECC release. If you apply the note, you may have to re-generate the web service from the function module.
    Regards, Trevor

  • Foriegn key concept not working with check table

    Consider, there are two tables like emp_personal and emp_official.
    In emp_personal table , the fields are empid, empname, dob for example. In this table, empid is the primary key field.
    In emp_official table, the fields are empid, dept, designation for example. In this also, empid is the Primary key.
    Now we relate these two tables using the foreign key relationship.
    Now, emp_personal is the Check table .
    emp_official table is the Foreign key table.
    for example create some 5 records in the emp_personal table .
    Table : emp_personal :   Primary Key - empid
    empid       empname       empdob             Status 
       1            AAA            1.1.1990           Record saved successfully
       2            BBB            2.2.1990           Record saved successfully
       3            CCC            3.3.1990           Record saved successfully
       4            DDD           4.4.1990           Record saved successfully
       5            EEE            5.5.1990           Record saved successfully
    Records are saved in the table : emp_personal.
    Now, Am tryiing to create records in emp_official table.
    Table : emp_official :   Primary Key or not a Primary Key - empid
    empid        dept              designation        Status 
       1            Dept1           S.E                   Record saved successfully
       2            Dept2           S.SE                 Record saved successfully
    Now, if am  try to create the record which is not in the table emp_personal, which has the empid = 6.Normaly it'll not allow us to create the record 6,
    But the think is its allow to create.
       6            Dept6           P.M                  Here also status is record saved
    Kindly help me out.

    did you read the documentation for "screen check"/"check required" flag in foreign key screen? it says:
    Flag for check of input values wanted on screen
    Definition
    This flag defines whether an input check should be executed on the screen for the field. This definition is applies to all the screens on which the check field appears.
    The check can be switched off again with the flag set for certain screens (by canceling the flag 'For. key' in the attributes of the corresponding screen field).
    Use
    Switching off the screen check can be useful in the following cases:
    if for test reasons there is to be no check
    if a semantic foreign key is used for the aggregate definition but no input check is to be executed.

  • Trying to UNION two views with nested tables

    I am using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod, and my objective is to generate some XML. What I have been doing in the past, is to create a view, and then pass that view to the DBMS_XMLQuery routine. This gives me a CLOB that I pass along to the application. A typical object would be something like:
    create or replace type XML_UGroup_Member_Type as object (
         username          varchar2(128),
         group_key          varchar2(128));
    create or replace type XML_UGroup_Member_List
        as table of XML_UGroup_Member_Type;
    show errors
    Create or replace type XML_UGroup_Type as object (
         Group_Space     varchar2(32),
         group_key     varchar2(128),
         group_name     varchar2(255),
         members          XML_UGroup_Member_List);
    /This particular application will be doing stuff with group information. Pretty simply types - a group with a name and a few other keys, and a list of members. A sample view would be like:
    create or replace view xml_department_ugroup_view of xml_ugroup_type
      with object identifier ( group_key ) as
      Select 'Department',
          'Department:' || orgn_code,
          'Department_' || orgn_name
          cast ( multiset (
               select  Username, person_id,
                        'Department:' ||  effective_orgn
                from directory_master dm, logins l
               where effective_orgn = dd.orgn_code
                 and dm.person_id = l.owner)
                as XML_UGroup_Member_List )
             as members
       from directory_departments dd
      where dept_include = 'Y';
    can select from this view, and I can pass it to the DBMS_XMLQUERY package and get a nice XML document. What I want to is essentially put several of these views together, like
    Select * from XML_Department_Ugroup_View
    Union
    Select * from XML_Portfolio_Ugroup_View;But UNION does not work with nested tables:
    ERROR at line 1: ORA-00932: inconsistent datatypes: expected - got SIMON.XML_UGROUP_MEMBER_LIST
    What I was hoping to do, was to develop a set of sub views for each of the group "spaces", and then generate a view/object that includes all of the sub views, and be able to operate with that single object.
    Thoughts on how to make this work, or on alternate approaches? I have considered calling XMLQuery on each of the sub views and concatenating the XML documents and returning that to the application, but I was hoping to find a more "unified" approach.

    I modified my approach a bit - I changed the base views to return an XMLType object, like:
    create or replace view xml_portfolio_ugroup_xml
    as
    Select XMLElement("group",
             xml_ugroup_type(
          'Portfolio',
             'Portfolio:' || coas_code || ':' || orgn_Code,
          cast ( multiset (
               select  Username,
                from directory_master dm, logins l
               where ( effective_orgn, effective_coas ) in
               where effective_orgn = dd.orgn_code
                  and dm.person_id = l.owner
                as XML_UGroup_Member_List ))) as grp
       from directory_departments dd
      where dept_include = 'Y';and then I combined them with something like the following (I expect to adjust this as I learn more about the XML DB support)
    create or replace view xml_ugroup_xml as
      select xmlconcat(
         (select xmlagg(grp) from xml_department_ugroup_xml),
         (select xmlagg(grp) from xml_portfolio_ugroup_xml)
         ) as GROUPS
         from dualand as I define more group branches, I can add them into the XMLConCat stanzas. I am still open to suggestions as to ways of doing this better or cleaner, but this at least gets the project moving forward again.

  • Fill datagridview with Nested Table Object Type ???

    Hello everybody, please you help me resolve my problem?
    I follow this example: *(A Sample Application using Object-Relational features)* http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10799/adobjxmp.htm
    And this tutorial: *(Using Oracle User-Defined Types with .NET and Visual Studio)* http://www.oracle.com/technology/obe/hol08/dotnet/udt/udt_otn.htm
    Now I have 3 Object Table: Stock, Customer and Purchase Order. With the tutorial it's OK to show the data of Stock and Customer Table [there is no nested table in], but I can't do this with table Purchase Order, the tutorial don't show how to work with Nested Table type [Missing or something ?]
    When I try to display the data of table Purchase Order, I get the error:
    typeName='LINEITEMLIST_NTABTYP'' is not specified or is invalid*
    Follow the tutorial, I generate custom class for this UDT and get another error:
    this.STOCK_REF = ((object)(Oracle.DataAccess.Types.OracleUdt.GetValue(con, pUdt, "STOCK_REF")));*
    Argument Exception Unhandle: Object attribute is not mapped to a custom type member.*
    Can You show me how to do this ? Show the data of the Nested Table in Visual Studio, do I have something wrong ??? Thanks and Best Regards.

    I think you need to go through the tutorial more carefully. I think you are missing steps.
    You are using a REF. Are you creating an object table for the objects to be stored in? Are you dereferencing the REF? This is covered by the Oracle by Example tutorial.
    http://www.oracle.com/technology/obe/hol08/dotnet/udt/udt_otn.htm#t11
    When you receive the nested table, it will be inside a .NET class. You can create this class by using the Create Custom Class menu item on the nested table type in server explorer.
    This class will contain a ToString method and a ToXML method.
    The question is, where are you attempting to display the data from this nested table? In a grid?
    Does it make sense to display a nested table inside one cell of a grid? No. You would need to construct a special UI that will show the
    nested table. Maybe the user clicks on the cell on the grid, which opens a new grid that displays the data. Or maybe there is a second grid on the form that always shows the nested table for the row that the first grid currently has selected.
    I realize I am not providing you the code... but it sounds like you need to design a more sohisticated UI than what the tutorial is using -- one that can handle displaying one additional table per row.

  • Layout adjustment not working with tables

    Hi all
    Why will layout adjustment not work with tables?
    I am trying to re-format from A4 landscape to A4 portrait.
    The text box containing the table will resize but not the table.
    Any clues why this might be, I don't want to manually resize every table in the document.
    Many thanks,
    Rob

    Thanks Jongware,
    Having resized the table and got the little red ovals, I tried various things like changing the font size etc but the best workaround I found was to select the table and change the cell inset value to 0, this got rid of all red ovals and I didn't need to change the font size.
    Cheers,
    Rob

  • "Next" and "Previous" functionality on UIX tables not working with 10g

    With new release of JDeveloper(10G), the "Next" and "Previous" navigation buttons/links on UIX tables are not working. I tried different approaches:
    1. It does not work with Data Controls built from Java Beans or from TopLink.
    2. I tried without using Data Controls and it still does not work.
    I shows "Next" and "Previous" buttons on the page. But it shows all records on the page rather then showing limited records. Say for example if the block size is 5 and total number of records are 15, it shows all 15 records in the table but the "next" and "Previouds" button would say "1-5 of 15".
    Did any of you observe the same behaviour?

    Hi Shital -
    Thanks for the additional info...
    When I said that the total number of records is 15, I
    meant that my tableData's DataObjectList contains 15
    entries. (In case of DataControls you don't even use
    DataObjectList, but for my non data control
    applications I used DataObjectList). You are saying
    that If I want to display only 5 records per page
    then I will need to provide a DataObjectList with
    five items. Then for next five records from 6-10 I
    will have to program in such a way that my method
    call returns 6-10 records.That's correct. In the case where you are explicitly providing data to the table via a DataObjectList, you need to feed the data to the table in page size blocks - and you also need to handle the table's goto event to scroll the table to the next/previous block of data.
    In previous version of
    UIX(2.1.7) I never had to program for next and
    previous buttons. UIX tables used to take care of
    that. That's why I am so surprised.It sounds like you must have been using the <bc4j:table> component. Is that the case?
    Getting back to your original issue...
    1. It does not work with Data Controls built
    from Java Beans or from TopLink.I believe that this is a bug in the preview release - and I'm fairly sure this will be addressed by production. In production, ADF should automatically handle wiring up table scrolling for you when binding your table to a data control - whether the data control is implemented via JavaBeans, Toplink, or BC4J. I believe that in the preview release, scrolling only working when binding to a BC4J data control.
    Andy

  • DB Adaptor import table option does not work with the AS400 DB

    1. The DB Adaptor import table option does not work with the IBM i-series(AS/400) tables(Both in ESB and BPEL).
    2. Also I was not able to import tables from multiple databases into
    the same BPEL project.

    Both of these issues work in preview version. My earlier posting was based on beta version testing.

Maybe you are looking for

  • Frustrating speed..can someone look at my stats?

    Hi Ok i recently had alot of problems with the connection speed on my broadband (homehub3), so i called bt up and suggested the engineer should check the problem. He found a line problem and so he fixed it. But yet i am still finding it slow even tho

  • How to handle the Comma in string

    Hi All, I have one req in which I am getting the like this <TEXT>El rol permite tratar (visualizar, modificar, activar, desactivar) los</TEXT> at receiver side my file is getting created in .CSV file. in in Coloum the for TEXT is coming like this col

  • Suitable BAPI for extended withholding tax

    we are migrating from classic withholding tax to extended withholding tax for which we are modifying all the programs which were using MRHR (invoice) in the background, since MRHR will be replaced by MIRO in extended withholding tax, in this process

  • Putting iPhone pics in order

    I have a number of folders on my iPhone which contain names/titles that I would like to have in alphabetical order.  Every time I add a photo with a new name, it joins the end of the folder rather than jumping in its correct alphabetical place.  The

  • Safari will not open .csv files automaticlly into excel

    With the latest update to Safari. I get email links from my corporate that opens a .csv file into excel automatically . It opens a page in Safari with garbage on the page now.If I use Foxfire it opens in excel automatically as always. When I call App