Only oracle object tables to create object oriented database

Can we use only oracle object tables for a database and if it can be done, can we create pure object oriented database with oracle. How it can be done?
help..
thank you..

PriyashanthaHP wrote:
I have no my own definitions for OODB. There are lot in the internet. I'm asking, can't we use that OODB concept with oracle. And gave you an example with 'employee' and 'department' tables. I asked that can we create object tables for these two tables keeping their relationship
thank you..
There is no way to answer that without knowing what YOU mean by OODB.
See the database concepts doc
http://docs.oracle.com/cd/B28359_01/server.111/b28318/schema.htm
Nested Tables
You can create a table with a column whose datatype is another table. That is, tables can be nested within other tables as values in a column. The Oracle database server stores nested table data out of line from the rows of the parent table, using a store table that is associated with the nested table column. The parent row contains a unique set identifier value associated with a nested table instance.
  Oracle Database Object-Relational Developer's Guidefor further information on nested tables
  Oracle Database Advanced Application Developer's Guide

Similar Messages

  • Objects are updated/created in the database in wrong order

    Hello,
    I have three objects tied with certain relations: Ticket, Type and
    Solution.
    Relation between Ticket and Solution is unidirectional one-to-one - ticket
    may contain one solution. Relation between Type and Solution is one-to-many
    bi-directional.
    During transaction I do the following:
    1) instantiate new Solution and add it to the Type;
    2) set this Solution to the Ticket.
    On commit Kodo tries to update ticket before creating solution in the
    database. What am I doing wrong?
    Thank you in advance.
    Best regards,
    Alexey Maslov

    Alex,
    Thank you. It worked :)
    "Alex Roytman" <[email protected]> wrote in message
    news:[email protected]...
    The best way to handle update/insert order is not to rely on it. Not only
    foreign key sensitive to order but unique constraints too. So if your
    database supports it (and most decent databases do) use defferred
    constraints - the ones which get applied on commit not on
    insert/update/delete and you will be fine
    "Alexey Maslov" <[email protected]> wrote in message
    news:[email protected]...
    Patric,
    Thank you for response.
    It's not about Type->Solution relation. We've got constraint from
    Ticket
    to Solution. But we need to load Ticket to get it's Type.
    It's a problem to instantiate the Solution before loading Type. Thething
    is that Type object is used to construct Solution automatically adding
    it
    to
    internal collection.
    This is done to overcome JDO deficiency in relation maintenance. I'vefound
    this pattern in Robin Roos' book.
    create...() method usage makes sure that dependent object is added tothe
    parent after each creation. Adding objects manually after creation wouldbe
    error-prone and code-cluttering.
    Where's that "transparency" so much told about on JDOCentral?
    P.S. I wonder how this pattern works in other places?
    "Patrick Linskey" <[email protected]> wrote in message
    news:[email protected]...
    Alexey,
    In Kodo JDO 2.3 and 2.4, object changes are flushed to the database in
    the order that the objects are first enlisted in the transaction. So,
    if
    you instantiate the Solution object before loading Type, everything
    should work the way you want it to.
    We have more sophisticated foreign key constraint satisfaction code in
    internal codebases -- expect to see this hit production in the nextfew
    months.
    -Patrick
    Alexey Maslov wrote:
    Hello,
    I have three objects tied with certain relations: Ticket, Type and
    Solution.
    Relation between Ticket and Solution is unidirectional
    one-to-one -
    ticket
    may contain one solution. Relation between Type and Solution is
    one-to-many
    bi-directional.
    During transaction I do the following:
    1) instantiate new Solution and add it to the Type;
    2) set this Solution to the Ticket.
    On commit Kodo tries to update ticket before creating solution inthe
    database. What am I doing wrong?
    Thank you in advance.
    Best regards,
    Alexey Maslov
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Object tables and procedures.

    Hi! I apologize in advance if my question is too trivial. I'm building simple object-relational database, and i would like to move a lot of my programming logic into database. I plan to build object tables based on object types that contain not only attributes but also functions and procedures. Now for example, i have object type "product" that contains some atributes like id ,name, price..., and let say procedure LowerThePrice(Percentage NUMBER) that should change the actual data.
    Now i create table Products of type product and fill it with some data. The question is how can i call/apply this procedure LowerThePrice on rows of products object table? If this scenario is even possible, how can i call that procedure using sql plus, and VB.net 2005 (i have installed and configured ODP.NET and oracle 11g).
    Thanks!

    1. Has been mentioned before - we do have a bug on it. To search across all your pl/sql, there is a report you can use.
    2. We are working on improving errors but I can't make any promises.
    3. We have heard this before but it won't be there for v1.0. You can use the Connections navigator to access the details of the objects that are accessible to you while you have a Worksheet open. You can even drag your Worksheet tab down to place it under the Connections details tab so you can see them both at the same time.
    4. In a post-v1.0 release, we will be looking at additional, alternate navigation.
    5. We have an open bug to not prompt you for the same bind more than once.
    6. I will talk to the Worksheet developer about this one. Not sure we can remember the binds from execution to execution but it would be a great enhancement.
    7. Not sure why this is failing - I will check into it.
    -- Sharon

  • Update statement for object table.

    Hi,
    I have created one type as
    Create type test as object(
    ins_by varchar2(30),
    ins_on date,
    upd_by varchar2( 30),
    upd_on date);
    and then created an object table as
    create table imst(
    i_code number(5),
    i_desc varchar2(35),
    i_op test);
    now i am able to insert record in this table as
    insert into imst values(1,'Hawkins cooker',test(user,sysdate,'',''));
    Above works fine.
    But I would also like to update the record with i_op.upd_by,i_op.upd_on with some other values.
    Can any body help me specifying how to write a plain update statement for the same.
    Regards.
    Soumen

    Check it out:
    SQL> Create type myTest as object(
      2  ins_by varchar2(30),
      3  ins_on date,
      4  upd_by varchar2( 30),
      5  upd_on date);
      6  /
    Type created.
    SQL> create table imst(
      2  i_code number(5),
      3  i_desc varchar2(35),
      4  i_op myTest);
    Table created.
    SQL> insert into imst values(1,'Hawkins cooker', mytest(user,sysdate,'',''));
    1 row created.
    SQL> select * from imst;
        I_CODE I_DESC
    I_OP(INS_BY, INS_ON, UPD_BY, UPD_ON)
             1 Hawkins cooker
    MYTEST('APC_LOAD', '12-JUL-04', NULL, NULL)
    SQL> update imst i set i.i_op.upd_by = USER, i.i_op.upd_on = add_months(sysdate, 1);
    1 row updated.
    SQL> select * from imst;
        I_CODE I_DESC
    I_OP(INS_BY, INS_ON, UPD_BY, UPD_ON)
             1 Hawkins cooker
    MYTEST('APC_LOAD', '12-JUL-04', 'APC_LOAD', '12-AUG-04')
    SQL> Smoke me a kipper I'll be back before breakfast.
    Cheers, APC

  • TYPE OR TABLE DEPENDENCY OF OBJECT TYPE (ORA-2303)

    제품 : SQL*PLUS
    작성날짜 : 2004-05-20
    ==================================================
    TYPE OR TABLE DEPENDENCY OF OBJECT TYPE (ORA-2303)
    ==================================================
    PURPOSE
    Type이나 table의 dependency가 있는 type을 drop하거나 replace하고자
    하면 ORA-02303 error가 난다. 이 error의 원인을 알아보도록 한다.
    Explanation
    Object의 attribute나 method를 수정하기 위해서는 object type을 drop하고 재생성
    해야 한다. Type이나 table의 dependency가 있는 type을 drop하거나 replace하고자
    하면 ORA-02303 error가 난다. Object type은 type (nested table 또는 VARRAY)
    또는 object table로써 구체적으로 표현된다. 만약 data의 보존이 필요하다면
    temporary table에 manual하게 옮겨놓아야 한다.
    SQL Reference guide에 의하면 DROP TYPE FORCE 옵션은 recommend하지 않는다.
    왜냐하면 이 옵션을 쓰게 되면 복구가 불가능하고 dependency가 있던 table들은
    access하지 못하는 결과를 초래한다.
    Example
    아래의 query 1, 2, 3은 dependency을 확인하는 query문이다.
    1. Find nested tables
    select owner, parent_table_name, parent_table_column
    from dba_nested_tables
    where (table_type_owner, table_type_name) in
    (select owner, type_name
    from dba_coll_types
    where elem_type_owner = '<typeOwner>'
    and elem_type_name = '<typeName>');
    2. Find VARRAYs
    select owner, parent_table_name, parent_table_column
    from dba_varrays
    where (type_owner, type_name) in
    (select owner, type_name
    from dba_coll_types
    where elem_type_owner = '<typeOwner>'
    and elem_type_name = '<typeName');
    3. Find object tables
    select owner, table_name
    from dba_object_tables
    where table_type_owner = '<typeOwner>'
    and table_type = '<typeName>'
    and nested = 'NO';
    Example ) Logon as Scott
    /* Create an user defined object type */
    SQL> create type object_type as object (
    col1 number,
    col2 varchar2(20))
    Type created.
    /* Create nested table type */
    SQL> create type object_ntable as table of object_type
    Type created.
    /* Create varray type*/
    SQL> create type object_varray as varray(5) of object_type
    Type created.
    /* Create parent table with nested table and varray */
    SQL> create table master (
    col1 number primary key,
    col2_list object_ntable,
    col3_list object_varray)
    nested table col2_list store as master_col2
    Table created.
    /* Create object table */
    SQL> create table object_table of object_type (col1 primary key)
    object id primary key;
    Table created.
    ORA-2303 results if attempt to drop type with dependencies
    SQL> drop type object_type;
    drop type object_type
    ERROR at line 1:
    ORA-02303: cannot drop or replace a type with type or table dependents
    위의 queery 1,2,3을 이용하여 object type dependency을 확인한다.
    -- Find nested tables utilizing object type
    SQL> select owner, parent_table_name, parent_table_column
    from dba_nested_tables
    where (table_type_owner, table_type_name) in
    (select owner, type_name
    from dba_coll_types
    where elem_type_owner = 'SCOTT'
    and elem_type_name = 'OBJECT_TYPE');
    OWNER PARENT_TABLE_NAME PARENT_TABLE_COLUMN
    SCOTT MASTER COL2_LIST
    -- Find VARRAYs utilizing object type
    SQL> select owner, parent_table_name, parent_table_column
    from dba_varrays
    where (type_owner, type_name) in
    (select owner, type_name
    from dba_coll_types
    where elem_type_owner = 'SCOTT'
    and elem_type_name = 'OBJECT_TYPE');
    OWNER PARENT_TABLE_NAME PARENT_TABLE_COLUMN
    SCOTT MASTER COL3_LIST
    -- Find object tables
    SQL> select owner, table_name
    from dba_object_tables
    where table_type_owner = 'SCOTT'
    and table_type = 'OBJECT_TYPE'
    and nested = 'NO';
    OWNER TABLE_NAME
    SCOTT OBJECT_TABLE
    참고)
    bulletin : 11576 처럼 utility을 이용하는 방법이 있다.
    우리는 여기서 주의하여야 할 것은 script $ORACLE_HOME/rdbms/admin/utldtree.sql
    을 내가 보고자 하는 user에서 돌려야 한다는 것이다.
    $sqlplus scott/tiger
    SQL> @$ORACLE_HOME/rdbms/admin/utldtree.sql
    SQL> exec deptree_fill('TYPE','SCOTT','OBJECT_TYPE');
    PL/SQL procedure successfully completed.
    SQL> select * from ideptree;
    DEPENDENCIES
    TYPE SCOTT.OBJECT_TYPE
    TYPE SCOTT.OBJECT_NTABLE
    TABLE SCOTT.MASTER
    TYPE SCOTT.OBJECT_VARRAY
    TABLE SCOTT.MASTER
    TABLE SCOTT.MASTER_COL2
    TABLE SCOTT.OBJECT_TABLE
    Reference Documents
    Korean bulletin : 11576
    <Note:69661.1>

    Hi Carsten,
    Thanks for the sharp hint. It works.
    However, when I create a table using the schema, it gives me this error:
    varray DOC."LISTOFASSIGNEDNUMBER"."ASSIGNEDNUMBER"
    ERROR at line 14:
    ORA-02337: not an object type column
    Here is the script:
    CREATE TABLE CUSTOMMANIFEST (
    ID NUMBER PRIMARY KEY,
    DOC sys.XMLTYPE
    xmltype column doc
    XMLSCHEMA "http://www.abc.com/cm.xsd"
    element "CustomManifest"
    varray DOC."LISTOFMANIFESTPORTINFO"."MANIFESTPORTINFO"
    store as table MANIFESTPORTINFO_TABLE
    (primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    organization index overflow
    varray DOC."LISTOFASSIGNEDNUMBER"."ASSIGNEDNUMBER"
    store as table ASSIGNEDNUMBER_TABLE
    (primary key (NESTED_TABLE_ID, ARRAY_INDEX))
    organization index overflow
    LISTOFASSIGNEDNUMBER itself is complexType and not sure where is the error....
    You may note there are more than two hierachy/levels...
    Thanks.

  • Error in modifying Object Value in Triggers defined on Object Tables

    Hi,
    While practising with Triggers, the following error was encountered. Could anyone suggest what is the reason and solution for the problem.
    An Object Type and an object Table are created.
    create or replace
    type typPerson is object
    (id number,
    firstname varchar2(30),
    lastname varchar2(30)
    create table person_obj_tab of typPerson
    /Below is the trigger that modifies data according to some scenario.
    Create Or Replace Trigger Trg_B_Iou_POT
    before insert or update on  person_obj_tab
    for each row
    begin
      :new.object_value:= typperson(15,'Object1','Changed') ;
    end;
    /Trigger created.
    I executed the below insert statement, and I got the following error.
    SQL> insert into person_obj_tab values (10,'Object1','From Trigger');
    insert into person_obj_tab values (10,'Object1','From Trigger')
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 4153
    Session ID: 136 Serial number: 305
    SQL> select 1 from dual;
    ERROR:
    ORA-03114: not connected to ORACLEBut when the trigger code is changed, the above insert statement works,
    Create Or Replace Trigger Trg_B_Iou_POT
    before insert or update on  person_obj_tab
    for each row
    begin
      :new.id:= 15;
      :new.firstname := 'Object1' ;
      :new.lastname := 'Changed';
    end;
    SQL> insert into person_obj_tab values (10,'Object','Original');
    1 row created.
    Question:
    1) Trigger of version 1 did not report any error during compilation, but during DML execution, hangs for sometime and gives the above error.
    2) Whether direct assignment of Objects of greater size is possible inside triggers built on object Tables?
    3) Suppose an object contain multiple attributes (say more than 20), then how to assign them inside a trigger?
    Thanks,
    Sudher

    Hi Sudher,
    I have at least one possible reason for this behaviour.
    The pseudo-column object_value returns system-generated names for the columns of an object table.
    I don't know if you can use it for a complete instance you want to modify.
    And I recognized that you don't use the constructor for inserting data in your table.
    Why not?
    Following suggestion:
    create or replace
    type typPerson is object
    (id number,
    firstname varchar2(30),
    lastname varchar2(30)
    create table person_obj_tab of typPerson
    Create Or Replace Trigger Trg_B_Iou_POT
    before insert or update on  person_obj_tab
    for each row
    begin
      :new.id := 15;
      :new.firstname := 'Object1';
      :new.lastname := 'Changed';
    end;
    insert into person_obj_tab values (typperson(10,'Object1','From Trigger'));
    select * from person_obj_tab;When you modify the attributes always for themselves, it works.
    Triggers in my opinion have the issue to modify or set some choosen columns, but not all.

  • How many objects will be created due to constructor chaining

    Consider this case
    ChildClass obj = new ParentClass();
    I would like to know how many objects will be created in this process.

    Consider this case
    ChildClass obj = new ParentClass();
    I would like to know how many objects will be created
    in this processThe simple answer is one.
    The complex answer is many.
    In terms only of the classes that your code represents conceptually there will be one.
    The reality is that the the object itself might create objects. And loading the classes, if it has not already occurred will also create objects.

  • View objects performance issue with oracle seeded tables

    While i am writing a view object on a oracle seeded tables like MTL_PARAMETERS, its taking more time to show in the oaf page.I am trying to display all these view object columns in detail disclosure of advanced table. My Application is taking more than two minutes to display the view columns of the query which is returning just 200 rows. Please help me how to improve performance when my query using seeded tables.
    This issue is happening only in R12 view object and advanced tables.
    Edited by: vlsn on Jun 24, 2012 11:36 PM

    Hi All,
    Here is architecture of my application:
    Java application creates XML from the screen values and then inserts that XML
    into a framework(separate DB schema) table . then Java calls a Stored Procedure from same framework DB and in SP we have following steps.
    1. It fatches XML from the XML type table and inserts XML into screen specific XML TYPE table in the framework DB Schema. This table has a trigger which parses XML and then inserts XML values into GTT which are created in separate product schemas.
    2. it calls Product SP and then in product SP we have business logic. Product SP
    does the execution and then inserts response into Response GTT.
    3. Response XML is created by using XML generation function and response GTT.
    I hope u will understand my architeture this time and now let me know if GTT are good in this scenario or not. also please not that i need data in GTT only during execution and not after that. i dont want to do specific delete which i have to do if i am using normal tables.
    Regards,
    Vikas Kumar

  • Create object on user's default tablespace only

    Hi all,
    Is there anyway I can limit a user to create tables NOT on system tablespace , besides alter user quota 0M on system ?
    Can I limit a user to create objects only on his own default tablespace ?
    alter user quota 0M on < all other tablespaces except user's default> ?
    Thanks.

    Hi,
    I have really no idea why oracle is behaving like this. How can you create a table without a quota.
    1) Write here the oracle version for your database software
    2) Can you try connecting to the database with same user id but from a remote client using TNS method instead of logging in locally, and they try creating the table.
    3) Can you give only CREATE SESSION privilege (not create table) and then perform the same task again.
    PS: Please paster your code/output enclosed withing code tag. Write **, then your code/output and then again *{code*
    Salmam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Don't  Oracle SQL Developer show Object tables ?

    Hi
    when I create a table of an object in oracle the SQL Developer don't show it in Tables tree
    my mean is that SQL Developer don't show object tables that are defined in user_object_tables or dba_object_tables
    in Tables tree (while other tools such as PL/SQL Developer do it)
    do you know that is there any solution for showing object tables in Table tree in SQL Developer ?
    thanks

    Any updates on this? I have the same problem. "Types" only shows the object types, but not the tables based on these object types.
    Erwin

  • Help ! Cannot retrieve Object table data from Oracle 8i

    Dear All,
    Created the object and object table in SQL*Plus. If query from SQL*Plus, return rows selected.
    But if query from SQL*Plus worksheet and ODBC Test program, return "0 rows selected".
    Similary, if created the object and object table in SQL*Plus worksheet and query from SQL*Plus worksheet, return rows selected.
    But if query from SQL*Plus or ODBC Test program, return "0 rows selected".
    Appreciate advice from anyone. Thanks in advance.
    Oracle version. 8i Enterprise Edition Release 2
    Scrip to create object and insert record:
    CREATE TYPE stockitem_objtyp AS OBJECT (
    STOCKNO NUMBER,
    PRICE NUMBER,
    TAXRATE NUMBER
    CREATE TABLE stock_objtab of stockitem_objtyp (stockno primary key) object id primary key;
    INSERT INTO Stock_objtab VALUES (1, 1000, 3);
    select * from stock_objtab;
    null

    First, I suspect that this question probably belongs on the ODBC forum, since it doesn't appear to be at all related to the JVM.
    That said, I don't seem to have any problem retrieving the data, either through ODBC or SQL*Plus. If you post your question to the ODBC forum, perhaps some other folks will be able to try this and we can narrow down the problem.
    Justin Cave
    ODBC Development

  • Impossible to create an index with an object table

    Is it possible to use object tables with Oracle Spatial ?
    With Oracle 8.1.7.0.0, here is the example where I encounter a problem (this example works of course with an equivalent relational table) :
    create or replace type zonegeo as object (
    id integer, definitionGeo MDSYS.SDO_GEOMETRY
    create table essaigeo of zonegeo (id PRIMARY KEY)
    OBJECT ID PRIMARY KEY;
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES ('ESSAIGEO','DEFINITIONGEO',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X', 47680.000, 1197822.000, 0.005),
    MDSYS.SDO_DIM_ELEMENT('Y', 1620431.000, 2677441.000, 0.005)
    NULL -- SRID
    CREATE INDEX ESSAIGEO_SPATIAL_IDX
    ON ESSAIGEO(DEFINITIONGEO)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    PARAMETERS ('SDO_LEVEL = 6);
    ERREUR ` la ligne 1 :
    ORA-29855: erreur d'exicution de la routine ODCIINDEXCREATE
    ORA-13203: ichec de lecture de la table USER_SDO_GEOM_METADATA
    ORA-13203: ichec de lecture de la table USER_SDO_GEOM_METADATA
    ORA-06512: ` "MDSYS.SDO_INDEX_METHOD", ligne 8
    ORA-06512: ` ligne 1

    In Oracle 8.1.7 you cannot embed a geometry type in another type and index it.
    In 9i, you can , but not in the way you've defined it, i.e. you have to create a regular
    table, and have a column of type zonegeo, and make a few other changes, i.e.:
    create or replace type zonegeo as object (
    id integer, definitionGeo MDSYS.SDO_GEOMETRY
    create table essaigeo (zone zonegeo);
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES ('ESSAIGEO','ZONE.DEFINITIONGEO',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X', 47680.000, 1197822.000, 0.005),
    MDSYS.SDO_DIM_ELEMENT('Y', 1620431.000, 2677441.000, 0.005)
    NULL -- SRID
    CREATE INDEX ESSAIGEO_SPATIAL_IDX
    ON ESSAIGEO(ZONE.DEFINITIONGEO)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    PARAMETERS ('SDO_LEVEL = 6);

  • Error in creating a simple table with JSON object in SAPUI5

    The error is :  SCRIPT1006: Expected ')' 
    <!DOCTYPE HTML>
    <HTML>
    <HEAD>
    <TITLE>Your Title Here</TITLE>
    <META http-equiv="X-UA-Compatible" content="IE=edge">
    <META http-equiv='cache-control' content='no-cache'>
    <META http-equiv='expires' content='0'>
    <META http-equiv='pragma' content='no-cache'>
    <script src="resources/sap-ui-core.js"
    id="sap-ui-bootstrap"
    data-sap-ui-libs="sap.ui.commons,sap.ui.table "
    data-sap-ui-theme="sap_goldreflection">
    //themes : sap_platinum, sap_goldreflection
    </script>
    <script>
    // create some local data using JSON
    var aData = [
    {Applications: "WVL BOD 9212", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/23/2014" },
    {Applications: "WVL BOD 9211", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/24/2014" },
    {Applications: "WVL BOD 3303", PercentComplete: "75", Date_Due: "6/16/2016", Testing_Due: "6/25/2014" },
    {Applications: "ETW BOD 3304", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/26/2014" },
    {Applications: "CLE BOD 1902", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/27/2014" },
    {Applications: "ISO HAZ", PercentComplete: "80", Date_Due: "6/1/2014", Testing_Due: "6/8/2014" },
    {Applications: "ISO CWO", PercentComplete: "80", Date_Due: "6/01/2014", Testing_Due: "6/8/2014" },
    {Applications: "WVL 3 Stream ", PercentComplete: "60", Date_Due: "6/29/2014", Testing_Due: "" },
    {Applications: "ISO Integration", PercentComplete: "10", Date_Due: "6/1/2014", Testing_Due: "6/8/2014" },
    {Applications: "WVL 7 QM Charts", PercentComplete: "15", Date_Due: "6/15/2014", Testing_Due: "" },
    {Applications: "SCB PCO", PercentComplete: "100", Date_Due: "?", Testing_Due: "" },
    {Applications: "SCB Top Chart ", PercentComplete: "10", Date_Due: "5/20/2014", Testing_Due: "" },
    {Applications: "Project Status", PercentComplete: "25", Date_Due: "7/25/2014", Testing_Due: "" },
    {Applications: "WVL LOI", PercentComplete: "100", Date_Due: "4/20/2014", Testing_Due: ""},
    {Applications: "DSS (HTML5)", PercentComplete: "100", Date_Due: "3/31/2013", Testing_Due: ""},
    {Applications: "ETW 3304 BOD Pilot",PercentComplete: "100", Date_Due: "11/16/2013", Testing_Due: ""},
    {Applications: "HTMl 5 Table Tools",PercentComplete: "100", Date_Due: "2/12/2014", Testing_Due: ""},
    {Applications: "ISO JAX",PercentComplete: "100", Date_Due: "7/31/2013", Testing_Due: ""},
    {Applications: "ISO FEN",PercentComplete: "100", Date_Due: "1/10/2014", Testing_Due: ""},
    {Applications: "WVL QM Display",PercentComplete: "100", Date_Due: "2/12/2014", Testing_Due: ""},
    // Define a table [Note: you must include the table library to make the Table class work]
    var oTable = new sap.ui.table.Table({
        title: "Projects Status", // Displayed as the heading of the table
        visibleRowCount: 4, // How much rows you want to display in the table
        selectionMode: sap.ui.table.SelectionMode.Single, //Use Singe or Multi
        navigationMode: sap.ui.table.NavigationMode.Paginator, //Paginator or Scrollbar
        fixedColumnCount: 4, // Freezes the number of columns
    enableColumnReordering:true,       // Allows you to drag and drop the column and reorder the position of the column
    width:"1024px" // width of the table
    // Use the Object defined for table to add new column into the table
        oTable.addColumn(new
        label: new sap.ui.commons.Label({text: "Applications"}), // Creates an Header with value defined for the text attribute   <<<<<<<SCRIPT1006: Expected ')'
        template: new sap.ui.commons.TextField().bindProperty("value", "Applications"), // binds the value into the text field defined using JSON
        sortProperty: "Applications",        // enables sorting on the column
        filterProperty: "Applications", // enables set filter on the column
        width: "125px" // width of the column
        oTable.addColumn(new
        label: new sap.ui.commons.Label({text: "PercentComplete"}),
        template: new sap.ui.commons.TextField().bindProperty("value", "PercentComplete"),
        sortProperty: "PercentComplete",
        filterProperty: "PercentComplete",
        width: "125px"
    oTable.addColumn(new
        label: new sap.ui.commons.Label({text: "Date_Due"}),
        template: new sap.ui.commons.TextField().bindProperty("value", "Date_Due"),
        sortProperty: "Date_Due",
        filterProperty: "Date_Due",
        width: "125px"
    oTable.addColumn(new
        label: new sap.ui.commons.Label({text: "Testing_Due"}),
        template: new sap.ui.commons.TextField().bindProperty("value", "Testing_Due"),
        sortProperty: "Testing_Due",
        filterProperty: "Testing_Due",
        width: "125px"
    //Create a model and bind the table rows to this model
    var oModel = new sap.ui.model.json.JSONModel();  // created a JSON model     
    oModel.setData({modelData: aData});      // Set the data to the model using the JSON object defined already
    oTable.setModel(oModel);
    oTable.bindRows("/modelData");    // binding all the rows into the model
    //Initially sort the table
    oTable.sort(oTable.getColumns()[0]);   
    // finally place the Table into the UI
    oTable.placeAt("content1");
      </script>
    </HEAD>
    <BODY>
    <div id='content1'></div>
    </BODY>
    </HTML>

    Hi Amr
    Here is an example on how to addColumn
    Example
    -D

  • Is it possible to serialize a user created object with an oracle.sql.BLOB?

    Is this possible? Cause I'm getting a WSDL Exception that the oracle.sql.BLOB is not a java bean. So how do I make it a java bean? What data type should I use?

    here is the object that was created.
    import java.io.Serializable;
    public class DiagramsObj implements Serializable {
        private int     galleyDiagramId = -1;
        oracle.sql.BLOB galleyDiagramBlob = null;
        private String galleyName = null;
        /** SET THE VALUES TO THE OBJECT */
        public void setGalleyDiagramId(int newGalleyDiagramId) {
            galleyDiagramId = newGalleyDiagramId;
        public int getGalleyDiagramId() {
            return galleyDiagramId;
        public void setGalleyDiagramBlob(oracle.sql.BLOB newGalleyDiagramBlob) {
           galleyDiagramBlob = newGalleyDiagramBlob;
        public oracle.sql.BLOB getGalleyDiagramBlob() {
            return galleyDiagramBlob;
        public void setGalleyName(String newGalleyName) {
           galleyName = newGalleyName;
        public String getGalleyName() {
            return galleyName;
    }

  • How to create object from Table?

    Hi all,
    Is there any command to create an object type from a table?
    I i want to that command to create object type from emp table insted of typing the following command:
    CREATE TYPE emp_t AS OBJECT
    (empno NUMBER(6),
    ename VARCHAR2(25),
    job VARCHAR2(10),
    mgr NUMBER(6),
    hiredate DATE,
    sal NUMBER(8,2),
    comm NUMBER(2,2))
    any help would highly be appriciated.
    Thank you in advance,
    Alireza

    Hi Jafar,
    Thanks for your attention,
    I dont want to create synonym,
    I just want to create some Object types and work with XMLDB and create xsd or somthing like that using XMLDB packages.
    I supose There shold be a simple way to do that.
    Alireza

Maybe you are looking for

  • Uploading cds to ipod

    When uploading my cds to the ipod the music transfers but the names of the artist/songs do not??? Can anyone help? Thanks.

  • Slow MAIL Syndrome (SMS)

    A while ago, I had trouble with my MAIL showing the spinning wheel and slowing down not only MAIL but the rest of the computer as well. For no particular reason, while the wheel was/is spinning, messages show up in the tool bar such as "adding 1 of 1

  • Disk Utility Disk Error

    When running disk utility this past weekend I came across the following errors: Invalid Volume Free Block Count (It should be 146352250 instead of 146352248) The Volume Macintosh HD was found to be corrupt and needs to be repaired. This hard drive is

  • 3000 N 100 / 0768 59G: kein sound unter windows 8.1

    Hallo, Ich will mein notebook 300N100 0768 59G von Windows XP auf Windows 8 or 8.1 umziehen. Alles ist gut, nur die Sundkarte "soundmax integrated digital hd audio" funktioniert nicht. Kein sound. Ich habe einige Treiber getestet: soundmax - Analog_D

  • DHCP issues for Wired Guest LAN

    Hi Everyone, I've a 1751 acting as a DHCP server for client PCs on a guest network A.B.8.x (using an Anchor controller) on the DMZ of my firewall. The 1751 reports the following Nov 30 15:35:45: DHCPD: DHCPDISCOVER received from client 0100.1708.37a3