Master detail with detail rows filtered

hi:
i'm developing web application using jdev10.1.2 jsp adf..
i have 2 pages one master page displaying master table info, and another page displaying detail table.now i want to set PK of detail page to a specified value when i define a data action to setwhere clause i get an error in both master and detail page.
how i can overcome this problem

You could start sharing the error message and how you implemented the where clause
Frank

Similar Messages

  • Creating master detail rows

    using adf/bc with jsf. I have defined a master detail relationship between two entities. This relationship is a composition relationship. The entities are related by a view link which link the master and detail view objects. i have a need to create/insert a master row and a detail row programmatically "on the fly" so that when the jsp renders, the user will see blank inputs for both the master and detail view objects. The problem is that the primary key of the master record is not known at creation time ( it will be entered by the user) and therefore the detail record cannot be created by the framework because of the unknown value of the parent's primary key. I was hoping the following section in the adf guide would eliminate my problem, but it doesn't appear to:
    This is from section 26.7.3.2 of the adf developer's guide
    Note: An alternative to the programmatic technique discussed
    above, which solves the problem at the J2EE application layer, is the
    use of deferrable constraints at the database layer. If you have control
    over your database schema, consider defining (or altering) your
    foreign key constraints to be DEFERRABLE INITIALLY DEFERRED.
    This causes the database to defer checking the constraint until
    transaction commit time. This allows the application to perform DML
    operations in any order provided that by COMMIT time all appropriate
    related rows have been saved and would alleviate the parent/child
    ordering described above. However, you would still need to write the
    code described in the following sections to cascade-update the foreign
    key values if the parent’s primary key is assigned from a sequence.
    This approach did not help in allowing me to create the detail record without first knowing the value of the parent's primary key record in a composition relationship. The only thing i've found to work is define the relationship as just an association, and not a composition. However, this is a true one to many (composition) relationship and i would like to take advantage of some of the features of the framework that are there when a relationship is defined as a composition relationship. Is there any way to do what i need to do with a composition relationship defined between these two entities? Thanks.

    Hi,
    I guess you need a "Cascading LOVs".
    1) Create viewObject for country values list. Named VO1.
    2) Create viewObject for state values list. Named VO2.
    3) Create view criteria for (bind variable) VO2 which can restrict the result by country.
    4) Create view accessor to get VO1.
    5) Create view accessor to get VO2. Define the bind variable value which can provide country info dynamically. I guess it should be a Groovy expression.
    6) Create country LOV on step 4) view accessor.
    7) Create state LOV on step 5) view accessor.
    Done
    On the view layer, you may enable PPR between country and state attributes.
    Todd

  • Master-Detail only shows the first record of the Master's data

    I have an ADF Master Table, Detail table. I use ExcuteWithParams on the Master Table. When executed from a button (Button has partial submit = true for button, Master Table has PartialTrigger on button, and Detail table has PartialTrigger on Master table and button), it works fine. However, I want to pass the parameters in pageFlowScope variables, and have the ExecuteWithParams invoked upon page load. When I try to do this, the Detail table only shows the first record of the Master's data, no mater what row is clicked on the Master table.
    Master table now has no PartialTrigger, and Detail table has PartialTrigger on Master table. In my pageDef, I used an invoke action as follows:
    <invokeAction Binds="ExecuteWithParams" id="invokeExecuteWithParams"
    Refresh="always"/>
    What am I missing? I am using verion 11.1.1.3. Any help would be much appreciated.
    Thanks,
    Jessica

    Yes, it works when I drag the data control as a master detail without filtering any data. I want the user to be able to set search criteria to filter the data in the master table (For example, only pull back data with a transaction date between :startdate and :enddate). I can get it to work if I execute from an executewithparams button on the page, but not if I want to invoke the executewithparams upon page load with the parameter set by pageflowscope variables.
    Thank you for responding.
    Jessica

  • Master detail problem

    Using jsf/adf with business components.
    I have a jsp page which displays form information. This page can be used to create a new record or edit existing record. On the form, there is a section for home addresses and a different section for work addresses. I have a master detail setup. The master record is essentially an employee (view object). Also, i have one view object for Home Addresses and one view object for Work Addresses. The difference is simply in the sql where clause. One retrieves addresses where address_type LIKE 'WORK%' and the other view retrieves addresses where address_type LIKE 'HOME%. So, both views are built on the same address table. (entity object). There is a one to many (master/detail) relationship between employee and home addresses. There is also a one to many (master/detail) relationship between employee and work addresses. So, I've created view link objects for both the home address and work address and associated each to the parent record to get the master detail hooked up. things work great when i'm trying to retrieve and edit a record(s). The home addresses and work addresses are kept separate like they should be and displayed in their appropriate sections on the form. The problem i'm having is with the create record. When the page is first rendered, I want blank input fields to display for both the master record and the detail records. So, i'm programmatically creating the master and detail records before the page is rendered. I create the master row, then create one row for the work address section and one row for the home address section. The problem i'm having is that both of the detail rows which are created this way are displaying in the same work address section. So, when the page is first rendered, i see input fields only in the work address section, and both the rows have been created there, which is evidenced by the fact that i can scroll thru these two newly created records using the "next" button that was dragged/dropped for the work address section. During the create process, it appears (thru debugging) that both of these detail rows are being created properly, with their own separate iterator, so why does it appear that both rows belong to the same iterator when the page is first rendered? I have included the code below which creates the master detail rows:
    //this method is called upon the initial entry into the tabbed page if
    //user is in "create" mode. It handles creating the master and detail row(s).
    public void createMasterDetailRows(){
    ViewObject vo = getMasterView();
    Row masterRow = vo.createRow();
    masterRow.setNewRowState(Row.STATUS_INITIALIZED);
    vo.insertRow(masterRow);
    //for the initial entry into the tabbed page in create mode, the address row(s) must be created explicitly.
    createWorkAddressRow();
    createHomeAddressRow();
    public void createWorkAddressRow(){
    RowIterator iterator = (RowIterator)this.getMasterView().getCurrentRow().getAttribute("WorkAddressView");
    Row newWorkAddressRow = iterator.createRow();
    newWorkAddressRow .setNewRowState(Row.STATUS_INITIALIZED);
    iterator.insertRow(newWorkAddressRow );
    int rowCount = iterator.getRowCount();
    System.out.println("Address row inserted at " + rowCount);
    public void createHomeAddressRow(){
    RowIterator iterator = (RowIterator)this.getMasterView().getCurrentRow().getAttribute("HomeAddressView");
    Row newHomeAddressRow = iterator.createRow();
    newHomeAddressRow.setNewRowState(Row.STATUS_INITIALIZED);
    iterator.insertRow(newHomeAddressRow);
    int rowCount = iterator.getRowCount();
    System.out.println("Home Address row inserted at " + rowCount);
    }

    Sergio,
    You need to set the currency to the row passed in the request parameter from the browse page.
    You can used the row tag to do that:
    <jbo:Row id="rowCur" datasource="yourMasterDS" rowkeyparam="jboRowKey" action="find">Charles.

  • Insert Master Detail

    Hi all,
    I need to understand which is the fastest way for inserting rows in master-detail tables
    Using a procedure. I often insert lots of details rows and sometimes master-details rows
    Here there is my solution. Is there something faster?
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    CREATE TABLE MAIN_TRACING (
       MAINVAL VARCHAR2(10) NOT NULL,
       PAR1    VARCHAR2(10) NOT NULL);
    CREATE TABLE TRACING_DET (
       MAINVAL   VARCHAR2(10) NOT NULL,
       SUBPAR1   VARCHAR2(10) NOT NULL);
    CREATE UNIQUE INDEX MYPK ON MAIN_TRACING(MAINVAL);
    ALTER TABLE MAIN_TRACING ADD ( CONSTRAINT MYPK PRIMARY KEY (MAINVAL) USING INDEX MYPK);
    ALTER TABLE TRACING_DET ADD ( CONSTRAINT MYFK FOREIGN KEY (MAINVAL)  REFERENCES MAIN_TRACING (MAINVAL));
    CREATE OR REPLACE PROCEDURE ADD_TRACE(V_MAINVAL VARCHAR2, V_PAR1 VARCHAR2, V_SUBPAR1 VARCHAR2)
    AS
       PARENT_NOT_FOUND   EXCEPTION;
       PRAGMA EXCEPTION_INIT(PARENT_NOT_FOUND, -2291);
    BEGIN
       INSERT INTO TRACING_DET(MAINVAL, SUBPAR1)
            VALUES (V_MAINVAL, V_SUBPAR1);
       COMMIT;
    EXCEPTION
       WHEN PARENT_NOT_FOUND
       THEN
          INSERT INTO MAIN_TRACING(MAINVAL, PAR1)
               VALUES (V_MAINVAL, V_PAR1);
          INSERT INTO TRACING_DET(MAINVAL, SUBPAR1)
               VALUES (V_MAINVAL, V_SUBPAR1);
          COMMIT;
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.PUT_LINE(' Error code    : ' || TO_CHAR(SQLCODE));
    END ADD_TRACE;
    EXEC ADD_TRACE('m1', 'a', 'suba1');
    EXEC ADD_TRACE('m1', 'a', 'suba2');
    EXEC ADD_TRACE('m1', 'a', 'suba3');
    --exec ADD_TRACE('m1', 'b', 'suba3'); --IMPOSSIBLE!
    EXEC ADD_TRACE('m2', 'b', 'subb1');
    EXEC ADD_TRACE('m2', 'b', 'subb2');
    SELECT * FROM MAIN_TRACING;
    MAINVAL    PAR1
    m1         a
    m2         b
    SELECT * FROM TRACING_DET;
    MAINVAL    SUBPAR1
    m1         suba1
    m1         suba2
    m1         suba3
    m2         subb1
    m2         subb2

    The answer (as Tom Kyte is fond of stating) is "It depends" ;-)
    Is this something that is called scattered over the application? Most of the time it will be called with an existing MAINVAL and just sometimes now and again a new MAINVAL will be inserted? Subsequent calls to ADD_TRACE will typically have a different MAINVAL than the previous call?
    If that is the case, then your method is not a bad one. Many programmers would have first tested for existence of master and decided whether to insert it or not, which would then be wasted effort in 95% of the cases.
    Your method of assuming the master exists and then handle the exception if it does not - that is quite neat. But the key is - it has to be the exception to the rule that the exception handler is invoked.
    But if on the other hand you are calling ADD_TRACE pretty consecutively (sort of like your example) with first several calls with one MAINVAL, then several calls with a new MAINVAL, then several with a new MAINVAL, etc. - say a typical ETL process or loading data from perhaps a flatfile or something like that - then you would do better to do one insert of the parent and then bulk up the children in a bulk insert.
    So it depends on your use case. There is not one generally best way to insert into master-detail - there will be several depending on whether you are bulk loading data to your master-detail or you have scattered calls.
    But just one other thing concerning your code:
    Usually it is not a good idea to issue those COMMIT statements inside your procedure. How do you know if the caller has finished with the transaction or not?
    Either let the client/caller decide when the complete transaction is done.
    Or you may decide that this is tracing/logging and should be logged no matter whether the calling transaction commits or rollbacks, and then you can make ADD_TRACE use an autonomous transaction.
    (All of the above is just my personal opinion and you will likely find other people with different opinions ;-) )

  • Several reports on joined master-detail tables with single row source

    I have 1 master table (Fixed Assets) and several datail tables (Improvements, Depreciation, ...)
    I need to create several reports based on them all with criteria
    'Select ALL from Master and join details
    /1 total row from details for 1 master row/
    filtered by [on_date <= report_date]'
    How to do it better and not copy same code in every report?
    As mentioned on this forum, ApEx is not able to use RefCursor as row source for ApEx reports
    So I tried this Tom Kyte's example:
    create type apex_user.myRecordType as object
    (seq int,
    a int,
    b varchar2(10),
    c date
    Create Or Replace Type Apex_User.Mytabletype As Table Of Apex_User.Myrecordtype;
    create or replace function Apex_User.my_function return Apex_User.myTableType
    Is
    l_data Apex_User.myTableType;
    Begin
    l_data := Apex_User.myTableType();
    for i in 1..5
    loop
    L_Data.Extend;
    l_data(i) :=Apex_User.myRecordType(i, i, 'row ' || i, sysdate+i);
    end loop;
    Return L_Data;
    End;
    Select *
    from TABLE (cast(Apex_User.my_function() as Apex_User.mytableType))
    Where C > Sysdate+1
    Order By Seq Desc
    SEQ A B C
    5 5 row 5 22.08.2010
    4 4 row 4 21.08.2010
    3 3 row 3 20.08.2010
    2 2 row 2 19.08.2010
    4 Rows Selected
    - and it really works from ApEx reports.
    The questions are:
    1) is this the best solution for my task (one centralized code for several reports with parameter filtering detail tables)?
    2) how to change example properly to have here -
    loop
    L_Data.Extend;
    l_data(i) :=Apex_User.myRecordType(i, i, 'row ' || i, sysdate+i);
    end loop;
    - simple SELECT from my MASTER-DETAILS joined tables?

    Hi,
    if (row != null)
    Row masterRow = row;
    vo.setCurrentRow(masterRow);
    // not needed : getMesReponsesPourTiersVO1().executeQuery();
    You shouldnot execute the child VO after setting current row in master VO.
    When the current row is set in master VO, then the child rows will get refreshed automatically.
    Cheers,
    Prasanna

  • Master-Detail: create detail-row(s) with id already filled in

    I have two tables with an one-to-many relationship (connected by 'id'). If you select a row from the master-table, you'll see the detail-table (with the various row's belonging to the master-record). Now I made a button which users can use to add additional rows to the detail-table. They get a form which they can fill in and submit, the only problem is... I don't want them to manualy fill in the id, this should be the only field that should already be filled in (or better should be invisible, but filled in). So they should select a master-row first and then click 'add' to add a detail-row(s) to it. But I have absolutely no clue how I can do this... I tried creating custom create methods in the view-object or entity-object... but the problem I keep running into is where to get the row-iterator... I have know idea if this is the right direction to look for, maybe somebody can give me some advice.
    Thanks in advance...!

    Steven, hope you can help me out once more...
    I have the same problem with a different view object, I'll explain...
    First of all I set jbo.locking.mode to 'optimistic', now the problem...
    I have two entity objects (Mbrships and Mbrshiphistory) which are connected by a foreign key (created in the database) on MbrshipID. Mbrshipshistory is also connected to the Aff entity object by a foreign key on AffID. The idea is simple... there are affiliates and a couple of memberships. An affiliate has/had a membership, that's where the membershiphistory-table comes in, which stores AffID, MbrshipID, DateFrom, DateTo and some other values.
    Now, what I created... JDeveloper created entity-objects of all the tables and made associations of the foreign keys. I created the following view objects: http://213.93.142.238/oracle/datamodel.jpg and application module: http://213.93.142.238/oracle/applicationmodule.jpg The (MemberToMembershipHistory) view link between Members and MembershipHostory is based upon the association between the two tables.
    The following is a screenshot of my struts-config.xml: http://213.93.142.238/oracle/struts-config.jpg
    Editing mbrshiphistories works fine, but I get the following error when I try to add one: oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity. I also don't see the AffID already filled in in the add/edit-screen (same problem as in the opening-post) when I try to add one. I double-checked everything, but I can't find the problem. Do you know what I do wrong...?

  • Weird Problem with Add Row Button in Master Detail Page

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

  • Master/detail and problem with selected row when errors on detail row

    I'm using JDeveloper 10.1.3.3
    I have a very simple master/detail screen (JSF JSP) where master is departments and detail is employees in the selected department. Some of the attributes in employees are required.
    To department A
    I take away the value of one of the required attributes of one of the detail employee rows.
    Select one of the other departments ie department B
    Get Error message Value required.
    So far so good, but the selected department is B and the detail rows shown is for department A.
    I expected that department A to still be selected or that department B with its row to be shown.
    Edited by: user628847 on 26.feb.2009 04:55

    Hi,
    if (row != null)
    Row masterRow = row;
    vo.setCurrentRow(masterRow);
    // not needed : getMesReponsesPourTiersVO1().executeQuery();
    You shouldnot execute the child VO after setting current row in master VO.
    When the current row is set in master VO, then the child rows will get refreshed automatically.
    Cheers,
    Prasanna

  • Master/details with render false on details when no rows doesn't work fine

    I created a standard master/details (form/form) based on Dept and Emp tables.
    This work as expected.
    Then i changed the rendered property of the details table by setting the following EL #{bindings.DeptView1EmpView2.estimatedRowCount>0}
    because i do not want details table to appear when there are no rows
    Here is how things go
    1) navigate to deptno 10, you see the employees of dept 10 correctly, the same applies to 20, and 30, but when you select dept 40, things start acting kind of wierd
    the details table does not disappear as expected
    returning back to dept 10, or 20 etc does not also render the details it freezes, keep navigating between 10,20,30 and randomly, the screen refershes correctly, until you again hit an master with empty details.
    If you select a master with empty details and use the submit buttom, the details table disappears as it should, if you try other master rows, the details remain hidden until you submit the page manually
    any ideas
    regards
    Ammar Sajdi

    hello again
    i removed PPT and the autosubmit that are created by default, and replaced them with JavaScript Submit() operation linked to the master table row selector. Now it works, but really i still do not know the negative implications of this work around. I feel it is not a good idea, since ADF designer favoured using the PPR method
    Ammar

  • Insert master and detail rows with Composition assoc generating JBO-26048

    I have the Master and Detail Entity Objects and made an Association linking them as Composition related.
    I have 2 ViewObjects. the MasterViewObject is composed of the Master entity object and 1 other udpateable object. the DetailViewObejct only contains the Detail entity Object.
    I tried to create a row on the masterviewobject and then immeidately create a detail row, and then commit, ADF issues a JBO-26048 error. Constraint "MY_FK" violated during post operation.... ".
    I don't know wahts wrong, but this should not be error should nit be appearing, as ViewObjects and the Links with Composition Association take care of populating the Foreign Keys of the detail. Or am I missing something here?

    The ADF Guide covers this problem, and I have a method that works as well on jdevguru.com. Take a look at the manual first, they have an indepth view on it and how to get it all to work together.
    Kelly

  • Problems with Master-Detail Form not retrieving Detail Rows

    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.

    I experienced performance problems. The simpiest MD form takes about 10 secs. to requery. I's not answer to your question, but there is more problems with this concept.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Finch ([email protected]):
    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.<HR></BLOCKQUOTE>
    null

  • Populate row of master detail form with selection from LOV?

    Hi Guys,
    Total noobe, Hope you can help me out with a project I am working on in Oracle Apex 4.1 with 11g XE
    I am sure this is a simple enough issue but I just can’t see the solution.
    I have a table called ‘STOCK’ this contains all new parts and delivery details.
    ‘STOCK_ID’ NUMBER PK
    ‘DELIVERY DATE ‘ DATE
    ‘PART’ VARCHAR2
    ‘PART_SN’ VARCHAR2
    ‘PART_AN’ VARCHAR2
    ‘INSTALLED’ CHECKBOX
    I have a table that list all the current physical locations of hardware for example
    ID, Till number, store location etc…
    I have an table to list the devices and modification to the hardware in these store locations.
    Move Date, Device, Device Serial number, Device Asset Number, Comments
    I have a report & form that displays all the current physical locations of hardware and a master detail form linked to this to add devices and modifications to each store location.
    I have a LOV setup on the Devices column that is based on a simple select query
    SELECT PART from STOCK
    ORDER BY 1
    This provides me the list of parts in the stock table.
    What I need to figure out is how do I get the data from the ‘STOCK’ table when I select a part in the LOV to auto populate ‘DEVICE_SN’ ‘DEVICE_AN’ in my master detail tubular form. this information is contained in the 'PART_SN' & 'PART_AN' columns of the STOCK table.
    I also need to figure out how to identify the part because by default the LOV only displays one column and I have no idea which part I am selecting other than by name. i could use a popup LOV and scan a barcode into the search box and get the retuen value to display the part name in the field.
    I also would like to reduce the number of records displayed in the LOV by using the ‘INSTALLED’ checkbox i.e. if checked this part has been used and will not be available for selection. The ‘PART_SN’ field can be duplicated as we often get the same part back again as a replacement after repair but this should be valaditated against i.e if the parts is ticked as installed and not available for selection in the list it can be added again this could possibly be validated based on the ‘DELIVERY DATE‘?
    I hope this make some sense to you guys if you need any further details let me know.
    Cheers
    Darren

    Hi,
    I am from the Oracle Forms background too and I have been using Oracle Apex for a while. Oracle Forms is just like client-server application although it uses the Forms servlet to render its Web front-end. I think...if you're really trying to develop true-Web application, you should try to forget such features as "master with many details" in Oracle Forms. Loading all the details in a single page will cause overheads anyway. When you discover more about ajax and such third-party javascript libraries as jquery and mootools, you'll have a different mind of Web development.
    Thanks.
    Andy

  • DB-Adapter 10g: Filtering Detail-Rows in Master-Detail-Relationship

    Hi,
    I'm having a Master-Detail-Table e.g. Departments and Employees. Those are mapped with 1:N FK-Relationship. Using the Oracle SOA-Suite 10.1.3.5 DB-Adapter I'd like to setup a filter returning all Departments and all (e.g.) female Employees.
    For the example see: http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994.pdf (chapter 4.3.9). Unfortunately, this doesn't work. If definining a where-clause empCollection.gender='female' I get the following behavior:
    - If a dept has no female emp, this department is not shown at all (however I want it to be empty)
    - If there is at least one female emp, the department and all employees are shown.
    Any idea on how to solve this problem would be highly appreciated!
    Regards,
    Johannes

    I gave it a try, 2 problems:
    1) the outer-join seems to be wrong. it provides me only departments that have at least one female employee. If I change that outer-join to:
    select DEP.id,DEP.name, EMP.id,EMP.GENDER
    from EMP, DEP
    where EMP.DEP_ID(+)=DEP.id
    and emp.gender(+)='female'
    it gives me what I want from sqldeveloper:
    select * from emp;
    ID NAME
    1 empty
    2 mixed
    3 male
    4 female
    select * from dep;
    ID DEP_ID GENDER
    1 2 male
    2 2 female
    3 2 male
    4 3 male
    5 3 male
    6 4 female
    7 4 female
    8 4 female
    select DEP.id,DEP.name, EMP.id,EMP.GENDER
    from EMP, DEP
    where EMP.DEP_ID(+)=DEP.id
    and EMP.GENDER(+)='female'
    ID NAME ID GENDER
    1 empty
    2 mixed 2 female
    3 male
    4 female 6 female
    4 female 7 female
    4 female 8 female
    2) However that doesn't solve my problem with the BPEL-Adapter. There I still get the folowing result:
    <DepCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/test4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Dep>
    <id>2</id>
    <name>mixed</name>
    <empCollection>
    <Emp>
    <id>1</id>
    <gender>male</gender>
    </Emp>
    <Emp>
    <id>2</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>3</id>
    <gender>male</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>4</id>
    <name>female</name>
    <empCollection>
    <Emp>
    <id>6</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>7</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>8</id>
    <gender>female</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>3</id>
    <name>male</name>
    <empCollection>
    <Emp>
    <id>4</id>
    <gender>male</gender>
    </Emp>
    <Emp>
    <id>5</id>
    <gender>male</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>1</id>
    <name>empty</name>
    <empCollection />
    </Dep>
    </DepCollection>
    This is how I used the wizard:
    1_Select_Table.png
    2relationship.png
    3objectfiltering.png
    4selection_Criteria.png
    Any futher ideas?
    Edited by: Johannes M on 17.01.2013 12:31
    Edited by: Johannes M on 17.01.2013 12:34

  • Master-detail: one detail row with multiple columns

    Hi All,
    I have a normal master-detail situation in the databse, in the form however all detail rows should be displayed in one single row, using more columns. The number of details are limited, so I can use a predefined number of text-items.
    Any ideas on how to implement this?
    Regards,
    Michiel

    create a function that returns your details. e.g. :
    function get_detail (P_PK, P_rownum) ...
    let's use the example dept and emp. Your master is dept. Your detail is emp. deptno is the PK for the master table.
    you have in your form multi-records of dept and maybe 5 items for employees. The name of the text-items TI_data_1 .. TI_data_5. In the post-query-trigger you code :
    :DEPT.TI_data_1 := get_detail (:DEPT.DEPTNO, 1);
    :DEPT.TI_data_2 := get_detail (:DEPT.DEPTNO, 2);
    if you need more columns create a loop and use the built-in COPY for assigning the detail-values to the text-items.
    the get_detail e.g. is a select-statement:
    SELECT ENAME
    FROM EMP
    WHERE DEPTNO = P_PK
    AND rownum = P_rownum
    ORDER BY EMPNO
    try it
    Gerd

Maybe you are looking for

  • Same basic color shortcuts as inDesign/illustrator/Photoshop

    Long standing miss from me, really useful when switching from an app to the other (Ps/Ai/inD) Shortcuts for D : Default color (black/White), Shift-X : switch the colors And may be 2 of the 3 most basic ones : , ; : (on the bottom right of a french ke

  • Web Logic Server - FAILED_NOT_RESTARTABLE

    Unable to start-up one of our Managed Server. Details are below, System Details: OS:Windows 2003 R2 Weblogic:10.0 version Error Category: Unable to start up the one of the managed server. One Admin Server four managed servers. Except one Manage serve

  • Reading text from a file

    hi I have a text file which have the following lines of text. 1. S. Amer-Yahia, P. Case, T. R�olleke, J. Shanmugasundaram, and G.Weikum. Report on the DB/IR Panel at SIGMOD 2005. In SIGMOD, June 2005. 2. D. Carmel, Y. S. Maarek, M. Mandelbrod, Y. Mas

  • How to add new images to the list of old images to ipod using itunes

    I have around 1000 images in my ipod right now. I want to add some more images tinto it. I just have the latest phots in a folder in my PC. When i try to sysnchronize my ipod with a folder to add the new phots i am getting a warning message stating "

  • Quick question about using iPhone before activation

    Hi, I'm wondering if the iphone's other capabilities are usable even prior to activation. For example, before I activate my service, can I use it as an iPod? I'm asking because my friend bought one and it seems to give him no other choices but to act