How do I use Object Type

Hi,
I have the following object type
create or type address_type as object
(street varchar2(10), no varchar2(10));
and table: create table test(id integer, address address_type)
How can I insert values in my table test using apex?
Thank you

Hi,
Both the above suggestions do not work
I have say an ITAB of type SPFLI.
How do I convert this data into xstring type?
Also does my ITAB have to be a specific type for me to get this to work?
Cheers
Kiran

Similar Messages

  • How can I use object type in Jdeveloper 11g?

    Dear friends
    I made some object types(Database layer) and each one refer to functions or procedures to generate table or view, for instance in one of my project I could make a View Object with this function and generate a table:
    Select * from table (genarate_emp(2019))
    In this sample I used a static value (2019) and I did it perfectly, but I want to make a table with dynamic value for instance I would like to set partial trigger of this view object and get dynamic value from the other view object.
    Please help me if you have any suggestions.
    Best regards,
    Babak Saraie

    Hi Babak
    It's a common requirement on posting to this forum that you describe which version of JDeveloper you're using and what technologies (obviously ADF BC in this case).
    For making the static value dynamic within your View Object, are you familiar with the View Object bind variables/bind parameters? This will allow you to define a named variable in your VO that you can set programmatically or even let the user set. Play around with those first and see if they solve one part of your problem, then come back to the forum for the second part.
    Regards,
    CM.

  • How to read PP01- Object type u0091Positionu0092- Description- Text

    Hi All,
    How to read PP01->Object type ‘Position’->Description->Text
    I tried to use READ_TEXT but i am not able to figure out what combination
    to be given in input fields  of this BAPI.
    Please Guide.
    Regards

    Hi Amit,
    Thanks for reply.
    It is coming in HRT1002 table which is linked with HRP1002 with field TABNR.
    But problem is that I have to capture this value in BADI-HRBAS00INFTY.
    Before save. Because with BADI i need to update data in it.
    any solution of it?
    Regards

  • Help needed: modeling master-detail relationship using Object types

    I would like to use object types to model a master-detail relationship. For e.g.
    create or replace type detail_t as object
    (id number,
    name varchar2(20)
    create or replace type details_t as
    table of detail_t
    create or replace type master_t as object
    (id number,
    name varchar2(20),
    details details_t
    If I don't use database object-tables, how can I return multiple master rows of the type above from a PL/SQL procedure? Can I return a cursor of some sort?
    I'm using Oracle 8.1.7.
    Thanks,
    Niranja

    Niranjan,
    After the object types are defined, your data would come from either object tables or object views. In your case, to get multiple master rows, simply query the object view.
    Regards,
    Geoff

  • How to use Object types with inheritance in design editor

    Does anyone know how to implement Oracle object sub types in Design editor.
    Is there a way of using the Database design transformer to convert entities to Object types rather than tables?
    Thanks in anticipation
    David

    What database and connection type are you using? Are you connecting the report directly to the database, or trying to assign the datasource to object data?
    It sounds like you might be trying to use a linked list, collection or other C# construct to pass your data in. This currently isn't supported by the Crystal Reports SDK. You can use a DataSet or a DataTable, and possibly also an IDataReader depending on which version of Crystal Reports you're referencing in your project. Of course you can also connect directly to the database, even if the database isn't on the same machine as the application.
    The way to show master records with detail information is through the use of subreports and linked subreport parameters. Linked subreports take their parameter value from a record in the main report, so that only the data appropriate to that master record is displayed. The guys over in the [report design|SAP Crystal Reports; forum can help you out with this if you have questions on the specifics.

  • How to use object type collection in my function?

    Hi,
    I want to declare Object type collection with in my function like same a Record type collection. But it is saying error like below
    PLS-00540: object not supported in this context.
    Can anyone tell me how can i resolve this? I don't want to go with create object type functionality.
    Thanks

    Hi below is my full query.
    SELECT  czci.config_hdr_id,
            czci.config_rev_nbr,
            asoqla.quantity,
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci1
                WHERE   czci1.config_hdr_id = asoqld.config_header_id
                AND     czci1.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND     NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci1.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = asoqld.config_header_id
                                                        AND sub_sub.CONFIG_REV_NBR = asoqld.config_revision_num
                                                        AND      sub_sub.PS_NODE_NAME = 'fittings')) fitting_material,
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci
                WHERE   czci.config_hdr_id = asoqld.config_header_id
                AND     czci.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = czci.CONFIG_HDR_ID
                                                        AND sub_sub.CONFIG_REV_NBR = czci.CONFIG_REV_NBR
                                                        AND      sub_sub.PS_NODE_NAME = 'tubing')) tubing_material,
            NVL((SELECT czci.item_val
             FROM cz_config_items czci
             WHERE     czci.config_hdr_id = asoqld.config_header_id
             AND czci.config_rev_nbr = asoqld.config_revision_num
             AND czci.value_type_code <> 4
             AND czci.ps_node_name = 'control_circuit_name'),
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci
                WHERE   czci.config_hdr_id = asoqld.config_header_id
                AND     czci.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = czci.CONFIG_HDR_ID
                                                        AND sub_sub.CONFIG_REV_NBR = czci.CONFIG_REV_NBR
                                                        AND      sub_sub.PS_NODE_NAME = 'pneumatic_schematics'))
             ) schematic_name
    FROM    aso_quote_lines_all asoqla,
            aso_quote_line_details asoqld,
            cz_config_items czci
    WHERE   asoqla.quote_header_id = 58455
    AND     asoqla.item_type_code = 'MDL'
    AND     asoqla.quote_line_id = asoqld.quote_line_id 
    AND     asoqld.config_header_id = czci.config_hdr_id
    AND     asoqld.config_revision_num = czci.config_rev_nbrBelow is my explain plan
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.11       0.11          0          0          0           0
    Execute      2      0.01       0.01          0          0          0           0
    Fetch        3      0.06       0.06          0       3429          0          19
    total        6      0.18       0.18          0       3429          0          19That's what i am planning to write each select queries in a pipelined function then join all the functions. If i run one each query it is giving less query fetch
    Thanks

  • Need some help on procedure calling procedure using object type reg

    dear all,
    i need to test one procedure by passing only one value but how do i pass single value. i am showing the details of few section on which i am working on. here is few details about the package.
    Description: package pkj_emp contains two procedure pkj_emp and procedure proc_rem.
    purpose:based on passing dname values to procedure pkj_emp, cursor cur_emp will fetch empid from emp table and then we are passing 4 empid records to procedure proc_rem using empid object type.Inside the procedure proc_rem it will delete all 4 records of table A,B,C and D at one short.
    Requirement:i need to test for only one value that means is it possible i can pass only one value using the cursor cur_emp.
    create or replace package pkj_emp
    TYPE obj_emp IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
    procedure proc_emp(empid obj_emp);
    create or replace package body pkj_emp
    as
    procedure(
    dname varchar2;
    as
    cursor cur_emp is select emp_id from emp a,dept d
    where a.deptid=d.deptid
    and d.deptname=dname;
    begin
    count:=0;
                   for cur_emp_rec in cur_emp LOOP
                   empid(count) := cur_emp_rec.emp_id;
              IF (count = 4) THEN
                   proc_rem(empid); // calling another procedure
                   commit;
                   END IF;
                   count := count + 1;
                   END LOOP;
    end;
    proc_rem(
    empid obj_emp;
    is
    begin
    delete from A where emp_id in (empid(0),empid(1),empid(2),empid(3));
    delete from B where emp_id in (empid(0),empid(1),empid(2),empid(3));
    delete from c where emp_id in (empid(0),empid(1),empid(2),empid(3));
    delete from d where emp_id in (empid(0),empid(1),empid(2),empid(3));
    end;
    regards
    Laxman

    You have hardcoded your IN LIST in the REM procedure. I recommend changing the code to take a variable number of inputs. You could do something like the following:
    SQL> CREATE TABLE A (ID NUMBER);
    Table created.
    SQL> CREATE TABLE B (ID NUMBER);
    Table created.
    SQL> CREATE TABLE C (ID NUMBER);
    Table created.
    SQL> CREATE TABLE D (ID NUMBER);
    Table created.
    SQL> INSERT INTO A VALUES(7566);
    1 row created.
    SQL> INSERT INTO B VALUES(7902);
    1 row created.
    SQL> INSERT INTO C VALUES(7876);
    1 row created.
    SQL> INSERT INTO D VALUES(7369);
    1 row created.
    SQL> CREATE OR REPLACE TYPE EMP_TYPE AS TABLE OF NUMBER(4);
      2  /
    Type created.
    SQL> CREATE OR REPLACE PACKAGE PKJ_EMP
      2  AS
      3          PROCEDURE PKJ_EMP
      4          (
      5                  DNAME   IN      SCOTT.EMP.DEPTNO%TYPE
      6          );
      7 
      8          PROCEDURE REM
      9          (
    10                  pEMPList  IN      EMP_TYPE
    11          );
    12  END PKJ_EMP;
    13  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY PKJ_EMP
      2  AS
      3          PROCEDURE PKJ_EMP
      4          (
      5                  DNAME   IN      SCOTT.EMP.DEPTNO%TYPE
      6          )
      7          AS
      8                  pEMPList        EMP_TYPE := EMP_TYPE();
      9                  i               NUMBER := 1;
    10          BEGIN
    11                  FOR r IN
    12                  (
    13                          SELECT  EMPNO
    14                          FROM    SCOTT.EMP
    15                          WHERE   DEPTNO = DNAME
    16                  )
    17                  LOOP
    18                          pEMPList.EXTEND;
    19                          pEMPList(i) := r.EMPNO;
    20 
    21                          i := i + 1;
    22                  END LOOP;
    23 
    24                  REM(pEMPList);
    25          END PKJ_EMP;
    26 
    27          PROCEDURE REM
    28          (
    29                  pEMPList  IN      EMP_TYPE
    30          )
    31          AS
    32          BEGIN
    33                  DELETE FROM A WHERE ID IN (SELECT   COLUMN_VALUE FROM TABLE(pEMPList));
    34                  DELETE FROM B WHERE ID IN (SELECT   COLUMN_VALUE FROM TABLE(pEMPList));
    35                  DELETE FROM C WHERE ID IN (SELECT   COLUMN_VALUE FROM TABLE(pEMPList));
    36                  DELETE FROM D WHERE ID IN (SELECT   COLUMN_VALUE FROM TABLE(pEMPList));
    37          END REM;
    38  END PKJ_EMP;
    39  /
    Package body created.
    SQL> EXEC PKJ_EMP.PKJ_EMP(20);
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM A;
    no rows selected
    SQL> SELECT * FROM B;
    no rows selected
    SQL> SELECT * FROM C;
    no rows selected
    SQL> SELECT * FROM D;
    no rows selected
    SQL> spool off;HTH!

  • How can I use Object's methed by OO4O

    I have done a type as following
    create or replace type classteacher as object
    tchid number,
    tchname varchar2(30),
    tchhomepage varchar2(100),
    tchsex varchar2(4),
    member procedure getCourseList(crslist out sys_refcursor)
    and the method is define as following
    create or replace type body CLASSTEACHER is
    member procedure getCourseList(crslist out sys_refcursor)
    is
    begin
    open crslist for
    select a.crs_id,a.crs_name,a.crs_notice
    from tb_courselist a,tb_teacher b
    where trim(a.tech_name) = trim(b.name)
    and b.teacher_id = tchid;
    end;
    how can I use the method by OO40 in vb.net.

    What is that post supposed to be?

  • How to create required object types manually ?

    Hi all,
    I got this XML schema entry:
    <xs:element name="Chapters"
    minOccurs="0"
    maxOccurs="1"
    xdb:SQLName="CHAPTERS"
              xdb:SQLType="XDB_CHAPTERS_TYPE">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Chapter"
              xdb:SQLName="CHAPTER"
    xdb:SQLCollType="XDB_CHAPTERS_COLLECTION"               
                   minOccurs="1"
                   maxOccurs="unbounded"
                   xdb:SQLType="XDB_CHAPTER_DETAILS_TYPE">
         <xs:complexType>
              <xs:simpleContent>
              <xs:extension base="xs:string">
              <xs:attribute name="No"
                        type="xs:positiveInteger"
                        xdb:SQLName="NO"/>
              </xs:extension>
              </xs:simpleContent>
         </xs:complexType>
         </xs:element>
         </xs:sequence>
         </xs:complexType>
    </xs:element>
    which results in this entry in a XML file:
    <Chapters>
    <Chapter No="12">The Longest Time</Chapter>
    </Chapters>
    Question: How do I have to create the corresponding object type, which is required for XML schema registration ?
    Any help is appreciated...
    Regards Markus

    Hi Markus
    I don't know why you want to manually creates the types... anyway since it can by quite complex to write all CREATE TYPE statement for a real schema... here my suggestion:
    1) activate a tracing with the following statement
    ALTER SESSION SET EVENTS '31098 TRACE NAME CONTEXT FOREVER'
    2) register the schema with GENTYPES=&gt;TRUE
    3) in a trace file under UDUMP you find all the statements executed, therefore the CREATE TYPE as well
    4) use these statement as basis for your scripts
    Chris

  • Has anyone used Object types in developer

    If Oracle tables are based on Object types, how does Oracle developer recognise them. Can those tables be used ? I mean if I created a type like :
    CREATE TYPE address_typ AS OBJECT (
    street VARCHAR2(15),
    city VARCHAR2(15),
    state CHAR(2),
    zip VARCHAR2(5)
    and another type :
    CREATE TYPE person_typ AS OBJECT (
    id NUMBER,
    first_name VARCHAR2(10),
    last_name VARCHAR2(10),
    dob DATE,
    phone VARCHAR2(12),
    address address_typ);
    and then create a table object_customers :
    CREATE TABLE object_customers OF person_typ;
    Can i use this table in Oracle developer forms ? If anyhow ?

    Yes I added the same 1GB Corsair back in May 2006 to the stock 512MB. Replace the 512MB with the 1GB then put the 512MB in the other slot. Slide them in untill you feel then stop, then give them a hard shove to seat them into there slots. After you have seated both modules close the ejector clips and replace the cover.
    http://docs.info.apple.com/article.html?artnum=303084
    That extra 1GB will make a big difference, you'll love it.
    Dennis
    17" iMac Intel Core Duo 1.5GB Ram   Mac OS X (10.4.8)   Maxtor 300GB FireWire 2G Nano

  • How to identify the object type in xpress

    In ui global.startdate is evalued with Date object type when use display class as DatePicker. After save, the global.startdate is String type. The other place in the code has use this global.startdate to convert to special date string. The problem is how to detect what data type the global.startdate is at one particular moment?

    In my case I do the following.
    1. Use the following rule to display the date in the desired format.
    <invoke name='dateToString' class='com.waveset.util.Util'>
    <ref>inputdate</ref>
    <s>MM-dd-yyyy</s>
    </invoke>
    At any point in time if one wants to know, one explicity needs to convert the java.util.Date obtained from datepicker using dateToString method in the Util class.
    2. When one wants to insert the date into the database then the following can be done.
         // First Convert the dates into appropriate formats
         SimpleDateFormat formater = new SimpleDateFormat("mm-dd-yyyy");
         java.sql.Date _startDate     = null;
         if(startdate != null) {
              java.util.Date parsedDate = formater.parse(startdate, new ParsePosition(0));
              _startDate = new java.sql.Date(parsedDate.getTime());
              System.out.println("_startDate::::"+_startDate);
         }

  • How to access Business object type attribute from a method/function modul ?

    Hello,
    i have created a business object type object along with attributes and methods. Now inside the method i want to access the attributes. inside the method i am writing:
    data a type XXX.
    a = me->attribute
    this is creating a compilation error.
    Now the method is defined as a function module in some package, so can anyone inform me how to access object attributes from the function module ?
    pointes are awarded
    Regards

    Hello,
    thanks for your answer, but this too did not work, "=>" is for static attributes and the attributes i have are not static. Moreover, i tried it but it gave the same error :
    the abap error was when i was checking the code is :
    the type me=>documenttype is unknown
    as you know in SWO1 i created an object and when i create a method you link it to a function module and this is where you have the implementation of the method, so from this method how can i access the attributes on the main object that i created in SWO1
    regards

  • How to add new Object Type In Mass

    Hi Expert,
    We have to required change Payment term of Customer (ZTERM) in scheduled Agreement,
    we have gone through Mass, but presently no object type available to change in scheduled Agreement, So can we add the new object in Mass? & How? Please help.
    Regards
    BK GAIKWAD

    Hi,
    Presently no standard object type avaialble for Sch. agr.(Sales)
    Go for BDC for updation of your field (try with LSMW also)
    Thanks
    Chidambaram

  • OBIEE 11G Web Services - How to find Catalog Object Type

    Hi All,
    I am trying to access the Web Catalog objects available in OBIEE 11.1.1.5 through the Web Services API. I am able to read object names in "/shared" folders using the getSubItems() web service. My objective is as follows
    1. Categorize catalog objects based on their type (Analysis, Agent, Action, Condition, etc...)
    2. If possible, read the presentation column information that each object is using
    The ItemInfoType structure only provides for types - Folders, Link, Missing, Object, etc... and does not help me in identifying the actual catalog object type. Any help on this regard is appreciated.
    Thanks,
    Raj.

    Is there any solution for this? We also face similar issue recently...

  • How to initialize the object type in pl/sql

    Hi,
    I am looking for an easy way to initialize the object type in pl/sql.
    I have created a object type with around 2 attributes.
    when ever i need to initialize the object ..need to pass:
    declare
    v_obj emp_obj;
    begin
    v_obj := emp_obj(null,null);
    then i can assign the values to object.
    Since I am having more than 50 attributes.. need to pass null to all the object attributes.
    is there any other way to initialize the object.
    thanking you in advance!!!

    RTFM [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/appdev.920/a96594/adobjadv.htm#1008810]Advantages of User-Defined Constructors

Maybe you are looking for