Detail - Detail

hai
i have a block which is a child to an other block,if i made this child block parent to a new block iam getting error like this
Parent -> Child -> Child
i have entered a record in parent most block and 2 records to its detail,now if enter the detail most block i get the following alert 'Do You want to save changes made?
ranjith

that's because the 2 records you inserted in block 2 is not saved yet therefore forms doesn't know where to hold the records (in block 2) if you're already inserting detail records in block 3.
try using POST before inserting records in block 3.

Similar Messages

  • Master/detail/detail

    using jsf/adf bc. I've got a jspx which needs to display data from a master/detail/detail setup. In a 'create' mode, i'm programmatically handling the create/insert stuff for the new master and detail rows. I'll try to explain my problem using a Departments/Employees/EmployeeAddresses example.
    I've created a view link between Departments and Employees. I've created a view link between Employees and EmployeeAddresses. These have all been added to the active data model so that it looks like this:
    DepartmentView
    -Employees via Employees1
    -EmployeeAddresses via EmployeeAddresses1
    The code i use to create/insert the master and subsequent detail rows is as follows:
    //create master (department) row
    ViewObjectImpl vo = getDepartmentView();
    Row departmentRow = vo.createRow();
    vo.insertRow(departmentRow);
    //create the detail (Employees) row to be associated with its master (Department)
    ViewObjectImpl employeesVO = getEmployees();
    Row newEmployeeRow = employeesVO.createRow();
    employeesVO.insertRow(newEmployeeRow);
    //create the detail/detail (EmployeeAddresses) row to be associated with its master (Employees)
    ViewObjectImpl employeeAddressVO = getEmployeeAddresses();
    Row newEmployeeAddressRow = employeeAddressVO.createRow();
    employeeAddressVO.insertRow(newEmployeeAddressRow);
    The problem seems to be with the last level detail row, the one for EmployeeAddresses. creating in this fashion doesn't seem to associate the new EmployeeAddress row to it's master, Employees. Although when the page is rendered, i can see that new rows have indeed been created/inserted for each of these view objects. After filling in valid values and committing, i get the JBO-27014 (Attribute is required) error for each attribute in the EmployeeAddresses table. So, it's as if this EmployeeAddress row that was created is not tied in with the Employees row, which is in turn tied in to the Department row.
    Note: if i remove the create/insert code for this last detail row (EmployeeAddress) and simply have a basic master/detail setup between Department and Employee, everything works great when i create new rows this way and save. It seems that my problem stems from the fact that i'm adding another detail level onto my master/detail setup. Is there something different i should be doing?

    Hi,
    Thanks guys for your response.. i did it myself following way..
    created 2 view links. having same source.
    added both vos to same source in application module it self.
    Regards,
    Santosh.

  • Delete of master in master-detail-detail doesn't work

    Hi,
    JDEV 11g, TP4, ADF BC.
    I have implemented a master-detail-detail page where master is a form layout and the both details are af:tables.
    On each level there is a delete button (cascading delete).
    ActionListener of master =onDeleteHead(). Before deleting the record the user has to confirm this within a dialog
        public void onDeleteHead(ActionEvent actionEvent) {
            ExpressionFactory ef = JSFUtils.getFacesContext().getApplication().getExpressionFactory();
            ELContext elCtx = JSFUtils.getFacesContext().getELContext();
            outputTextDlg.setValue(getResourceBundle().getString("DELETE_HEAD_MSG"));
            dialogOkCancel.setDialogListener(ef.createMethodExpression(elCtx, "#{Bob0012.onDialogDeleteHeadOk}", null, new Class[] {DialogEvent.class}));
            AdfFacesContext.getCurrentInstance().addPartialTarget(popupDlg); // refresh dialog texts
            JSUtils.showPopup(popupDlg.getId());       
        public void onDialogDeleteHeadOk(DialogEvent dialogEvent) {
            if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok) {
                OperationBinding operationBinding = ADFUtils.getManagedBeanOperation("DeleteHead");
                Object result = operationBinding.execute();
                AdfFacesContext.getCurrentInstance().addPartialTarget(panelHeaderHead);
        }If I press delete button on master record operationBinding.execute(); is executed (confirmed with debugger) and everything seems to be OK.
    Even after commit (actionListener="#{bindings.Commit.execute}") the master record including the detail records seems to be deleted.
    Problem: No Delete-statement is executed on DB-Level (verified with v$sqlarea) !
    If I do the same e.g. on "middle" detail (which is itself a master) the delete works as expected and the corresponding delete statement is executed on DB-level.
    Has anyone faced similar problems with master-detail-detail ?
    Is this a known bug?
    regards
    Peter

    Hi,
    can you perform this operation from the ADF BC tester? This tells you the location of the problem. The Faces code looks okay except that you should use RequestContext instead of AdfFacesContext
    Also make sure that the row is deleted by querying for it in the DB.
    Frank

  • Master Detail Detail Form

    Hello,
    Can someone point me to an example of a master detail detail form? I have searched this form and have not been able to find a complete example. There are several entries in this form about master detail detail however, they are incomplete or direct you to a web site that it is impossible to find the information. Please help.

    Sorry if my terminology is a little off but give me a break. This is a forum for App Exp not Oracle Forms. I'm trying to build a App Exp Master Detail Form that will display more than just one level of detail hence the title Master Detail Detail. I searched the App Exp Forum and can only find incomplete examples or links that direct me to a web site that I can not find what I am looking for. This is a question just about App Exp and not Oracle Forms. Any help with App Exp will ge greatly appreciated.

  • Master detail detail in one single page

    Hello,
    Building a page showing a master/detail relationship is straightforward.
    Now I need to build a page showing a master/detail/detail relationship ? How do i do this ?
    Thanks for your help,
    Seb.

    Did you get the solution?

  • Master Detail - Detail parent child relationship

    Hello All,
    I have a setup where I have 3 tables. Call them A, B, and C. Table A is the parent table to the child table B. Also table B is the parent table to the Child table C. Is there a way to represent this in Apex? So far I have created two Master Detail forms: Master Detail form one has the relationship A+B and Master Detail form two has the relationship B+C. Can Apex support a Master Detail Detail form.
    Also, is there a way to have my detail page editable without linking to another page to save and update?
    Please let me know what everyone thinks.
    Thanks
    Ryan

    Hi,
    You can google it - so much information is available online. Any how
    Parent Child relationship
    PK FKBasic example - Parent and Child in real life -similarly the Table_A is having relation with some other Table_B.
    Example
    Table_A
    columns :-
    Student_No, Student Name, Student_address
    Now the Table_B store the assignment details
    Student_No, Subject_1,subject_2, subject_3
    Now relation of join is Table_A.Student_No = Table_B.Student_No
    With out the TAble_A details -can be identified the Sudent details etc., No - It's Master data - which is not dependent on any other table and Column Student_No- Acts Primary Key which is Unique -through which we can identify a specific details of particular student. Now comes to Table_B - with out the student_No - we can't say whose details of assignments belongs to whom - now the student_No in Table_B is dependent on some other table - now this table acts a child and Primary Key of Table_A acts Foreign Key - that column helps to identify the record.
    Master Detail
    Reference tablesconcept of understanding is same when - when comes c,c++, java and c sharp - acts the same but inheritance, interfaces, polymorphisms and overloading code of language differs. If you go further j2ee differs
    HTH
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • Master-Details-Details

    Salam Alikom
    i know we can use Master and details in apex but if i have (master - detail - detail ) for 3 tables like
    Countries table
    State table
    Areas table
    in oracle form it's very easy by wizard , do we have this in apex ?
    or any way to solve that ?

    thank you for replay
    the other detail are (Area table) linked with state
    CREATE TABLE "SCH_COUNTRY"
    (     "ID" NUMBER,
         "NAME_AR" VARCHAR2(50),
         "NAME_EN" VARCHAR2(50),
         CONSTRAINT "SCH_COUNTRY_PK" PRIMARY KEY ("ID") ENABLE
    CREATE TABLE "SCH_STATE"
    (     "ID" NUMBER,
         "NAME_ar" VARCHAR2(50),
         "NAME_en" VARCHAR2(50),
         "COUNTRY_ID" NUMBER,
         CONSTRAINT "SCH_REGION_PK" PRIMARY KEY ("ID") ENABLE
    ALTER TABLE "SCH_REGION" ADD CONSTRAINT "SCH_REGION_FK" FOREIGN KEY ("COUNTRY_ID")
         REFERENCES "SCH_COUNTRY" ("ID") ENABLE
    CREATE TABLE "SCH_AREA"
    (     "ID" NUMBER,
         "NAME_AR" VARCHAR2(100),
         "NAME_EN" VARCHAR2(100),
         "COUNTRY_ID" NUMBER,
         "REGION_ID" NUMBER,
         CONSTRAINT "SCH_AREA_CON" PRIMARY KEY ("ID") ENABLE
    ALTER TABLE "SCH_AREA" ADD CONSTRAINT "SCH_AREA_FK2" FOREIGN KEY ("COUNTRY_ID")
         REFERENCES "SCH_COUNTRY" ("ID") ENABLE
    ALTER TABLE "SCH_AREA" ADD CONSTRAINT "SCH_AREA_FK3" FOREIGN KEY ("REGION_ID")
         REFERENCES "SCH_REGION" ("ID") ENABLE

  • Master-detail-detail UDO?

    Hi,
    I'm fairly new to B1 but have a questoin. I've tried to search the fora, but couldn't find a (good) awnser yet.....
    Is it possible to create a Master-detail-detail UDO?? I want(need) to categorize Items and based on the category/subcategory offer some specific properties to set. The values for these properties must be selected from a list.(combo) So you could come up with the following scheme:
    Category -- 1-n -- subcategory-- 1-n -- property_values
    With this datascheme I can make a list of propery_values depending on the subcategory.
    I've create so far the category_subcategory table and a UDO of that, so I can register and maintain them by a default simple default Form. Now I need to edit the property values.... And is there a way to use the Sub-category as a master for the property_values in a UDO or do I have to make a cusotm form for that?
    Well, a quite long question, but hopefully enough info to get some help!
    Thanks in advance.

    Arnold,
    What you're trying to achieve can't be done with only one UDO.
    I've created something alike.
    Supplier_1 ------ N_LandProperties_1 -------- N_LandParcels 
    I've done this with 2 Master data UDOs.
    Supplier = BP Master Data. I added a new folder with a grid that shows all the LandProperties belonging to the BP.
    UDO 1, LandProperties: This form has a grid that show all the LandParcels belonging to it. The form also has a button to create a new LandParcel, with the LandProperties already defined.
    UDO 2, LandParcel: form to create each LandParcel individually.
    Regards,
    Vítor Vieira

  • Master detail-detail in Oracle Apex 5

    can any one tell me APEX 5 include Master detail-detail, if its available then how can i create a master detail-detail form

    uzairmalik wrote:
    Hi to all respected Gurus of this community.
    I have a problem and I hope that there must be solution in this community and I am not aware of that till now.
    I have a master/detail form in Oracle Application Express. Now, I want to apply a where condition in master-form to filter the data as per requirement but I cannot do so.
    There is an option of "Modify Query" in "Query Definition". According to the instructions I am selecting the desired column (HR_Category) in left and providing text string 'M-9' in the right column to filter the data where HR_Category is M-9, and when I press apply changes, it gives me an error that
    "1 error has occurred
       The condition you are adding has caused the query to be invalid."
    Please help how to proceed to apply a where condition.
    Regards
    Muhammad Uzair Awan
    Oracle APEX Programmer
    Pakistan
    Probably a syntax error.  Check the syntax of the new clause very carefully.
    Can you post the query indicating which predicate is the new one?  If you need to change the column and table names for confidentiality

  • Master-detail-detail forms

    How can i create a Master-Detail-Detail(3 levels) form in D2k Forms? Whenever I create this, when i fill up master, detail, detail-detail blocks and move to next record of detail(second level) block, Forms asks whether to save the changes. If you give yes, then it tries to save the 3rd level block before the 1st and 2nd level blocks are saved. if i give NO, then I lose all my changes in the 3rd level block. pls help.

    do you have used the relations between the blocks? Pls. post the properties of the relations here.

  • 3 Level Master-detail-detail data view implementation

    Hi OAF Gurus,
    I have a requirement, where in I have to show a 3 level master-detail relationship data on a page. Is it possible to implement a master-detail-detail table structure i.e. table-in-table-in-table view. I have done table-in-table ( a 2 level or master-detail ) structure before, but I am running out of ideas on this one. Below is the requirement.
    I have queryBean for a customer search, then when searched by a customer, I get the Customer search results in a table below. Then I need to show Customer Sites in an inner table and then in another inner table on the Customer Sites, I need to show the customer contacts, something like this below.
    + Customer Name, Customer Acct.Number ....
    + SiteId , Site Name, BillTo, ShipTo
    + ContactName, Contact Address, Contact Phone Number
    Hope you can provide me some ideas. I appreciate all your help. Thanks again.

    Anyone any ideas, please let me know. This is really urgent. Please let me know if there is any way we can do this, other than going to a new page. Appreciate your feedback.
    Thanks.

  • Very strange behaviour master-detail-detail please help

    Very strange behaviour master-detail-detail please help
    Hello,
    I have a parent-child-grandchild report which show's some really strange behaviour.
    The data template has 3 queries Q1, Q2 and Q3.
    Q2 is bound to Q1 using a bind variable
    Q3 is bound to Q2 using another bind variable
    For a certain record in Q1 the output should be
    2 records in Q2
    and 1 record in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q2 record B
    Q3 record BC
    The results conforms to the expected output.
    For another record in Q1 the output should be
    2 records in Q2
    and 2 records in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    In stead of the expected output, the result shows
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record AB
    For another record in Q1 the output should be
    5 records in Q2
    and 2 records in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    Q2 record C
    Q3 record CE
    Q3 record CF
    Q2 record D
    Q3 record DG
    Q3 record DH
    Q2 record E
    Q3 record EI
    Q3 record EJ
    In stead of the expected output, the result shows
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    Q2 record C
    Q3 record CE
    Q3 record CF
    Q2 record D
    Q3 record DG
    Q3 record DH
    Q2 record E
    Q3 record DH
    So for the last record of Q2 I don't get the appropriate records from Q3 when there are multiple records to be shown, but only the last record which belongs to the previous Q2
    What is going on?
    Please help me out...
    Kind regards,
    Jan-Marcel

    Hi Tim,
    Thanks for your reply. Below you will find the datatemplate on the scott/tiger schema.
    Please help me out.
    Kind regards,
    Jan-Marcel
    <dataTemplate name="scott" description="Template scott" dataSourceRef="otcy001" version="1.1">
      <parameters>
        <parameter name="p_deptno" dataType="number"/>
      </parameters>
      <dataQuery>
        <sqlStatement name="Q1">
          <![CDATA[
            select empno            mgr_empno
                 , ename            mgr_name
                 , job              mgr_job
                 , hiredate         mgr_hiredate
                 , sal              mgr_sal
                 , comm             mgr_comm
              from emp
             where deptno = nvl(:p_deptno, deptno)
               and mgr is null
          ]]>
        </sqlStatement>
        <sqlStatement name="Q2">
          <![CDATA[
            select empno            mgr2_empno
                 , ename            mgr2_name
                 , job              mgr2_job
                 , hiredate         mgr2_hiredate
                 , sal              mgr2_sal
                 , comm             mgr2_comm
                 , mgr              mgr2_mgr
              from emp
             where mgr = :mgr_empno
          ]]>
        </sqlStatement>
        <sqlStatement name="Q3">
          <![CDATA[
            select empno            emp_no
                 , ename            emp_name
                 , job              emp_job
                 , hiredate         emp_hiredate
                 , sal              emp_sal
                 , comm             emp_comm
                 , mgr              emp_mgr
              from emp
             where mgr = :mgr2_empno
          ]]>
        </sqlStatement>
      </dataQuery>
      <dataStructure>
        <group name="G_mgr1" source="Q1">
          <element name="q1_mgr_empno"    value="mgr_empno"/>
          <element name="q1_mgr_name"     value="mgr_name"/>
          <element name="q1_mgr_job"      value="mgr_job"/>
          <element name="q1_mgr_hiredate" value="mgr_hiredate"/>
          <element name="q1_mgr_sal"      value="mgr_sal"/>
          <element name="q1_mgr_comm"     value="mgr_comm"/>
          <group name="G_mgr2" source="Q2">
            <element name="q2_mgr_empno"    value="mgr2_empno"/>
            <element name="q2_mgr_name"     value="mgr2_name"/>
            <element name="q2_mgr_job"      value="mgr2_job"/>
            <element name="q2_mgr_hiredate" value="mgr2_hiredate"/>
            <element name="q2_mgr_sal"      value="mgr2_sal"/>
            <element name="q2_mgr_comm"     value="mgr2_comm"/>
            <element name="q2_mgr2_mgr"     value="mgr2_mgr"/>
            <group name="G_emp" source="Q3">
              <element name="q3_emp_empno"    value="emp_empno"/>
              <element name="q3_emp_name"     value="emp_name"/>
              <element name="q3_emp_job"      value="emp_job"/>
              <element name="q3_emp_hiredate" value="emp_hiredate"/>
              <element name="q3_emp_sal"      value="emp_sal"/>
              <element name="q3_emp_comm"     value="emp_comm"/>
              <element name="q3_emp_mgr"      value="emp_mgr"/>
            </group>
          </group>
        </group>
      </dataStructure>
    </dataTemplate>

  • Problem in implementing Master-Detail-Detail design in Forms 6i

    Hi, all technocrats!!
    Here i've problem in Master-Detail-Detail sort of design in
    Forms 6i..
    This thing i've implemented earlier in one form...and that is
    fine...and i could not track the root when i've got a problem in
    a new form...which of the same manner...
    The problem is that...
    When i enter data into the 1st detail block and navigate to the
    2nd detail which is a detail block to the 1st detail...and enter
    data, there is no problem, but when i navigate back to the 1st
    detail block and that to a new record in the 1st detail...form
    is showing indefinite behaviour( Hanging )...
    But when i navigate back to the same record in the 1st detail
    from the 2nd detail...there were no problems and it is working
    fine...
    And whenever i shift to a new record in the first detail it is
    asking to save that record...to solve this problem., i've used
    POST in the new block instance of the 1st detail...and i'm
    comfortably managing it...if i dont use this POST method...it is
    clearing the details in the 1st detail itself when i traverse
    back to it from 2nd detail after inserting records...
    But this hanging problem is really driving me to Hang myself...
    Plz do suggest me to get rid of this problem...

    Developing proper transactional behavior with Oracle Forms
    in Grandparent-Parent-Child case is a problem.
    We must use some 'container' for 'non-visible' Child records
    (Child records with Parent different from current record in
    Parent block).
    I try to solve this problem in 2 different ways:
    1. Using POST built-in. In this case 'container' is Child
    database table. But, problem can be because POST built-in
    actually executes DML statements (this locks records and fires
    database triggers - so a deadlock can occur) before COMMIT_FORM.
    2. Using a 'temporary container'. 'Temporary container' can be
    (for example) temporary database table, PL/SQL table of records
    (defined in Forms package or database package), Forms record
    group. This variant has not problem with record locks/database
    triggers, but is much more complex for programming than 1.
    variant.
    In my development, when I haven't problem with record locks or
    database triggers, then I use POST. In other cases, I use 2.
    variant, with PL/SQL table of records (defined in Forms package)
    as 'temporary container'.
    Further, when we use POST, we can do this in more ways.
    One method is to use POST in Forms level WHEN-NEW-RECORD-
    INSTANCE trigger.
    Different method is to change code in CLEAR_ALL_MASTER_DETAILS.
    Instead of:
    CLEAR_BLOCK (ASK_COMMIT);
    we can write:
    IF mastblk = "name_of_master_block" THEN
    CLEAR_BLOCK (ASK_COMMIT);
    ELSE
    POST;
    END IF;
    Which method you use?
    Regards
    Zlatko Sirotic

  • Master/Detail/Detail form... Help

    I know there are some entries in the forum about this but I tried some of those with no results.. I also found some demos in apex.oracle.com but since I cannot edit the code I cannot find the answer myself...
    The steps I am using are these:
    1. Created a master/detail form using he wizard... (Master/Detail1)
    2. Create a new region in the form for detail/detail (lets call it Detail2) of type Updateable Report. This report will select form a table with 2 columns ( LinktoDetail1Id, myValue)
    3. Create item P_mycolumnvalue in region Detail2 that is populated when a row in Detail1 region is selected
    4. Edit the propertied for Detail2 -> LinktoDetailId column, in the item properties I Enter Default type: Item (Application or page item name) in Default value I entered P_mycolumnvalue item ..
    When running it I get this error:
    ORA-01790: expression must have same datatype as corresponding expression
    Can anyone explain in detail how to link Detail1 with Detail 2 for when inserting data?
    thanks

    I think the problem is in the way I defined the Item to store the ID from Detail1.. so Let me rephrase my question...
    I need a master/detail1/detail2 form to insert data...
    I am trying to use
    How can I (link) assign the ID from Region Detail1 into a column in region Detail2. I assume by using default field .. but I get the error I mentioned above when doing it

  • Master-detail: detail field not displayed after changed by master field

    I want to use the Depends on item with Clear/refresh value functionality in a master detail situation. Within the same group it is no problem to use the setter method of a field to change a second field and then displaying this new value. But in the detail group, I can not select items from the master group as a depends on item.
    In the setter of the master field, the value in a field for each row in the detail (table layout) is updated. The only problem is that this updated value is not displayed, the old value doesn't change. When saving the changes, the displayed value is committed to the database. When de updated field is not displayed at all, the correct value is saved, so I know the detail field is updated.
    How can I make sure the displayed value in the detail is displayed after changeing a master field? I already gave the detail field the correct partial trigger.

    Wouter,
    I guese you don;t see the changed value when you display the detail item because after the depends on item update changed the detail item, JSF procesing continues and the detail table changes are sent to the server which will override again the detail item attriibute, resetting it to the old, still displayed value.
    So, the trick is to get PPR working. Make sure the partialTYriggers property of the detail item is set to the value of the id property of the master item. If it still doesn't work, try setting the partial triggers property on the table, instead of the individual item.
    Steven Davelaar,
    JHeadstart team

  • Master-Detail Detail does not refresh after it's been empty

    I have a master detail page (both are tables) that works just fine, until I click a master record that has no details.
    After that the panelHeader of teh detail is refreshed with the PPT but the table underneath it is not, I keep seeing "no rows yet", no matter which master record I click.
    When I go to a different page and return it's fine again.
    Only one of my pages has this behavior, I tested this on another and it was fine. Has anyone seen this behavior before?
    My console has this message:
    May 11, 2007 10:52:38 AM oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel getSelectedRow
    WARNING: rowIterator is null
    Message was edited by:
    Wendy Tromp

    Ok I found it,
    My details iterator had the following properties:
    <iterator id="AfdelingMedewerkersIterator" RangeSize="-1"
    Binds="AfdelingMedewerkers"
    DataControl="PRBAppModuleDataControl"
    Refresh="IfNeeded" RefreshCondition="#{!adfFacesContext.postback}" />
    I have no idea why I set it like that, but removing the Refresh properties fixed my problem.
    I am still clueless as of why this led to the behavior as described above. I could have understood it if my iterator was not refreshed at all, but I have no idea why it stopped working only after the details were empty and not a second before...
    Anyway, problem solved!

Maybe you are looking for