Parent-child LOV dependencies

Hi
i have a problem, i have to create 2 lov, a parent LOV and a child LOV....the Child LOV have to depend from the first LOV. The problem is that i can't execute submit after the first selection, because these lovs is in a Tabular form......first lov in the first column and second lov in the second column.
How can i do?
Thanks

Hi,
See this link: http://htmldb.oracle.com/pls/otn/f?p=31517:234:3947371667335265:::RP,::
thanks
Tauceef

Similar Messages

  • APEX 4.1 dynamic parent child LOV

    Is is possible to create a dynamic parent child LOV? I want to be able to use information populated by a user on a form to become a select list on a subsequent form where the second field (child) is dependent on what is selected on the first field (parent). The list needs to grow based on data entered on the initial form and maintain the relationship.

    You should post this in the APEX forum.
    Oracle Application Express (APEX)
    Please open a thread on the APEX forum, update this thread with the link to the new thread and the mark this thread ANSWERED.

  • Multi-Org Parent-Child LOV

    Issue Description:
    in Action BC (Table: S_EVT_ACT) we are trying to implement the following organization based parent child picklists/LOVs for Status->Status Reason
    [Status] - Activity Status field (col: EVT_STAT_CD)
    *Picklist: LOV Type = 'EVENT_STATUS', picklist BC: 'List Of Values Dynamic (REL)'
    [LN Status Reason] - customised field/column (Col: X_STATUS_REASON)
    *Picklist: LOV Type = 'LN_MISSED_ACTIVITY_REASON', picklist BC: 'PickList Hierarchical'
    *Pick Map: [LN Status Reason] = [Value], [Status] = [Parent] (Constraint = Y)
    in the Admin-Data LOVs:
    Type = EVENT_STATUS, Display Value/LIC = "Not Achieved", Organization = "Org 1"
    Type = LN_MISSED_ACTIVITY_REASON
    Display Value/LIC = "Reason 1", Parent LIC = "Not Achieved", Organization = "Org 1"
    Display Value/LIC = "Reason 2", Parent LIC = "Not Achieved", Organization = "Org 1"                                                                                          
    On UI, create new record in Account - Activities, selecting Status = "Not Achieved".
    Now when i try to select the Status Reason value, the drop down does not give me any value.
    If I set the Organization to blank on "Reason 1", then the "Reason 1" value shows up in the Status Reason drop down under Account - Activities.
    In SQL of the log file, for the Status Reason drop down, it always hard code a T1.BU_ID is null in the WHERE clause, this would explain why its blank in the dropdown
    Also as a test, If i remove all the pick map constraints for the [LN Status Reason] field (ie the only record in the pick map is [LN Status Reason] = [Value]), then the drop down works correctly (ie displaying both the values with Organization = "Org 1"), and in the SQL of the log file, instead of BU_ID is null, it has BU_ID = ? with variable binding.
    Is there a reason why it would hard code the BU_ID is null in the WHERE clause in the SQL, and how to overcome this to achieve my requirement.
    Just a further update due to character limit of the original description,
    The "Owner Organization Specifier" property on the table S_EVT_ACT is blank (not sure if its related to anything though)
    The user i'm using belongs to "Org 1" for both the employee's Organization and its Position's Organization
    Thanks

    This is exactly what I'm looking for...I just can't make it work. I have 2 tables (database and schema). They are related via a database_id column. My code is below if you are willing to help.
    HTML Header
    <script>
    function get_select_list_xml1(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=CASCADING_SCHEMA',0);
    get.add('P7_DATABASE',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    </script>
    Application Process
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<select>');
    HTP.prn ('<option value="' || 0 || '">' || '- All Schemas -'
    || '</option>'
    FOR c IN (SELECT schema, schema_id
    FROM (SELECT schema, schema_id, database_id
    FROM schema_lookup
    WHERE database_id = :cascading_selectlist_item_1)
    LOOP
    HTP.prn ('<option value="' || c.schema_id || '">' || c.schema || '</option>');
    END LOOP;
    HTP.prn ('</select>');
    END;
    P7_DATABASE_ID Form Element Attribute
    onchange="get_select_list_xml1(this,'P7_SCHEMA_ID');
    P7_SCHEMA_ID LOV
    select SCHEMA d, SCHEMA_ID v from SCHEMA_LOOKUP
    where DATABASE_ID = :P7_DATABASE_ID
    order by 1

  • Select List (Parent/Child) LOV

    I have the Easy Oracle HTML-DB book, they give an example of a
    Parent Child Select List using a query.
    Does anyone know how to apply the Parent/Child relationship with
    a List of Value generated from a table.
    Example
    Parent Child
    Car Pontiac
    Car Buick
    Car Cadillac
    Car Nissan
    Truck Tahoe
    Truck Silverado
    Truck F150
    Truck Titan
    The parent(s) in the above example are Car/Truck, the children are in the adjacent column.
    Objective: When the parent "Car" is chosen, only the "Pontiac/Buick/Cadillac/Nissan" will be available, once the child is selected,
    wish to submit to a empty table that can grow dynamically.
    OS: Windows: XP
    Oracle ver.: 10g
    Apex ver.: Release 2

    Hi,
    are you just having one table storing all the values?
    1) Create a "Select list with Submit"
    2) Lov query would be something like
    SELECT DISTINCT
           CAR_TYPE AS D
         , CAR_TYPE AS R
      FROM WHATEVER_TABLEThe distinct is only because you have mixed your parent and child values in one table instead of having two separate tables with a FK from the child to the parent.
    3) Create another "Select List"
    4) Lov query would be something like
    SELECT CAR AS D
         , CAR AS R
      FROM WHATEVER_TABLE
    WHERE CAR_TYPE = :P2_CAR_TYPE-> in the where clause you restricting the second lov with the value the user has selected in the first select list.
    The first "Select List with Submit" will trigger a full page refresh when you select a car type. If you want to avoid that you can use the AJAX based "Cascading Lov" feature of my ApexLib Framework (see http://apex.oracle.com/pls/otn/f?p=33231:4 ) or search on the forum for "cascading lov ajax" for other similar solutions.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Restful: Child lov with parent prompt

    I have 2 dimensions, Parent and Child. The list of values of the Child dimension contains a prompt on the parent. With restful, I want to the the list of values for the child dimension. I've created a webi document with a prompted filter on the Child dimension. So I have 2 prompts one the webi document, one from the Child dimension and one from the list of values of the child dimension.
    A call GET http://{hostname}:6405/biprws/raylight/v1/documents/{documentID}/parameters/{parameterID} for the child prompt returns the expected xml:
    <lov hierarchical="false" refreshable="true">
    <id>UNIVERSELOV_DS0.DO4</id>
    <parameters>
    <id>0</id>
    </parameters>
    </lov>
    where 0 is the id of the parent dimension
    I then use the resful call PUT http://{hostname}:6405/biprws/raylight/v1/documents/{documentID}/parameters/{parameterID} to answer the parent and the child's lov.
    When the prompt on the parent in the list of values is not optional, everything is fine but when the prompt is optional, I get the error :
    Bad Request WSR 00102 - Illegal argument (Suspicious identifier(s): [0])
    In both case, I use the input xml (with true or false value for optional attribute of parameter):
    <parameters>
         <parameter optional="true|false">
              <id>0</id>
              <answer>
                   <values><value id="10" >Parent 10</value></values>
              </answer>
         </parameter>
         <parameter>
              <id>1</id>
              <answer>
                   <info><lov><query intervalId="0" intervalSize="10000" /></lov></info>
              </answer>
         </parameter>
    </parameters>
    If I use the refresh="true" attribute to the query tag, I don't get any value for the child lov only:
    <lov hierarchical="false" refreshable="true">
    <id>UNIVERSELOV_DS0.DO4</id>
    </lov>
    Any ideas?

    Eric,
    I hope it's not an issue but an invalid input XML.
    I just made some good progress. The restful documentation states that "The <info> element is not mandatory in the XML inputs, except in the case of cascading parameters and hierarchical parameters.", so I surround the values tag by a info tag and it almost works in both cases (mandatory and optional parent prompt). The XML input is
    <parameters>
       <parameter>
          <id>0</id>
          <answer>
             <info>
                <lov>
                   <query intervalSize="-1" />
                </lov>
             </info>
             <values>
                <value id="1">Parent 1</value>
                <value id="3">Parent 2</value>
             </values>
          </answer>
       </parameter>
       <parameter>
          <id>1</id>
          <answer>
             <info>
                <lov>
                   <query intervalSize="-1" />
                </lov>
             </info>
          </answer>
       </parameter>
    </parameters>
    But one problem solves, one problem raises. When a answer no parent value (<values></values>), I get in return of a PUT call, the same result as a GET call:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <parameters>
        <parameter dpId="DP0" type="prompt" optional="false">
            <id>0</id>
            <technicalName>pmParent(s)?</technicalName>
            <name>Parent(s)?</name>
            <answer type="Text" constrained="true">
                <info cardinality="Multiple">
                    <lov refreshable="true" partial="false" hierarchical="false">
                        <id>UNIVERSELOV_DS0.DO1</id>
                        <updated>2014-10-09T12:54:54.000+01:00</updated>
                        <values>
                            <value id="1">Parent 1</value>
                            <value id="2">Parent 2</value>
                            <value id="3">Parent 3</value>
                        </values>
                        <columns mappingId="0">
                            <column type="String" id="0">Parent </column>
                        </columns>
                    </lov>
                    <previous>
                        <value id="1">Parent 1</value>
                        <value id="3">Parent 2</value>
                    </previous>
                </info>
                <values>
                    <value id="1">Parent 1</value>
                    <value id="3">Parent 2</value>
                </values>
            </answer>
        </parameter>
        <parameter dpId="DP0" type="prompt" optional="true">
            <id>1</id>
            <technicalName>pmChild(ren)?</technicalName>
            <name>Child(ren)?</name>
            <answer type="Text" constrained="true">
                <info cardinality="Multiple">
                    <lov refreshable="true" hierarchical="false">
                        <id>UNIVERSELOV_DS0.DO3</id>
                        <parameters>
                            <id>0</id>
                        </parameters>
                    </lov>
                    <previous>
                        <value id="21">Child 21 - 2</value>
                    </previous>
                </info>
                <values>
                    <value id="21">Child 21 - 2</value>
                </values>
            </answer>
        </parameter>
    </parameters>
    Nevertheless, I get a workaround for this situation, instead of not answering the parameter, I have to answer all possible values. It's not a nice solution and I hope a better one exists.
    The results are the same with
    http://{hostname}:6405/biprws/raylight/v1/documents/{documentID}/parameters/{parameterID}/
    and with
    http://{hostname}:6405/biprws/raylight/v1/documents/{documentID}/parameters/
    except, of course that when using first url, the return xml contains only one parameter (the one in the url)
    Regards

  • Cascading parent/child inserts while avoiding uniqueness constraints

    Assume that I have two classes that I'd like to persist: MyObject and
    InternalObject. MyObject has an InternalObject field. That is, MyObject is
    the parent, InternalObject is the child in this one-to-one relationship.
    Steps involved:
    1) Enable ForeignKeyConstraints property in kodo.properties. That is add
    the line,
    kodo.jdbc.ForeignKeyConstraints=true
    2) In package.jdo, add the following kodo extensions for MyObject's
    InternalObject field mapping, i.e., io in my case.
    <field name="io" default-fetch-group="false">
    <extension vendor-name="kodo" key="jdbc-delete-action"
    value="cascade"/>
    <extension vendor-name="kodo" key="dependent" value="true"/>
    </field>
    The reasons that we have done these steps: we'd like kodo to properly
    re-order the sql statements if necessary in order not to violate
    parent/child dependencies during insertion, and also force cascading
    deletes in case we delete the parent object.
    Now comes the bulk of the algorithm.
    String sKey // key of the object to insert
    String sValue //value of the object to insert
    MyObject o = new MyObject(sKey, sValue);
    InternalObject io = new InternalObject(sKey,sValue); //using same values :)
    o.setInternalObject(io); //parent-child relation
    Object id = ((PersistenceCapable) o).jdoNewObjectIdInstance();
    ((PersistenceCapable)o).jdoCopyKeyFieldsToObjectId(id);
    kpm.currentTransaction().begin();
    try {
    Object trio = kpm.getObjectById(id, true);
    kpm.deletePersistent(trio);
    kpm.flush(); //apply deletes on the datastore
    } catch (ObjectNotFoundException oe) {
    System.out.println("First time!");
    kpm.makePersistent(o);
    kpm.currentTransaction().commit();

    If this is a question, the extension you have is only a directive to
    mappingtool to create cascade foreign keys. However, at runtime Kodo
    will rely upon the foreign key definitions in the schema. You should
    verify that the foreign key exists as you like in the schema. If you
    want to have child relationships to be deleted, you should use the
    dependent and element-dependent extensions.
    Ahmet Bulut wrote:
    Assume that I have two classes that I'd like to persist: MyObject and
    InternalObject. MyObject has an InternalObject field. That is, MyObject is
    the parent, InternalObject is the child in this one-to-one relationship.
    Steps involved:
    1) Enable ForeignKeyConstraints property in kodo.properties. That is add
    the line,
    kodo.jdbc.ForeignKeyConstraints=true
    2) In package.jdo, add the following kodo extensions for MyObject's
    InternalObject field mapping, i.e., io in my case.
    <field name="io" default-fetch-group="false">
    <extension vendor-name="kodo" key="jdbc-delete-action"
    value="cascade"/>
    <extension vendor-name="kodo" key="dependent" value="true"/>
    </field>
    The reasons that we have done these steps: we'd like kodo to properly
    re-order the sql statements if necessary in order not to violate
    parent/child dependencies during insertion, and also force cascading
    deletes in case we delete the parent object.
    Now comes the bulk of the algorithm.
    String sKey // key of the object to insert
    String sValue //value of the object to insert
    MyObject o = new MyObject(sKey, sValue);
    InternalObject io = new InternalObject(sKey,sValue); //using same values :)
    o.setInternalObject(io); //parent-child relation
    Object id = ((PersistenceCapable) o).jdoNewObjectIdInstance();
    ((PersistenceCapable)o).jdoCopyKeyFieldsToObjectId(id);
    kpm.currentTransaction().begin();
    try {
    Object trio = kpm.getObjectById(id, true);
    kpm.deletePersistent(trio);
    kpm.flush(); //apply deletes on the datastore
    } catch (ObjectNotFoundException oe) {
    System.out.println("First time!");
    kpm.makePersistent(o);
    kpm.currentTransaction().commit();
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Parent/Child Orders

    Hi,
    Does OSM supports Parent/Child orders.
    +(Child order will not start untill Parent order will complete)+
    Regards,
    Harman

    Perhaps it would help if you describe the nature of the cross order dependency.
    In our experience most dependencies that exist between orders are the result of a functional dependency between line items. I'd like to understand your use case so that I can better understand how this is not the case for your situation.
    That aside for the moment, there are several other ways to deal with parent/child order relationships. Here are two that you may find useful:
    1. Rely on OSM order lifecycle events which can be enabled on the Order entity within Design Studio. When enabled, OSM will automatically emit JMS/XML events on a JMS destination that OSM provides whenever an order changes state. You can have an automation plugin listen for the event indicating the parent order has completed after which the child order starts.
    2. Create a custom notification automation plugin which is invoked when the parent order completes. When this happens it can either send a JMS/XML event of your own making similar to #1 above, or it can directly call the OSM XML API using the provided context object (just as with automation plugins) to start the child order (assuming the parent order has the context to locate the child order).
    Brian.

  • Parent Child Value Sets for Item Categories

    I've tried to set up parent-child value sets, not independent-dependent sets for Item Categories but in vain. So, if Item Category has 2 segments - Category & Sub-Category; Sub-Category only shows valid values for a category. For example, if Category is 19 (Tools), the LOV for 2nd segment would only show 28 (Large Tools), 29 (Heavy Tools) etc.
    Creating an independent-dependent combination displays all values for the independent & dependent sets.
    Just looking for help here.
    Thanks,
    Sanjib

    Karthik, Sandeep and Hugh
    Thanks for your responses. We greatly appreciate you taking the time to reply to this thread. My e-mail is [email protected], that is if you'd like to send any documents.
    Basically, this is what we were looking for -
    The category structure is
    Equipment 1 - Spare 1,
    Equipment 1 - Spare 2,
    Equipment 2 - Spare 1,
    Tools - Large,
    Tools - Small,
    etc.
    When selecting Codes for this structure, if I choose 'Equipment 1' for 1st segment, LOV for 2nd segment would only show 'Spare 1', 'Spare 2'. Similarly, If I choose 'Tools', I only see 'Large', 'Small' for Segment 2.
    Thanks,
    Sanjib

  • Apex 4 Cascading LOV's how to set a child LOV back to null return value

    Hi,
    My problem is I am using the new Dynamic Actions to implement Cascading LOV functionality in Apex 4 which means not having to submit the page to update child LOVs after parent LOV changes.
    What I am finding is that when you change the parent LOV value then the child LOV (which has a null return value) is not defaulting to the null return value (in my case no selection should return -1) if its list is filtered to a different set of values which doesnt have a valid selection. The child LOV is left without a selection when I need it to default back to the null return value (-1, representing all values).
    Also I was hoping to do this before the page is submitted so the filtering down the hierarchy of LOVs will work where the child is null (-1, meaning all values) and in turn its child LOV(s) will filter also from the null child value.
    Any help would be much appreciated.
    Thanks

    Hi 804641,
    I'm not sure if I get your problem and I tried to reproduce it.
    http://apex.oracle.com/pls/apex/f?p=2672:6 is my example with a cascading LOV where I have also defined a dynamic action which fires when P6_EMPNO changes and it shows the current selection.
    Maybe it helps if you setup an example on apex.oracle.com and provide the workspace/user/pwd so that I can have a look. I'm also not sure about your sentence "using the new Dynamic Actions to implement Cascading LOV functionality", because dynamic actions are not needed for cascading LOVs. It's a feature of the item types themselves where you just have to set the "Cascading LOV Parent Item(s)" attribute.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to programmatically wait for child LOV to refresh

    Folks, I have a parent/child (i.e., cascading) pair of LOVs; they work great.  But I need to be able to set the values of the two LOVs programmatically w/ JavaScript.  I have the following JS function:
    function setHostID_DatabaseID (aHostID, aDatabaseID)
      $s('P60_HOST_ID', aHostID, undefined, false);
      $s('P60_DATABASE_ID', aDatabaseID, undefined, false);
      alert("host = " + aHostID + " and DB = " + aDatabaseID);
    The two LOVs are:
    P60_HOST_ID (parent)
    P60_DATABASE_ID (child)
    When I call the function, P60_HOST_ID gets set correctly, but P60_DATABASE_ID does not.  If I move the alert() to between the two $s calls, then P60_DATABASE_ID does get set.  So it's a timing issue - the AJAX call to refresh P60_DATABASE_ID doesn't complete before the $s('P60_DATABASE_ID') call is invoked.  Any ideas how to work around this?

    NM - found the answer in https://forums.oracle.com/thread/2461787 Function becomes:
    function setHostID_DatabaseID (aHostID, aDatabaseID)
       apex.jQuery('#P60_DATABASE_ID').bind("apexafterrefresh", function ()
             $s('P60_DATABASE_ID', aDatabaseID, undefined, false);
       $s('P60_HOST_ID', aHostID, undefined, false);
      alert("host = " + aHostID + " and DB = " + aDatabaseID);

  • Multiple regions with parent child info.

    I have the need to display parent-child-details on the same page - but more intuitively in 3 regions of a page.
    As an example, i want the first region to display a list of departments, the second adjacent region to display employess in a department chosen in the first region, and the third should have employee details for a chosen employee in the 2nd region.
    The master details approach may not necessarily fit as an elegant solution.
    Any ideas/suggestions/past apps built that would be similar ?
    Regards,
    Atul

    Docster wrote:
    Hi,
    Do you happen to still have this application? I'd love to see it.You are totally wasting your time. There is no point in posting follow-ups to threads this old in the expectation that the original participants will respond&mdash;watches on threads that will generate email notifications of thread updates last for only a period of a few weeks.
    "Sofie87" is not listening. Gone. An ex-poster. Look at their profile: not posted in *4+ years*.
    Posting follow-ups to ancient threads/departed users is NOT an effective way of getting help:
    <li>Other users may ignore the thread if it is closed.
    <li>Your assumption that the questions are related may be incorrect, leading to confusion about the nature of the problem and potential solutions.
    <li>Watches on the thread will have expired, so the original participants are totally unaware of the new post. They may no longer be active on the forum.
    <li>You have no ability to mark posts as helpful or correct.
    Post your requirements as a new thread, including at least the following information:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Links to related posts and threads (using the methods in the FAQ)

  • Cascading child LOVs refresh

    Hello,
    I've a parent LOV that pulls all the campuses of the school as check-boxes.That has a child LOV that pulls buildings according to Parent LOV selection.
    When I click on 'Submit' button, it inserts the record with selected 'Campus' and 'Buildings'.
    Now when I click on 'Update' button after changing my selection, it updates 'Campus' but not 'Buildings' in the table.
    Can you help?
    Thanks,
    H.

    Could you supply a bit more info?
    Version of database, apex, apex listener etc.
    Regards,
    Richard
    blog: http://blog.warp11.nl
    twitter: @rhjmartens
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Query Help with Parent, Child, Child's Child

    Hi all,
    Need some help with a query.  I'm trying to create a stored procedure that is sort of like a Customer, Order, Order, Details.  In my situation the tables are different but nevertheless, I want to grab all the fields from the  Parent, Child,
    and Childs' Child, where the Parent.ParentID = @Parameter.  I tried this:
    CREATE PROCEDURE [dbo].[spGetCompleteProjectXML]
    @ProjectID int = 0
    AS
    SELECT *,
    (SELECT *,
    (SELECT *
    FROM PageControls
    WHERE (PageControls.ProjectPageID = ProjectPages.ProjectPageID))
    FROM ProjectPages
    WHERE (ProjectPages.ProjectID = @ProjectID))
    FROM Projects
    WHERE (ProjectID = @ProjectID)
    FOR XML AUTO, ELEMENTS
    RETURN 0
    I think I'm close, but it was my best effort.  Could someone help?
    thanks in advance

    Hi TPolo,
    Regarding your description, are you looking for a sample like below?
    CREATE TABLE customer(customerID INT, name VARCHAR(99))
    INSERT INTO customer VALUES(1,'Eric')
    INSERT INTO customer VALUES(2,'Nelson')
    CREATE TABLE orders(orderID INT,customerID INT)
    INSERT INTO orders VALUES(1,1);
    INSERT INTO orders VALUES(2,1)
    INSERT INTO orders VALUES(3,2)
    INSERT INTO orders VALUES(4,2)
    CREATE TABLE orderDetails(orderID INT,item VARCHAR(99))
    INSERT INTO orderDetails VALUES(1,'APPLE1')
    INSERT INTO orderDetails VALUES(1,'BANANA1')
    INSERT INTO orderDetails VALUES(2,'APPLE2')
    INSERT INTO orderDetails VALUES(2,'BANANA2')
    INSERT INTO orderDetails VALUES(3,'APPLE3')
    INSERT INTO orderDetails VALUES(3,'BANANA3')
    INSERT INTO orderDetails VALUES(4,'APPLE4')
    INSERT INTO orderDetails VALUES(4,'BANANA5')
    SELECT customer.customerID,customer.name,
    (SELECT orderId,
    SELECT item FROM orderDetails WHERE orderID=orders.orderID FOR XML AUTO,TYPE,ELEMENTS
    FROM orders Where customerID=customer.customerID FOR XML AUTO,TYPE,ELEMENTS)
    FROM customer WHERE customerID=1
    FOR XML AUTO,ELEMENTS
    DROP TABLE customer,orderDetails,orders
    If you have any feedback on our support, please click
    here.
    Eric Zhang
    TechNet Community Support

  • Problem with saving Parent - Child  View Objects in ADF 11g.

    Hi Every one,
    I have a requirment, something like I will be displaying some data on my jsff screen based on one Transient View Object. Whenever user clicks on Save button, I have to do following steps in my AMImpl.
    -> Preapre dynamically Parent View Object Rows based on some logic
    -> Prepare dynamically Child View object Rows and invoke insertRow method on respective child view object.
    When I say commit() First Parent ViewObject data need to be saved and then Child View object data has to be saved. I am having Parent - Child Key relation ship btw these two ViewObjects. Some how I am populating the Parent Primary key in the Child View Object. Please suggest me If there is any other alternative to this.
    Thanks

    I got the solution, Enabling the check box option for Master - Detail Entity association (CompositionAssociation -> Cascade Update Key Attributes) resolved the issue.
    Thanks

  • Does table STPOX contain parent-child relationship between components

    Hello
    I need to get a list of components of SO BOM.
    FM CS_BOM_EXPL_KND_V1 exports an output table STPOX.
    Does this table contain parent-child relationship between components? If yes , can somebody tell me which fields contain parent child id.
    thanks

    Hi,
    STPOX is not a table, it is a structure & hence there is no storing of data in a structure. The table which stores this info is STPO.
    To get the link you can refer to STPO-STLNR & pass this value to MAST-STLNR, this way you can link the child with its parent.
    Regards,
    Vivek

Maybe you are looking for

  • How to call sub VI and close the main VI in while loop and sequence condition

    Hiya, I have a problem with the while loop and the sequential condition in placed together i.e while loop as Global and sequential condition as local (i.e inside the Global loop). For example,when calling the sub vi from the main vi (main vi as main

  • Follow up question. importing audio

    Hello, thanks to all that responded to my question about importing audio from itunes to FCP5. I finally got it onto my timeline, but before I did that I burned it to a cd, and used that to import it to FCP. Probably more steps than necessary, but I f

  • Issue with mail download - iPhone 4S

    Hi, I am using 4S (IOS 7). I have configured my Hotmail and office exchange mail  on my iPhone, which has been working fine till recently. Last 2 months, I have been facing issues, where some of my mail folders in both my mail accounts go missing, an

  • Problem with using OID as Identity Store for OAM

    I have oam11.1.1.5.1 and oid 11.1.1.5. I switched the embedded ldap to OID as the default as well as the system identity store followed the doc http://docs.oracle.com/cd/E21764_01/doc.1111/e15478/datasrc.htm#BHCJEDJA In the oid I have created the gro

  • How can I get my originals out of aperture?

    Aperture isn't working for me anymore (continuous "database inconsistencies" and other inexplicable crashes that cannot be repaired), so I'd like to switch back to Photoshop. How do I get my thousands of original images out of the library? Do I have