Master form -detail table

Hi,
Jdeveloper Verison: 11.1.2.1.0
I m creating a master detail form .
hr_feedback_mt
id_feedback
employee_no
id_training_program
trainer
location
attended date
hr_ratings_tt
id_feedback
id_question
rating
hr_questions_mt
id_question
question
I have created master EO and VO for hr_feedback_mt, hr_ratings_tt. created associations and viewlink between EO and VO's.
On the form I have dragged the master VO from the data control as form, and detial VO as editable  table.
On master from i clicked createinsert operation and filled the attributes. on details table, i click on createinsert operation, it creates on row in the detail table.
But actually when i click on createinsert operation of detail table, i need to display all the questions(rows and the ratings so that user fills all the questions.
on commit master and detail should be saved into the database.
How to achieve detail table to show all the questions on one click of createinsert operation and user fills all the questions and ratings.

There is no automatic insert of all possible question in the detail table. You have to do this by hand in a beam method or better in a service method in the Application module or VO.
Timo

Similar Messages

  • Jheadstart 10.1.2 master form-detail table error

    Hi everyone;
    I use Jheadstart 10.1.2 and I have 1 master 6 detail table.I want to show master form and 3 detail table in same page. I configure pages in jheadstart and generate master form- detail table when module run it gives this error in detail tables place;
    java.lang.RuntimeException: Range binding ALTERNATIF_SATICILAR does not exist in STOK_MASTERUIModel
         at oracle.jheadstart.view.strutsadf.TableBindingFactory.get(TableBindingFactory.java:137)
         at org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:221)
         at org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:146)
         at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:242)
         at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:201)
         at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:138)
         at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:166)
         at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:109)
         at org.apache.taglibs.standard.tag.el.core.ForEachTag.evaluateExpressions(ForEachTag.java:191)
         at org.apache.taglibs.standard.tag.el.core.ForEachTag.doStartTag(ForEachTag.java:102)
         at web2d__131_nf._page._STOK__MASTER._jspService(STOK_MASTER.jsp:872)
         [SRC:/WEB-INF/page/STOK_MASTER.jsp:251]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
         at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:172)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Thanks for all helps..........

    Which build of JHeadstart are you using?
    kind regards,
    Sandra Muller
    JHeadstart Team

  • Pagination for Master Form, Detail Table

    Hi,
    I am using JDev11.1.2.1.0
    I am creating a page having master detail relationship (master as a form and detail as a table). On click of First, Prev, Next, Last pagination button of master should change the data and refresh child table data.
    So created a Master VO & Child VO joined with View Link and dragged into page as Master form, Detail table. But during pagination, NEXT works once, then it seems to stop there. LAST works and FIRST & PREVIOUS seem to both go to the first record.
    Can anyone suggest me when I went wrong.

    Yes Frank, its st. forward use case. I tired with master table with detail table works fine but master form with details table behaviors differently.
    Below snippet of code in JSPX page master form detail table as shown below :
    <af:panelFormLayout id="pfl6">
    <af:panelLabelAndMessage label="Name:" id="plam1">
    <af:outputText value="#{bindings.EMP_NAME.inputValue}" id="ot2"/>
    </af:panelLabelAndMessage>
    <af:panelGroupLayout id="pgl15" layout="horizontal">
    <af:commandButton text="First"
    disabled="#{!bindings.First.enabled}"
    partialSubmit="true" id="cb1"
    actionListener="#{bindings.First.execute}"/>
    <af:commandButton text="Previous"
    disabled="#{!bindings.Previous.enabled}"
    partialSubmit="true" id="cb2"
    actionListener="#{bindings.Previous.execute}"/>
    <af:commandButton text="Next"
    disabled="#{!bindings.Next.enabled}"
    partialSubmit="true" id="cb3"
    actionListener="#{bindings.Next.execute}"/>
    <af:commandButton text="Last"
    disabled="#{!bindings.Last.enabled}"
    partialSubmit="true" id="cb4"
    actionListener="#{bindings.Last.execute}"/>
    </af:panelGroupLayout>
    </af:panelFormLayout>
    <af:table rows="#{bindings.EmpSchemesViewObj1.rangeSize}"
    fetchSize="#{bindings.EmpSchemesViewObj1.rangeSize}"
    emptyText="#{bindings.EmpSchemesViewObj1.viewable ? 'No data to display.' : 'Access Denied.'}"
    var="row" styleClass="AFStretchWidth" autoHeightRows="5"
    columnStretching="column:c2"
    value="#{bindings.EmpSchemesViewObj1.collectionModel}"
    rowBandingInterval="0" contentDelivery="immediate"
    selectedRowKeys="#{bindings.EmpSchemesViewObj1.collectionModel.selectedRow}"
    selectionListener="#{bindings.EmpSchemesViewObj1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1"
    partialTriggers="::cb1 ::cb2 ::cb3 ::cb4">
    <af:column headerText="#{msg.LONG_NM}"
    sortProperty="#{bindings.EmpSchemesViewObj1.hints.REGISTERED_NAME.name}"
    sortable="false" id="c1">
    <af:outputText value="#{row.REGISTERED_NAME}" id="ot9"/>
    </af:column>
    </af:table>
    Edited by: 879073 on Jan 22, 2013 3:36 AM

  • Master form detail table delete and save all

    I use jdeveloper 10.1.2 with jheadstart 10.1.2 I have a problem about delete and save in master detail.I create 1 master form ,1 detail table and 1 detail form in jheadstart.I want to delete details when I pressed delete button in master and I want to save all changes when I pressed save button.But delete and save are only work for master.So my detail data cant delete or save.What can I do for this problem?Thank alot.......

    To delete the details when you delete the master, it is easiest to define the foreign key in the database with CASCADE option instead ogf RESTRICTED.
    I cannot reproduce your issue with Save not working. Can you reproduce this using the HR schema?
    Steven Davelaar,
    JHeadstart team.

  • How to show master and detail tables in different pages?

    Hi,
    Can somebody expalin me how to include or bind the master and detail tables to different pages which are included at runtime.
    thnaks,
    Naresh.

    Hello!
    you have ti create a Master/Detail data structure.
    In the first page drag the master table, on the second drag a detail table.
    It should work out of the box. Selecting a record on the master table selects
    the details on the detail table automatically!
    regards,
    Mario Udina

  • Master and detail table in same block

    Master Table - Group Maintenance
    Columns - Group ID, Group Desc
    Detail Table - Group Usage
    Columns - Group ID(foreign key to Group Maint. table), forecast_date, plan_date, actual_date
    I am trying to create a form that will display both tables in one tabular block. I want to be able to insert/update both tables from this form. I can't seem to get it to work right. I have tried adding non table items to the master block and updating manually but changes to only the non table items don't change the record status so the form says 'no changes to save'. Any ideas?

    I'm not quite sure what's your requirement. Are some rows belonging to the master-table and some to the detail-table? If not, what happens if you change the master-table-attributs in one row. What then with the master-table-attributs in other records?
    About the non-database-items:
    There is a property "Lock record" at item-level, if you set that to Yes, the record will be marked as changed also if the item is a non-db-item.
    Another possibility would be to create a db-view with your master-detail-columns so that every item is a database-item. To write back data you could use an INSTEAD-OF-trigger on the view.

  • One Master Many Detail Tables

    Does anyone know how I can use XE to create a Master-Detail Form using one master table and multiple detail tables? Currently it seems to only allow one detail table.
    Thanks.
    Pat.

    Hello,
    I created the following tables (Location, Dept, Emp ). The master table is Location Table and detail tables are emp and dept.
    I created view for emp and dept tables then I created the master detail form which was include the location table as the master and the created view as the detail.
    But I need to create 3 blocks like in the oracle developer that helps me to insert the records in 3 tables at the same time.
    Best Regards,

  • Master and Details Tables Data

    Hi all
    I have two tables one is Master table and other one is Details table.
    How to write a query to get Master as well as Details table data.
    Detail table contain more than one record for particular Master Record.
    Pls Help me.

    My version is Oracle 9i
    My Tables structures are :
    SQL> desc TFMS_CONTRACT_PRICES
    Name Null? Type
    ITEMNUMBER NOT NULL VARCHAR2(30)
    ITEMDESCR VARCHAR2(2000)
    PRICE NOT NULL NUMBER
    UOM VARCHAR2(30)
    UNITSAWARDED NUMBER
    DELIVERYPERIOD NUMBER
    COMMENTSREASON VARCHAR2(15)
    TOTALPOINTSSCORED NUMBER
    FREEDELIVERY VARCHAR2(250)
    YEAR VARCHAR2(15)
    UPDATEDBY NOT NULL NUMBER
    UPDATEDON NOT NULL TIMESTAMP(6)
    BRANDID NOT NULL NUMBER
    CONTRACTORID NOT NULL NUMBER
    ISPRICEESCALATED NOT NULL CHAR(3)
    SQL> desc TFMS_ACCESSORIES_MASTER
    Name Null? Type
    ACCESSORYID NOT NULL NUMBER
    ACCESSORYNAME NOT NULL VARCHAR2(150)
    DESCR VARCHAR2(250)
    ISDELETED NOT NULL CHAR(1)
    UPDATEDBY NOT NULL NUMBER
    UPDATEDON TIMESTAMP(6)
    CONTRACTORID NOT NULL NUMBER
    Sample Out put:
    ITEMNUMBER ACCESSORYNAME
    RT57-01-13-01 Truck ToolBoxes,Riding Sun Glass
    RT57-01-13-02 Door Guard,Maruthis
    For one item number there may be one accessory name or more than one accessory name.i need to display accessory names with delimeter(,).
    Pls help me.
    Thanks in Advance.

  • Help!The synchronization of master and detail tables

    Is there a simple method to synchronize zhe primary key of detail table with master table?

    Needin to modify a primary key column is a sure sign of a data modeling deficiency. Primary keys are generally not modified. If they contain children data, trying to modify them is not allowed by Oracle (I received "ORA-02292: integrity constraint (SCOTT.FK_DEPTNO) violated - child record found" when I tried, in 10.2). Any way to revisit this primary key, to be sure it should really consist of those columns? Otherwise, the only way I see to implement what you want is to have an "after update of ..." trigger.
    Daniel

  • C form Details table for sales order

    Hi Experts,
    What is the tsble for C form details in a sales order.
    Thanks,
    Anu

    Hi,
    The tcode for maintaing C form for sales orders is J1IUN. The table is J_1IFRDTSO.
    You can find J1IUN Under area menu J1ILN - India Localization Menu.
    Regards,
    Vinod

  • ADF Master Form / Detail editable table : how to update the table ?

    Hello,
    I'm using ADF faces with entity objects.
    Here is a simple explanation of the model :
    Table DOCUMENT --> Table LINEA DOCUMENT can have 0 or several row in the LINE table. Model is quite simple.
    I'd like to create JSF pages to create and update DOCUMENT/LINE items.
    I began with the Edit one :
    In my DataControls I have something like :
    AllDocuments
    |
    +- Id
    |
    +- Name
    |
    +-> AllDocumentLines
          |
          +- IdLine
          |
          +- ValueI created a form with the "AllDocuments" items having navigation and submit button.
    I created an editable table with "AllDocumentLines" items.
    The values are correctly filled.
    My questions are :
    - Which kind of "button" I have to add at the end of each row of the table to :
    * validate the update if "Value" changes ? I tried to drag/drop the related Create button but it stays disabled.
    * delete the row
    - Which button can I put to "Add" a new row ?
    I searched the forum but can't find answers of my problem.
    Edit: I'm using JDeveloper 11.1.1.3.0
    Edited by: Christophe on Jul 2, 2010 5:12 PM

    For creating a record drag the createInsert operation and for delete drag the delete operation - just make sure to drag the operation from the right VO in the data control palette.
    The you can drag the commit and rollback operations from the AM level - and you can change the "Disabled" properties of the buttons to false.

  • Master and Details Tables

    Hello Experts,
    While entering any transactional document, like DO or SO system enter the data in a Master Table for example in ODLN and DLN1. that is ok
    is there any other table in which system keeps the reference. for a document entered.
    Help Required.....

    Thanks for reply,
    actually I was trying to ask that other than ODLN and DLNx tables is there any other table in which system keeps the track for checking the integrity of data / document i.e. like if we have entered document 
    number 10036,
    will system keep the track of this document in any other table other than ODLN and DLNx tables ....
    help required.
    Edited by: Rui Pereira on Apr 30, 2009 2:00 PM

  • ADF Faces Query Panel: How to display master data in detail table?

    Before stating the question, here is the background:
    I've a Fusion ADF (model/viewController) app that includes 2 tables with a master-detail relationship. The master table stores error numbers and associated levels of logging severity; the detail table stores the actual message text. These need to be separate, related tables because the requirement is that message text for a given error number can vary by product release.
    Messages are added in a bounded task flow; data for the master table entered in 1 fragment, data for the detail table in a 2nd page fragment. In the app, the Entity Objects for these tables are related with a foreign key association and have a composition association. This was done because the error numbers are generated in an Oracle DB sequence, and from what i have read that is a way in a task flow to have ADF put the number generated for the master table into the related key of the child table.
    The question is this:
    I need to create an ADF query panel with a table that searches on the detail DB table. However, i also need to use a couple of fields from the master DB table in both the query and in the ADF table. In addition, I need to add the ability for the user to edit either the master or detail record for the row he/she selects in the ADF table. I know how to create a view that would display the info i need; however, i have not been able to figure out how to obtain the keys for the selected ADF table row and pass them to the task flows that would edit.
    The master table has a numeric primary key. The detail table primary key consists of a foreign key to the master key and also a release number.
    I'm new to ADF and have been struggling with how to do this: i've a workaround that is functional but too klunky to be a permanent solution. So, could someone point me to some information on how to accomplish this?
    Versions: JDeveloper 11.1.1.4, ADF Business Components 11.1.1.59.23
    Thanks for your help!

    Thanks. I tried this out, but ran into an issue in that the detail table has 2 keys - a foreign key to the master primary key, and a 2nd key that uniquely distinguishes the detail. So i tried various things centered around using the SetCurrentRowWithKey operation and trying to obtain the selected ADF table row using an EL OF #{data.<pageDef>.<Iterator>.currentRowKeyString}; however i could not get the detail record for the selected row to display.
    I did find another approach that worked - I am wondering, is there anything problematic with this approach?:
    1. Create a VO joining the Master and Detail tables, with the Detail table being updatable.
    2. Made sure the applicable attributes were defined as keys.
    3. Add a query panel w/table using this VO.
    4. Create an ADF form based on the VO, showing the updatable fields.
    5. Create a bounded task flow with the following set on the Behavior tab:
    a. Share data controls with calling task flow
    b. Always Begin Transaction
    I specifically am wondering whether "Share data controls with calling task flow" has any negative implications or gotchas to handle. The doc at http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/taskflows_parameters.htm#ADFFD1693 doesn't suggest so, but just wanted to double-check before I go down this path.

  • Multi-row insert in master-detail tables

    Hi, I'm using jdev 10.1.3.2 with jheadstart and my problem is:
    I hava a master-detail structure, both are tables and my goal is that I want multi insert (exactly 3) in master and detail table when user makes new order(some business scenario). I cannot create rows in master or detail VO by overriding create() method because its entities have complex primary keys and some part of this key is populated by the user with lov. So I set in jhs new rows to 3 and checked multi-row insert allowed but the problem is that overall I can only create rows in master table after I submit form. I want to create row in master table and fill rows in detail table, and after that I want to have opportunity to create second (or even third) row in master table and fill rows in detail table.
    thanks for help.
    Piotr

    See JHS DevGuide: 3.2.1. Review Database Design:
    If you are in the position to create or modify the database design, make sure all
    tables have a non-updateable primary key, preferably consisting of only one
    column. If you have updateable and/or composite primary keys, introduce a
    surrogate primary key by adding an ID column that is automatically populated.
    See section 3.2.4 Generating Primary Key Values for more info. Although ADF
    Business Components can handle composite and updateable primary keys, this
    will cause problems in ADF Faces pages. For example, an ADF Faces table
    manages its rows using the key of the underlying row. If this key changes,
    unexpected behavior can occur in your ADF Faces page. In addition, if you want
    to provide a drop down list on a lookup tables to populate a foreign key, the
    foreign key can only consists of one column, which in turn means the referenced
    table must have a single primary key column.
    Groeten,
    HJH

  • 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

Maybe you are looking for