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.

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

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • After mozilla firefox crashed and a restart, the Firefox Developer Edition opend - how to open the normal firefox browser ?

    after mozilla firefox crashed and a restart, the Firefox Developer Edition opend - how to open the normal firefox browser ?

    See if this works for you.
    Open up Tools > Options -> General and toggle the first preference - '''Allow Firefox Developer Edition and Firefox to run at the same time''' - to get back to your previous Aurora Profile. It will tell you to restart Firefox.
    If there's a check-mark in the box for that pref it shows the Aurora Profile, if you remove that check-mark it shows the Developer Edition Profile.

  • How to update the field ZLSPR of table BSEG

    HI Friends,
    Can anyone tell me how to update the field ZLSPR of table BSEG? I've a 700 line abap program and I should include some logic in this program to make an entry into BSEG-ZLSPR. Is there any FM/BAPI available? Is BDC a healthy approach?. My team lead do not want me to use UPDATE statement....please help.
    Thanks in advans,
    Varsha.

    Hi,
    Hi ,
    You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
    hope this helps
    Reward if found helpfull...
    Venkoji Babu.

  • How to update the ztable by using table handling function

    how to update the ztable by using table handling function
    It is very urgent ...............................
    thanks in advance

    see the  below code for the direct   ztable update
    Report  ZUPDATE_PRPS.
    tables: zprps.
    parameter: p_wbs like zprps-pspnr,
               p_value like zprps-fakkz default 'X'.
    data: wa_fakkz type zprps-fakkz.
    *START-OF_SELECTION
    start-of-selection.
    call function 'CONVERSION_EXIT_ABPSP_INPUT'
         exporting
             input     = p_wbs
        importing
             output    = p_wbs
        exceptions
             not_found = 1
             others    = 2.
    select single fakkz
      into wa_fakkz
      from zprps
    where pspnr eq p_wbs.
    if sy-subrc eq 0.
       update zprps set fakkz = p_value where PSPNR eq p_wbs.
       if p_value is initial.
         message i999(za) with 'Billing element field has been unchecked'.
       else.
         message i999(za) with 'Billing element field has been checked'.
       endif.
    else.
      message i999(za) with 'WBS element not found'.
    endif.
    reward  points if it is usefull .....
    Girish

  • How to update the merged customer information in custom tables?

    The "Setup merge Dictionary" is provided only to register APIs that would be called to update the merged information for parties.
    Is there a similar feature for the account merge?
    If anyone has any ideas of how to update the columns like customer_id, cust_acct_site_id etc. in custom tables at the end of customer merge, please let me know. Any sample code would be of great help.
    Please let me know ASAP.
    Thanks in advance,

    There is one method which I have used. The crm side uses a file called jtf_hooks_data. There is no guarantee that it will work in the future and you will have to test it. The merge program uses this sql
    'SELECT hook_package, hook_api,product_code ' ||
    'FROM jtf_hooks_data '||
    'WHERE package_name = ''ARP_CMERGE_MASTER'' ' ||
    'AND api_name = ''MERGE_PRODUCTS'' ' ||
    'AND execute_flag = ''Y'' ' ||
    'ORDER BY execution_order ';
    Your procedures have to have the same signature as the one being called. Issues the select statement on your system and see what is returned.

  • How to update the New Depreciation Area in Asset Master Data

    Hi,
    Please guide me
    How to update the New Depreciation Area in the Asset Master Data.
    Regards
    Srinivas

    Hi,
    a) The procedure is as follows:
    1. Create Depreciation area via OADB.                                                                               
    2. Activate Depreciation area via OAYZ.                                                                               
    3. Automatic opening of new depreciation are via AFBN and program  
       RAFABNEW :                                                                               
    3.1     Indicator: Leave values initial = not ticked.           
               Do not set this indicator if you want the system        
               to copy the values from depreciation area 01.                                                                               
    3.2     Indicator: Leave values initial = ticked.               
               Set this indicator if you want to open the newly created
               depreciation area without any values i.e. blank.                                                                               
    4. Recalculate depreciation via AFAR and program RAAFAR00.   
    b) Helpful notes:
    430618 (Procedure for setting up new depreciation area)                           
    301113 (Restrictions of RAFABNEW)                                                 
    421549  (RAFABNEW: Error with closed fiscal years)
    c) A documenttation you find if you enter RAFABNEW in SE38 and press the butto "documentation"
    regards Bernhard

  • How to updated the data into Database table

    Hi Guy's,
    Please help me Using Tabstrip control how to updated the related infotype records into related database table.
    Thanks and Regards,
    Sai.

    Hi Guy's,
    Please help me Using Tabstrip control how to updated the related infotype records into related database table.
    Thanks and Regards,
    Sai.

  • How to Update the oracle toad column value in table by using SSRS 2008

    Hi Team,
    How to update the oracle DB table column value by using SSRS 2008.
    Can any one help me on this.
    Thanks,
    Manasa.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to use SSRS to update data in database table. Right?
    Though Reporting Services is mostly used for rendering data, your requirement is still can be achieved technically. You need to create a really complicated stored procedure. Pass insert/delete/update and the columns we need to insert/delete/update as
    parameters into the stored procedure. When we click "View Report", the stored procedure will execute so that we can execute insert/delete/update inside of the stored procedure. Please take a reference to two related articles below:
    Update Tables with Reporting Services – T-SQL Tuesday #005
    SQL Server: Using SQL Server Reporting Services to Manage Data
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to update the data  the transparent table CKMLMV013 ?

    How to update the data  the transparent table CKMLMV013 ?
    can you please replay asap.
    thanks,
    samba

    Hi,
    if you do a "where used" search of the table CKMLMV013 you will see that it is updated in several places:
    e.g. fm CKML_ORDER_CONNECTION_UPDATE
    Have a look at those places where the table is updated.
    Best regards.

  • Very Urgent.......How to update the database values through OAF pages ??

    Hi All,
    I am developeing some self service application thru Oracle Application Framework(OAF). There I am fetching 5 attributes from the database and displaying those attributes in my main page Table Region. Now my requirement is i want to edit that exising values & again i want to store it in the databse while clicking the update button. so first i have created one VO for fetching the values from the database & i make one Table Region in my main page along with 5 MessageTextInput field.. & i mapped that VO's attributes to my textbox.Now i can able to fetch & display the values inside the text box while rendering the page.
    But I dont know how to update the values in the database. Caz in my VO I have only select query. So anyone plz send me the code for update. And also plz let me know where to insert that code..whether (CO or AM or EO)..it is very urgent.
    Thanks
    srini

    David,
    Note that the default JavaBean datacontrol does not allow create/remove and transaction operations. These apis are not implemented for the JavaBean datacontrol.
    You may re-initialize the rowsetiterator, by calling ((oracle.adf.model.generic.DCRowSetIteratorImpl)iteratorBinding.getRowSetIterator()).clearCurrentData().
    This will force the RSI to refresh it's data via the named-accessor again.

  • How to update the condition price in the sales order for all the items

    Hi,
    How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
    Thanks,
    Balaram

    Hi,
    There is a change in the requirement.
    Scenario:
    I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
    For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
    Thanks.
    Balaram

Maybe you are looking for

  • My iphone 4s is over 2 years old and I need to replace the battery. How much will this cost at an Apple store?

    I have an iphone 4s that is  over 2 years old. The phone's battery is no longer able to hold a  charge for an acceptable length of time.  Assuming I need to replace the battery, how much will this cost at an Apple store?

  • 404 error while accessing the blob in cdn

    Hi Team, I have a public container where I store my blob via code. I am able to access the item from the container via tha blob url. But when I try to access the blob via CDN I get the 404-Not found error. I have set up the CDN 3 days back. When I wa

  • Help me with my problem, please?

    I'd been using a simple program called Paint.net to do some simple designing, just messing around and stuff. So I am really familiar with the program. However, I had to design a t-shirt design for a project for printing. I designed all of it with Pai

  • Kensington Portable security lock

    I just bought the Kensington portable lock for my macbook pro and i am having trouble setting the code and connecting it to the securtiy port. Is this lock compatible with the mac or is there a trick to setting and securing it?

  • ALV to PDF conversion with a page break

    Friends,     I have a need where I need to print ALV in PDF format with a page break. Any advice on how to do this ? Is it possible to print in PDF format in ver ECC 6.0 without using OTF conversion routine ? I tried to create a new device type PDF g