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.

Similar Messages

  • Master and detail in the same page

    db11xe , apex 4.0 , firefox 24 ,
    hi all ,
    i am trying to insert the master and detail data in one step in the same page :
    i have two tables (clients) and (tests_administered)
    the client table's region contains theses items
    client_id
    client_name
    the other table's region contains these columns -- the tabular region
    row selector
    test_admin_id -- pk,  hidden
    client_id          -- hidden , this is the one i should populate with values
    and more columns
    i've done this :
    1- removed the condition of the tabular region .
    2- Added the request CREATE to the list in condition of the APPLYMRU process -- or :request like ('CREATE')
    3- Added new process with following code : -- with sequence before the applymru process and after process row of clients process
    for i in 1..apex_application.g_f02.count
    loop
    apex_application.g_f02(i) := :p2_client_id ;
    end loop ;
    but nothing happened . why ? what did i miss ?
    thanks

    Hi,
    Create a Master Detail Form through the APEX Wizard 
    Make sure you choose the Primary Keys for the Master Detail as one of your Column and not the ROW ID.
    Selecting an existing Sequence for the Primary Key is preferred.
    Select the option the where your Master and Detail appears in the same page.
    Initially when you run the page your master and detail will not appear at the same time in the page when your Master Detail Form is in the entry form mode. For this you have to go to your Tabular Form(Detail Form) region, and below you will have to remove the Condition for the display of your Tabular form and set it to “No Condition”.
    Now when you run the page both the Master and Detail form will appear together in the create mode but you will not be able to insert or create both master and detail records at the same time when u click the create button. For this the following needs to be done: You need to create a PL SQL Tabular Form process :
    Let's say your master form is based on DEPT and your detail tabular form is based on EMP. Make sure the following things are configured:
    The DEPT insert/update DML process runs before the new tabular form PLSQL process. (ie) the new PL SQL Tabular Form Process that you create should be inbetween Automatic Row Processing(DML) and Multi Row Update Process , so create the new Tabular Form Pl SQL process with a sequence number inbetween these two Processes.
    Make sure you choose Tabular form while creating this PL SQL process.
    The new tabular form PL/SQL process executes the following as the source
       :DEPTNO := :P1_DEPTNO;
    Where DEPTNO is the Foreign Key column in the Tabular Form that links the Primary Key Item P1_DEPTNO of the Master Form.
    Finally this new PL SQL process conditionally runs when DEPTNO is null, so you need to add the following condition to the process:
    The final step to accomplish in creating both the Master and Detail records at the same time is to make a change in the condition of the Multi Row Update Process. :request in ('SAVE','CREATE') or :request like 'GET_NEXT%' or :request like 'GET_PREV%'
    -We make this change so that records get inserted into the Detail table when we click the ‘’Create” button.
    Now you can Run your page and create both the Master and Detail records at the same time.
    Thanks and Regards,
    Madonna

  • How to create one Oprations button (Create Button Or CreateInsert Button )for all master And Detail block?

              hi
       I have master And Detail with 4 level ,I want to have on operations button for all block in data control .
      (similar to Oracle form toolbar)
    how to do it ?

    Well, if you tell us your jdev version and what exactly you try to do, without just telling us 'as in forms' we might be able to help.
    Most of us don't know how it's done in forms. So be specific when you describe your use case.
    Timo

  • Master table, detail table, detail table not getting refreshed selection

    i have a page where i am displaying data as master table and detail table. both table VOs are based on SQL queries which use bind variables.
    i have a view link between vos of type 1:M
    i created master table detail table page by dropping detail iterator from data control panel under master and selecting master table detail table
    on my page i see detail table records getting populated only for first record of parent table.
    on changing parent record, child table shows same records and does not refresh
    i am using partial triggers on both tables to be populated on a button click as i need to pass some bind variables to VOs which are taken as input from users
    how can i show corresponding rows in detail table when parent record in table changes
    will i have to use table selection listener
    is it possible declaratively to have master detail table view when both VOs have bind variables
    jdev 11 1 1 5

    these are the SQLs used
    Parent SQL Based VO Query
    SELECT to_char(d.status_date,'yyyymmddhh24') TIME123, count(DISTINCT d.c4)
    FROM t1 d,
    t2 w
    WHERE w.c1 = nvl(:ou, w.c1)
    AND UPPER(w.c2) = UPPER(nvl(:tt, w.c2))
    AND d.c3 >= :startTime AND :startTime IS NOT NULL
    AND d.c3 <= :endTime AND :endTime IS NOT NULL
    AND d.c4 = w.c4
    AND UPPER(d.status) = 'CLOSED'
    GROUP BY to_char(status_date,'yyyymmddhh24') ORDER BY to_char(status_date,'yyyymmddhh24') DESC
    Child SQL Based VO Query
    SELECT w.c1,
    w.c5 - w.c6 processing_time,
    w.c3,
    w.c6,
    w.c7,
    w.c8,
    to_char(d.status_date,'yyyymmddhh24') TIME123 FROM t1 d,
    t2 w
    WHERE w.c2 = nvl(:ou, w.c2)
    AND UPPER(w.c3) = UPPER(nvl(:tt, w.c3))
    AND d.c4 >= :startTime AND :startTime IS NOT NULL
    AND d.c4 <= :endTime AND :endTime IS NOT NULL
    AND d.c1 = w.c1
    AND UPPER(d.status) = 'CLOSED' ORDER BY to_char(status_date,'yyyymmddhh24') DESC
    view link is based on column TIME123

  • Master table detail table with SQL based read only VO with bind variables

    i have a page where i am displaying data as master table and detail table. both table VOs are based on SQL queries which use bind variables.
    i have a view link between vos of type 1:M
    i created master table detail table page by dropping detail iterator from data control panel under master and selecting master table detail table
    on my page i see detail table records getting populated only for first record of parent table.
    on changing parent record, child table shows same records and does not refresh
    i am using partial triggers on both tables to be populated on a button click as i need to pass some bind variables to VOs which are taken as input from users
    how can i show corresponding rows in detail table when parent record in table changes
    is it possible declaratively to have master detail table view when both VOs have bind variables
    jdev 11 1 1 5
    these are the SQLs used
    Parent SQL Based VO Query
    SELECT to_char(d.status_date,'yyyymmddhh24') TIME123, count(DISTINCT d.c4)
    FROM t1 d,
    t2 w
    WHERE w.c1 = nvl(:ou, w.c1)
    AND UPPER(w.c2) = UPPER(nvl(:tt, w.c2))
    AND d.c3 >= :startTime AND :startTime IS NOT NULL
    AND d.c3 <= :endTime AND :endTime IS NOT NULL
    AND d.c4 = w.c4
    AND UPPER(d.status) = 'CLOSED'
    GROUP BY to_char(status_date,'yyyymmddhh24') ORDER BY to_char(status_date,'yyyymmddhh24') DESC
    Child SQL Based VO Query
    SELECT w.c1,
    w.c5 - w.c6 processing_time,
    w.c3,
    w.c6,
    w.c7,
    w.c8,
    to_char(d.status_date,'yyyymmddhh24') TIME123 FROM t1 d,
    t2 w
    WHERE w.c2 = nvl(:ou, w.c2)
    AND UPPER(w.c3) = UPPER(nvl(:tt, w.c3))
    AND d.c4 >= :startTime AND :startTime IS NOT NULL
    AND d.c4 <= :endTime AND :endTime IS NOT NULL
    AND d.c1 = w.c1
    AND UPPER(d.status) = 'CLOSED' ORDER BY to_char(status_date,'yyyymmddhh24') DESC
    view link is based on column TIME123

    Instead of doing the master-detail layout by dragging the details over, can you try a new page where you first drag the master VO over and then drag the detail VO over, and then set partialTrigger from the detail to point to the master?

  • Insert master, then details

    I'm using JDeveloper 10.1.3.5. I've set up ADF BC EO's and VO's for a master table and a detail table. There is also a 1:* Association, and a 1:* View Link between the master and details and this has all been added to an Application Module. The primary key of the master table is a surrogate PK generated from a sequence in a trigger. So the PK attribute has been designated as a DBSequence and has Refresh after Insert turned on.
    I have a jspx page using ADF Faces. It has a Create Form based on the master table. That means that a Create action was added to the page definition, and an invokeAction set to make sure Create is done when the page is first displayed. I added an InputFile component set to an UploadedFile in a backing bean. The files that users will be uploading contain detail records to be associated with this master. So I added an Iterator, Create action named CreateDetail, and AttributeValues for each attribute in the detail table's VO to the page definition. There is also a Commit action in the page definition.
    In the backing bean, there is an ActionEvent method tied to a commandButton on the page. It takes the uploaded file and executes CreateDetail for each record in the uploaded file, parses the record and sets the attributes. Then it executes Commit.
    Here's the problem:
    If I execute Commit before I start creating the detail records from the uploaded file, then Commit again after creating details, this works fine. However, if there is an error when I process the details, the master has already been committed. I'd rather consider master and details as a single transaction to be committed or rolled back as a unit.
    If I don't commit before I start creating the detail records, the new primary key for the master record hasn't been retrieved yet. So the detail records don't have the foreign key that points to the master. So the commit fails - missing mandatory field.
    I tried changing the Create on the master record to a CreateInsert, hoping that the framework would do the Insert of the master and retrieve its PK before processing the details, but no dice - it still works only if I Commit before processing details.
    Any ideas?

    In 11g, I've had some issues with compositions automatically maintaining foreign-key relationships for a sequence-based PK correctly if both master and detail are new. Have you tried implementing the (Java) solution provided by the aforementioned section of the dev guide (even though you shouldn't need it for compositions)?
    If that doesn't work for you, I've found the "old" method to be successful:
    In master:
    public void postChanges(TransactionEvent e) {
    /* Only references if this is NEW */
    RowSet newDetailsBeforePost = null;
    if (getPostState() == STATUS_NEW) {
    // Store the rowset of details related
    // to this new image before calling super
    newDetailsBeforePost = (RowSet)getXXX(); // replace "getXXX" with your association accessor method
    super.postChanges(e);
    if (newDetailsBeforePost != null) {
    adjustDetails(newDetailsBeforePost);
    private void adjustDetails(RowSet details) {
    Number newFkValue = getYYY.getSequenceNumber(); // replace "getYYY" with the getter for your sequence-based PK attribute
    while (details.hasNext()) {
    DetailImpl detail= (DetailImpl) details.next(); // replace "DetailImpl" with your detail EO class
    detail.setZZZ(newFkValue); // replace "setZZZ" with the setter for the detail's FK attribute
    In detail:
    public void postChanges(TransactionEvent e) {
    MasterImpl master = getMaster(); // replace "MasterImpl" with master EO class, "getMaster" with assoc accessor method
    if (STATUS_NEW == master.getPostState()) {
    master.postChanges(e);
    super.postChanges(e);
    Even better is to create an EO framework class that just fixes this problem (in general) for you, but that's more complicated--<plug>see the forthcoming JDev11g handbook</plug>.
    Hope this helps,
    Avrom

  • Vendor Master Contact details

    Hi,
    I am currently working on a data migration project to migrate the data from the SAP 4.7 to ECC 6.0.
    We are working on migrating the vendor master data and I am struck up in extracting the comments maintained in the Vendor master Telephone details. In the legacy system Business have maintained the comments in the section along with multiple telephone numbers.
    We are facing similar issue in extracting the Comments section in the Mobilephone and and notes in Fax.
    Please guide me on how to extract the Comments section of the Telephone & mobile phone numbers and the notres section from the Fax details.
    With regards
       Krishna

    adress data of a vendor is stored in adress tables (dont only use on LFA1)  like ADRC, fax numbers in ADR3, telefon in ADR2 table. Remarks to an adress number in ADRCT

  • Vendor Master CIN Details Tab

    Dear All,
    Where will we do the field settings for the fields in Vendor Master CIN Details Tab?
    Points will be awarded.
    Thanks in advance!
    SAP FC

    Hi,
    U want the Cin tab on the vendor master rite.
    It comes on the address screen.
    In the spro under LG -- tax on goods movement---india...
    drop down and u have a place where we give ur user id ... (new entry) gv ur user id and put a star * and save.
    then when u create vendor master now u will get the CIN tab.
    I have no sap so i could not tell u the exact path.
    Thanks & regards,
    Kiran

  • Vendor master data details

    Hello Friends,
    i have one requirement like...
    We need a download of Vendor master data details with the following data:
    1) Company Code
    2) Vendor number
    3) Vendor Name
    4) Vendor country code
    4) Bank key
    5) Swift code (BIC code)
    6) Bank account
    7) IBAN code
    i have tried to develop one report in SQVI transaction. i have taken tables LFA1,LFB1,LFBK.BKNA and TIBAN.
    But i could not able map Bank account number  between the tables BKNA and TIBAN.
    Could you please help on this topic...
    Regards,
    Satya

    Hi,
    BNKA is the table of banks, not bank accounts; it doesn't contain bank account numbers.
    You will find swift code in BNKA-SWIFT
    with keys
    BNKA-BANKS = LFBK-BANKS
    BNKA-BANKL = LFBK-BANKL
    and IBAN in TIBAN-IBAN
    with keys
    TIBAN-BANKS = LFBK-BANKS
    TIBAN-BANKL = LFBK-BANKL
    TIBAN-BANKN = LFBK-BANKN
    TIBAN-BKONT = LFBK-BKONT

  • Example of how to create a master-mutiple detail BI Publisher 10.1 Report

    Hi,
    Are there any examples out there on how to do this? Basically for each master record from table A,
    need multiple related detail records from table B AND multiple related detail records from table C.
    Ie. A is master to B AND A is master to C.
    For master-single detail reports, writing a single query that joins master to detail works fine,
    but for master-multiple detail reports, I don't see how this approach will work.
    Thanks,
    Jed

    Sure, here is one (hand edited, but shows some structure).
    Detail rowset2 relates to rowset1 via STDINV_ID.
    Detail rowset3 related to rowset1 via STUDY_ID and STDINV_ID.
    Thanks for your consideration.
    -Jed
    <?xml version="1.0" encoding="UTF-8"?>
    <DATA>
    <ROWSET1>
    <ROWSET1_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STUDYNAME>TEST293</STUDYNAME>
    <INVNAME>Flinstone, Fred</INVNAME>
    <COUNTRY>USA</COUNTRY>
    <STDINV_ID>3721</STDINV_ID>
    <ROWSET2>
    <ROWSET2_ROW>
    <STDINV_ID>3721</STDINV_ID>
    <TEMPLATESENT>11/02/2006</TEMPLATESENT>
    <FINALCONTRACTRECEIVED>11/13/2006</FINALCONTRACTRECEIVED>
    <CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
    <DRAFTRECEIVED></DRAFTRECEIVED>
    <EFFECTIVEDATE>11/13/2006</EFFECTIVEDATE>
    <EXPIRATIONDATE></EXPIRATIONDATE>
    <CONTRACTSTATUS>Executed</CONTRACTSTATUS>
    </ROWSET2_ROW>
    </ROWSET2>
    </ROWSET1_ROW>
    <ROWSET1_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STUDYNAME>TEST293</STUDYNAME>
    <INVNAME>Bell, Taco</INVNAME>
    <COUNTRY>USA</COUNTRY>
    <STDINV_ID>3157</STDINV_ID>
    <ROWSET2>
    <ROWSET2_ROW>
    <STDINV_ID>3157</STDINV_ID>
    <TEMPLATESENT>07/12/2005</TEMPLATESENT>
    <FINALCONTRACTRECEIVED></FINALCONTRACTRECEIVED>
    <CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
    <DRAFTRECEIVED></DRAFTRECEIVED>
    <EFFECTIVEDATE>04/05/2006</EFFECTIVEDATE>
    <EXPIRATIONDATE></EXPIRATIONDATE>
    <CONTRACTSTATUS>Executed</CONTRACTSTATUS>
    </ROWSET2_ROW>
    </ROWSET2>
    <ROWSET3>
    <ROWSET3_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STDINV_ID>3157</STDINV_ID>
    <EXPIRATION>10/02/2007</EXPIRATION>
    <IRBNAME>Big Kahuna IRB</IRBNAME>
    </ROWSET3_ROW>
    <ROWSET3>
    </ROWSET1_ROW>
    <ROWSET1_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STUDYNAME>TEST293</STUDYNAME>
    <INVNAME>King, Burger</INVNAME>
    <COUNTRY>USA</COUNTRY>
    <STDINV_ID>3112</STDINV_ID>
    <ROWSET2>
    <ROWSET2_ROW>
    <STDINV_ID>3112</STDINV_ID>
    <TEMPLATESENT>07/10/2005</TEMPLATESENT>
    <FINALCONTRACTRECEIVED>11/21/2005</FINALCONTRACTRECEIVED>
    <CONTRACTTYPE>Main Agreement</CONTRACTTYPE>
    <DRAFTRECEIVED></DRAFTRECEIVED>
    <EFFECTIVEDATE>11/23/2005</EFFECTIVEDATE>
    <EXPIRATIONDATE></EXPIRATIONDATE>
    <CONTRACTSTATUS>Executed</CONTRACTSTATUS>
    </ROWSET2_ROW>
    <ROWSET2_ROW>
    <STDINV_ID>3112</STDINV_ID>
    <TEMPLATESENT></TEMPLATESENT>
    <FINALCONTRACTRECEIVED></FINALCONTRACTRECEIVED>
    <CONTRACTTYPE>Amendment 1</CONTRACTTYPE>
    <DRAFTRECEIVED></DRAFTRECEIVED>
    <EFFECTIVEDATE>04/01/2008</EFFECTIVEDATE>
    <EXPIRATIONDATE></EXPIRATIONDATE>
    <CONTRACTSTATUS>Executed</CONTRACTSTATUS>
    </ROWSET2_ROW>
    </ROWSET2>
    <ROWSET3>
    <ROWSET3_ROW>
    <STUDY_ID>105</STUDY_ID>
    <STDINV_ID>3112</STDINV_ID>
    <EXPIRATION>08/16/2011</EXPIRATION>
    <IRBNAME>Top Notch Healthcare</IRBNAME>
    </ROWSET3_ROW>
    </ROWSET3>
    </ROWSET1_ROW>
    </ROWSET1>
    </DATA>

  • Example of how to create a master-multiple detail PDF report using BI Pub

    Hi,
    Are there any examples out there on how to do this? Basically for each master record from table A,
    need multiple related detail records from table B AND multiple related detail records from table C.
    Ie. A is master to B and A is master to C.
    For master-single detail reports, writing a single query that joins master to detail works fine,
    but for master-multiple detail reports, I don't see how this approach will work.
    Thanks,
    Jed

    You MIGHT have a better response if you ask this question in the BI Publisher forum...: BI Publisher
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.

  • How to insert  new records in Master and detail Forms.

    Hi,
    I am having trouble inserting values in both master and detail view at the same time. The scenarios is I have a Dept Table (View Object-VO1) and Employee Table(View Object -VO2) both linked with a foreign key, as per Default HR schema in Oracle DB XE.
    Now I want to insert new record in both Dept(VO1) and EMP(VO2) table via a New page say ( Page2 ). There is a button on Page1 with button INSERT .I can only drag-drop "CreateInsert" operation on that button for VO1 or VO2. So only text box for Dept records are enable to insert data but not Emp records. Is there a way I can insert data in both the tables at the sametime??
    Thanks,
    MB

    Hi MuradRabbani,
    You can programmatically call both createInsert Operations,
    Add to your pageDef both CreateInsert Operations.
    Create a button tha will call insert method from Master (VO1) and then call insert method for Detail (VO2)
    Here is an Example code of calling the operations:
    DCBindingContainer dcb = ADFUtils.getDCBindingContainer(); //you need ADFUtils.java and JSFUtils.java classes. You can find them in the sample applications in your JDeveloper.
    OperationBinding oper = dcb.getOperationBinding("CreateInsertVO1");
    oper.execute();
    -----------------NOTE: at this point you should have set values that compine the ViewLink on the master in order the detail will know where to link the new record there are many ways to do it.
    As an approach try to overrdi the create Method on the in the ViewRowImpl of your Master vo (VO1)
    e.g.
    @Override
    protected void create(AttributeList attributeList) {
    //before
    attributeList.setAttribute("NameOfAttribute", valueHere);
    super.create(attributeList);
    After that you should call the operation for your detail VO2
    e.g.
    DCBindingContainer dcb = ADFUtils.getDCBindingContainer();
    OperationBinding oper = dcb.getOperationBinding("CreateInsertVO2");
    oper.execute();
    The detail record will now have the values from your master automatically.
    Regards,
    Dimitris.

  • MySQL Sytax error with master and detail pages

    Master and Detail pages.
    I get an SQL error when I click on an Item in the Master
    page.
    “You have an error in your SQL syntax; check the manual
    that corresponds to your MySQL server version for the right syntax
    to use near 'ID = 16 LIMIT 0, 10' at line 1 “
    If I try to open the detail page I get
    “You have an error in your SQL syntax; check the manual
    that corresponds to your MySQL server version for the right syntax
    to use near 'ID = -1 LIMIT 0, 10' at line 1 “
    I created this pair by simply clicking on Insert/data object/
    master detail page.
    I have tried this various ways, but always get the same
    result.
    Is there a bug in CS3?

    Sorry I have solved it myself.
    I had accidentally put a space in a table header in the mySQL
    data bank.
    All works well now.

  • Master table / detail table: Problem refreshing the content

    Hi,
    I have a Master table/detail table on my page. When I add a new row to the master or detail table, the new row is inserted in the database, but not shown in the ADF Tables on the page. After restarting the OC4J the ADF Tables show the correct data, including the new rows.
    While dropping the collection on my page there were one methodIterator and two accessorIterators created.
    In several tutorials the solution for the refresh problem is to change the chacheResult parameter of the methodIterator to false. But this causes in "No row found for rowKey:null" errors.
    An other solution should be to create a new invokeAction with the id "tableRefresh" and the corresponding RefreshConditions. This doesn't helps, too.
    So how could I solve this problem? I want to update/refresh the master and detail table, after I inserted a new row.
    Thanks,
    Thomas

    Hi,
    thanks for your answer.
    Sorry, but I forgot to say, that I am using Jdev 10.1.3.1, Toplink, ADF and EJB3.
    I think I will give some further informations about the scenario. I created the m/d table by drag-and-droping the object out of the data control palette on site A. Each row stores a goLink item, which navigates to a new page B. After creating and saving the new entry the user navigates back to the page with the m/d table (page A). Storing the new entry is handled by an action in the page B managed bean.
    Now the question: How could I re-execute in page B backing bean the iterator which is stored in page A? Could this be handled by an invokeAction? Or is it possible to get access to the iterator used and stored on another page (definition)?
    Thanks,
    Thomas

  • 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

Maybe you are looking for

  • How can I make my imap email not take the emails off the server?

    How can I make my imap email not take the emails off the server when I delete them on my iPad? Can anyone help me whith this? I tried to use the pop account in gmail settings but that was downloading all my emails sice 2008 ( more than 300 deleted em

  • K7n2-L and problems with any cdrw drives

    this includes the MSI CR52-A2 and the BTC 52x24x52x what happend is i installed XP serve pack 1 one then the nfocre2 mobo drives 2.03 ver for xp . then the det drives and sound card. then the cd software (nero 5.5.10.7) witch finds the cdrw drive and

  • Group Expert with DateTime?

    Post Author: triley142 CA Forum: General I am trying to do an analysis of certain events, we'll call them 'alarms', grouped first by day. As subgroups, I would like only the alarms that occurred from 11:00am to 11:59am, 12:00pm - 12:59pm, and 1:00pm

  • How to know last statements

    Hi All, How can i know, what are the statements have run on yesterday in my database for a particular user? Thanks Desis

  • How do you burn a slideshow to a DVD that will play on DVD players and PC computers?

    I burned a slideshow in Aperture onto a DVD containing about 40 photos with a sound track from iTunes.  The disk will play on my iMac but not on my wife's PC or on two of our DVD players (less than three years old.).  What am I missing in the burning