ADF 10.1.3.4: 'losing' newly created row in master-detail-detail.

Situation:
I have a page in JSF/ADF with the following set up.
Top-half of the page is a table.
Underneath the table is on the left a selectonelistbox component and next to it on the right a tabbed section.
The table -> selectonelistbox relation is master-detail.
The selectonelistbox -> tabbed section is master-detail.
So when you change the selection in de seletonelistbox the data in the tabbed section changes.
One of the functions in a tabbed section is a createinsert.
step1: select value '1' in the selectonelistbox.
step1: a new row is create (with createinsert). there is no commit yet, the row is in the entity cache.
step2: change the selection to '2' in the selectonelistbox.
step3: create a new row (with createinsert).
step4: commit the changes.
We see that only the row of the current row is committed. The newly created row under value '1' has disappeared.
There are no warnings/exception thrown.
How can I commit all newly created rows?
It must be possible to created several new rows, before committing if it is possible.
Some specs:
JDeveloper 10.1.3.4.0
using the embedded OC4J server
JDK
Thanks,
Goldhorn

Which technology are you using?

Similar Messages

  • ADF JS API methods not working for the newly created rows in table

    Hi All,
    We need to make sure the focus goes back to the newly created rows first column's first component.
    Used findComponent and findComponentByAbsoulteId and even hard coded the id, but still the methods are returning null.
    Even tried ADFRichTable.getRowKey(index), by passing index as 0 for the first row, still the method is returning null.
    Tried ADFUITable.findComponent(Object scopedId, Object rowKey), but unable to pass client side rowKey as the above method is returning null.
    All our requirement is to make the focus back to the first row's component when the user clicks on the cancel button instead of save button. Appreciate your help. Thanks.
    P.S.: Rows will be created using CreateInsert method.
    JDEV Version: 11.1.2.0.0 and Table is in a region and we are using UI Shell Tab Template to launch regions.
    Raja.
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM

    Thanks Frank,
    But some times even we use findComponentByAbsoulteLocator, its not working. So i followed the approach where you will get the rowID like the below and construct the client ID and pushing the JS to client using Service class. And it worked.
    String rowId = table.getClientRowKeyManager().getClientRowKey(facesContext, table, rowKey);
    But i am worried that even though we hard coded the client and executing the js function from the command button by keeping client listener's type as click, the focus is not setting. And i tried giving the id as tableId[rowIndex]:componentId in the findComponentByAbsoulteLocator.
    Can you let me know is there another way to make focus only using JS on click of command button, where the button does not have any action or actionListener.
    Raja.

  • Retain newly created rows after page navigation.

    Hello,
    I have designed two pages. On First page I have to create multiple rows and to assign some values I need to open another page.
    The problem is once we create new rows on view object and if we redirect to any other page its view object is automatically executed and newly created rows will not be retained.!
    I have tested redirection using both methods with retain AM to True, but its not working.
    pageContext.forwardImmediately("page",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    pageContext.setForwardURL("page",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    Please suggest something....
    Thanks,
    Swati

    Hi Krithika, Thanks for replying...
    Krithika wrote:
    If you want to create new row in table and commit to the db, please find this sample:
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html
    This is done automatically when user clicks on commit button on ADF create form, rows gets commited in database.
    I just need to display these newly created rows on ADF table on the same page below commit button.
    Can you give more details about your usecase..?
    What happens when the same user comes back after closing the session? Do you want still show the blank page/table with out any previous data created by the same user..? If yes, what happens to the previously stored data..?
    Basically, give a brief note on what you are trying to achieve..?
    When user comes back to this page after closing this session, it will not show any rows in the ADF table.
    user will enter new values to create new rows and this time again on click of commit button the newly row created for this session should be shown.
    The previously created rows are already commited to database table
    Hope I am able to explain the requirement. Please let me know for any questions on requirement
    Regards,
    Tanveer

  • Setting focus to inputText of newly created row in af:table

    Using Jdev Ps4
    Simple use case:
    I have an af:table with a few columns and a createInsert button.
    When I press the createInsert button, a new record is added to the table.
    How can I set focus to the first inputText of that newly created row?
    I have been looking for a solution online but all the examples online tell us how to set focus to components that already exist and you know the ID of. With the newly created row, you don't have the ID so you cannot set the focus.
    In this topic (which is quite old...) https://kr.forums.oracle.com/forums/thread.jspa?threadID=643924 Frank Nimphius explained that it would be difficult and he would pass it on to the developers.
    I haven't found any information if there are some enhancements in this area to make this work...
    I tried with using plain old javascript by looping through the dom structure but had no success in doing so...
    Thanks
    Yannick
    Edited by: Yannick Ongena on Apr 2, 2012 8:38 AM

    Yannick,
    can you check this?
    how to get focus on newly created row in table?
    ~Abhijit

  • The newly created row cannot be found with another view

    I'm building a JSP client based on BC.
    I have 2 views based on the single entity.
    I'm creating a new row with one view and want to edit the corresponding row with the other view without intermediate commit.
    However, the last view cannot find the new row.
    For the purpose I get the newly created row's key and trying to find the row at the other view by it's RowKey with the tag <jbo:Row>. Now I have an exception:
    oracle.jbo.JboException: Row was not found using request parameter ...
    Can someone give an advice, please?

    Hi,
    I was a little uncertain. I do not have any view associations in this case.
    I've tried to use " .setAssociationConsistent(true)" - dosen't help.
    I've just changed the standard wizard-generated Browse-Edit UIX/JSP form in such way that I'm using one VO for the browse-table jsp, and some other VO for editing jsp. The editing jsp is by itself divided into a number of tabs.
    Every tab of the editing jsp is based on a specific VO and all of the VOs are based on the single Entity Object to the one table.
    While I am editing the existing records in the table everything goes right, but if I create a new row via the browse page and then try to edit it, I have the exception:
    " Row was not found using request parameter: .... " This thread is continued in another post
    Re: ORA-03113 end of file on communication channel error
    There is a bug with hanlding of viewlink-consistency and DBsequence in Jdev 9.0.2 that leads to this issue as discussed in the other thread.

  • ADF Table sorting not working for  newly inserted rows

    Hi,
    I am using Oracle Jdeveloper 11.1.1.6.2
    I am trying to sort the table after inserting the mew rows using ADF Table UI sort option, But the newly inserted rows are not getting sorted.
    The code i am using to add a row is:
            ComplianceLibraryAMImpl am = getDataControl();
            EmKeywordVOImpl rep = am.getEmKeywordVO1();
            NameValuePairs nvp = new NameValuePairs();
            nvp.setAttribute("KeywordName", keyword);       
            Row row1 = rep.createAndInitRow(nvp);
            rep.insertRow(row1);After this addition we are doing ppr on the table and then trying to sort using sort icon in table.
    But the newly added rows are not taking part in sort.
    What am i missing?
    Thanks,
    Tripuresh

    This is the expected behavior. Check bug 9109010 - newly added and unsaved rows don't participate in sorting as per design. Try saving the rows and then sorting.
    Regards,
    Aditya

  • How to make sure newly created row is editable by default programatically

    Hi All,
    I got a problem with creating new row in single row selection table with on click property enabled for editing mode.
    Function requirement is like: I have Mater-Detail. While creating detail lines, line has to be created with default line number. Eg: Master1 can have line numbers 1,2,3..etc, Master2 can have 1,2,3.. etc.
    In applicationTable for Pattern Create
    Action Listener=”#{CreateAndEditFiscalDocumentBean.createChargeLine}”
    In Table rowSelection="single" and editingMode="clickToEdit"
    Here the problem is:
    When I first come to the page,the first row in the detail table is editable and could able to edit any other row on click . But When I create a new row , I got a new row with line number but it is not editable.
    I want it to be editable on create and previously selected row should be read only. I have tried several ways but nothing is working.
    My observation is, when I call the bean method in Action Listener of application Table in create patteren, I am facing this problem. If I do not call this method, it is working as expected. But I need to call this method because it has to create row with line number.
    I am putting below two scenarios which I have tried. I am not successful in the both the scenarios.
    Could you please help me in achieving expected functionality.
    Many thanks in advance for your time and help.
    Scenario 1:
    Jsff:
    ApplicationTable: createActionListener="#{CreateAndEditFiscalDocumentBean.createChargeLine}"
    Table: rowSelection="single", editingMode="clickToEdit"
    Bean Code:
    public void createChargeLine(ActionEvent actionEvent) {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExpressionFactory factory = fc.getApplication().getExpressionFactory();
    MethodExpression method=factory.createMethodExpression(fc.getELContext(),"#{bindings.createChargeLine1.execute}",String.class,new Class[]{});
    method.invoke(fc.getELContext(),null);
    AMImpl Code:
    public void createChargeLine() {
    ViewObject itemChargeVO = this.getFiscalDocumentCharges();
    ViewObject fiscalDocumentHeaderVO = this.getFiscalDocumentHeader();
    Row toRow = fiscalDocumentHeaderVO.getCurrentRow();
    Row newRow = null;
    Row latestRow = itemChargeVO.first();
    Integer line_number = new Integer(0);
    int numberOfItemLines = 0;
    if (latestRow != null) {
    RowSet rs = itemChargeVO.getRowSet();
    numberOfItemLines = numberOfItemLines + 1;
    if (rs != null) {
    line_number =
    (Integer)rs.first().getAttribute("LineNumber");
    while (rs.hasNext()) {
    numberOfItemLines = numberOfItemLines + 1;
    Row row = rs.next();
    if (line_number.compareTo((Integer)row.getAttribute("LineNumber")) <
    0)
    line_number =
    (Integer)row.getAttribute("LineNumber");
    line_number = line_number + 1;
    newRow = itemChargeVO.createRow();
    newRow.setAttribute("LineNumber", line_number);
    itemChargeVO.insertRowAtRangeIndex(numberOfItemLines + 1, newRow);
    itemChargeVO.setCurrentRow(newRow);
    } else {
    newRow = itemChargeVO.createRow();
    newRow.setAttribute("LineNumber", new Integer(1));
    itemChargeVO.insertRowAtRangeIndex(0, newRow);
    itemChargeVO.setCurrentRow(newRow);
    Scenario 2:
    Bean method changes:
    public void createChargeLine1(ActionEvent actionEvent) {
    Row newLine = ApplicationsTableEventHandler.getInstance().processCreate(getChargeTable());
    newLine.setAttribute("LineNumber", new Integer(1));
    }

    Hi Jerry,
    Please refer to the following blog and check whether you followed all the steps:
    /people/harikrishna.sunku/blog/2008/12/18/work-center-and-navigation-link-creation-in-crm-2007
    You basically need to ensure that your custom work center is assigned to a navigation bar profile; and this navigation bar profile is assigned to your business role.
    Regards,
    Shiromani

  • Editable ALV in OOPs : default value for newly created rows

    <b>I have created editable ALV using OOPs. </b>
    But my requirement is while creating new rows in ALV, one column value should be filled with some default value automatically(as soon as I press create row icon on toolbar)
    Thanks.

    HI HaReSh
    <b>refer to this code below.hope it might help u.</b>
    *& Report  ZTESTDEMO_INTERACTIVE_LIST_2
    REPORT  ZTESTDEMO_INTERACTIVE_LIST_2.
    TABLES: MARA,MARC,MARD.
    * internal table itab_mara 3 fields matnr, ernam,mtart
    DATA: BEGIN OF ITAB_MARA OCCURS 0,
    MATNR LIKE MARA-MATNR,  " material number
    ERNAM LIKE MARA-ERNAM,  " name of person who create
    MTART LIKE MARA-MTART,  " Material Type
    END OF ITAB_MARA.
    * internal table itab_marc 3 fields matnr, werks,lvorm
    DATA: BEGIN OF ITAB_MARC OCCURS 0,
    MATNR LIKE MARC-MATNR,
    WERKS LIKE MARC-WERKS,  " Plant
    LVORM LIKE MARC-LVORM,  " Flag Material for Deletion at Plant Level
    END OF ITAB_MARC.
    * internal table itab_mard 2 fields
    DATA: BEGIN OF ITAB_MARD OCCURS 0,
    MATNR LIKE MARD-MATNR,
    LGORT LIKE MARD-LGORT,  " Storage Location
    END OF ITAB_MARD.
    SELECT-OPTIONS: S_MTART FOR MARA-MTART.
    INITIALIZATION.
    S_MTART-LOW = 'HALB'.
    S_MTART-HIGH = 'HAWA'.
    S_MTART-OPTION = 'BT'.
    APPEND S_MTART.
    START-OF-SELECTION.
    SELECT MATNR ERNAM MTART FROM MARA INTO TABLE ITAB_MARA WHERE MTART IN
    S_MTART.
    PERFORM DISPLAY.
    TOP-OF-PAGE.
    WRITE:/2(15) 'MATERIAL NO',20(20) 'CREATED BY',45(15) 'MATERIAL TYPE'.
    FORM DISPLAY.
    LOOP AT ITAB_MARA.
    WRITE:/ ITAB_MARA-MATNR UNDER 'MATERIAL NO' HOTSPOT ON,ITAB_MARA-ERNAM
    UNDER 'CREATED BY',ITAB_MARA-MTART UNDER 'MATERIAL TYPE'.
    HIDE: ITAB_MARA-MATNR.
    ENDLOOP.
    ENDFORM.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    SELECT MATNR WERKS LVORM FROM MARC INTO TABLE ITAB_MARC WHERE MATNR =
    ITAB_MARA-MATNR.
    PERFORM DISPLAY1.
    WHEN 2.
    SELECT MATNR LGORT FROM MARD INTO TABLE ITAB_MARD WHERE MATNR =
    ITAB_MARC-MATNR.
    PERFORM DISPLAY2.
    when 3.
    sy-lsind = 0.
    ENDCASE.
    FORM DISPLAY1.
    LOOP AT ITAB_MARC.
    WRITE:/ ITAB_MARC-MATNR HOTSPOT ON, ITAB_MARC-WERKS,ITAB_MARC-LVORM.
    HIDE: ITAB_MARC-MATNR.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    FORM DISPLAY2.
    LOOP AT ITAB_MARD.
    WRITE:/ ITAB_MARD-MATNR, ITAB_MARD-LGORT.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    regards
    ravish
    <b>plz reward for useful ans</b>

  • Cursor doesn't focus to the newly created row.

    I am using JDeveloper 11.1.1.4 . Whenever I create a new row in adf table, the cursor  doesn't focus to the new row.It always focuses to the last row which clicked before adding the new row.

    As Timo said, it would depend on how you create new row.
    Usually this is how, I would do :
    http://adfbugs.blogspot.com/2010/04/inserting-new-rows-as-last-row-of-table.html

  • How to create Report in master and detail

    I have two table
    1. order1
    2. order2
    table order1 fields:- SRNO, PPNO,SUBPP
    table order2 fields:- SRNO, SFILE, INVOICE
    table order1 I created in tabular and table order2 like form.
    order1 has 4 record and order2 has 1 record
    like
    ORDER1:-
    srno, ppno, subpp
    1 10 A
    1 10 B
    1 11 A
    1 12 C
    ORDER2:-
    srno, sfile, invoice
    1 102 102-06-2006
    i have input data in this shape can you help me how can I print data same as above.
    There is no relationship .
    Message was edited by:
    Kamran

    Hi Kamran
    take 2 groups in the datamodel .place one below the other in the layout.
    Thankyou
    [email protected]

  • How to know which row is newly created in the table

    Hi all
    i have one classic table with a button to add new row.
    when page renders initially it displays some record .Here user can either update the previously existing record or may create new ones .
    after adding one more row when users submits it , in back-end i need to go thru all the rows in the view to do some validations .but i need to insert newly created row using API. how can i know which row haas been newly created,
    pls help

    you can know which row is new using different techniques at different places, depending where you want to do it.
    1. In AMImpl: if the PK column attribute of the row does not have a value, then you know this is a new row.
    2. In EOImpl: insertRow will be executed only if it is a new row.
    3. In Pl/SLQ package (if being called from EOImpl): You can check the creation_date or OVN for the row and determine if this is a new row.
    4. You can use the method mentioned in this thread
    Row Status Question
    Thanks
    Tapash

  • Editable alv using OO ALV(newly edited row values are not updating )

    Hi friends,
    i am facing a problem. i am displaying an output alv  using OO ALV.
    i am creating a new row and validating the newly created row values and changing if it is not according to the criteria. but the newly edited values are not capturing in method
    pr_data_changed->mt_inserted_rows as it contains values only entries entered for the first time .
    i am not getting the newly edited values in it.
    please do the needful.
    Thanks and Regards,
    srinivas

    Hi!
    to rectify the problem in the Code.....
    You can Go through this program....for changed values....
    https://wiki.sdn.sap.com/wiki/x/AwBIBQ
    Regards.

  • Newly inserted row in the Essbase isnot displaying with page refresh in ADF

    Hi,
    I have a pivot table in my UI page and I have a option to create new Measure in Essbase.
    I am inserting new Measure in Essbase at runtime from Java Bean and refreshing the pivot table.
    The newly added Measure is not displaying after refreshing the pivot table but when I reopen the page the new measure is displaying.
    Could you please let me know how can I display the newly added Measure in ADF Pivot Table with refresh.
    Thanks,
    Swathi G

    Hi Timo,
    Yes, I mean root application as the direct data control.
    This has been working earlier and the difficult part is that it is still working fine for two of the screens. The screen in which it works are those which does not have master detail relationship in them.
    We are using PL/SQL to create the new row as it involves using many database functions / packages  to populate the base data for the freshly created row. which we use to get to the screen for further changes and commit.
    We have been using this way for log time and it worked fine.
    Sanjay Chatterji
    Message was edited by: SChatterji

  • Problem in Tax Exexpiton for Newly created Wage type

    Dear Gurus,
    I Have tried to create a  New Wage type for Allowance with Exemption IT582 created Amount. In pay roll results the IT582 Exemption amount is coming. In Wage type /132 Monthly Exemptions it says the Entire Amount which it created for the Particular wage type.
    Example:
    Newly created wage type 1010 : 10,000
    Exemption Created : 6000
    Payroll Results:
    /132 : showing 10,000+800 Conveyance
    MCAX : 6000 - Custom Allowance
    MCMX :6000 - Custom Allowance.
    By the above result the Gross value reduced to -10,000.
    Please suggest me to complete this process.
    Thanks in Advanc.
    Anbu.

    Hi Anbu,
    I am lil bit confused abt the explanation u had given. anyway i will explain the configuration n step u need to perform-
    configure a wage type in V_T7INA9 and V_T7INT9 view first.
    maintain the amount, which employee has submitted as claim.
    then pass the value in infotype 8 or 14 or 15 through the same wage type u have configure.
    now minimum of 3(entry in V-T7INT9, infotype 8 or 15 or 14 and entry maintained in infotype 582) will b the exemption amount.
    Regards,
    Praveen
    Edited by: Praveen-Sapping in SAP World on Mar 26, 2009 10:11 PM

  • I am trying to transfer photos from my iPhoto library to a newly created one.

    I want to know if I'm doing this the easiest way.  I have an iPhoto library with 45,000 photos.  I just created a new library and want to take some of the photos and put them in the new library.  I created a folder on my desktop where I exported the event, switched libraries and imported to the newly created iPhoto library.  Is the is right steps to take or is there an easier one.

    That will work but there is a more efficient method.  Use the paid version of  iPhoto Library Manager to copy Events from the old library into the new library.  This will also copy any edited versions, keywords, titles, places, etc.
    OT

Maybe you are looking for

  • How to use the Cross Reference fields in P4P

    I have been receiving questions related to the Cross Reference section from many different customers and partners. This post represents my attempt to describe the Cross Reference Section and the Equivalent Numbers stored within. Identity A term that

  • Command used to know if Oracle is 64 bit or 32 bit in Unix

    What command would you use to tell if Oracle is 64 bit or 32 bit in Unix Systems.?? What command would you use to tell if Solaris running on 64 bit or 32 bit.?? Thnx Sravan

  • No Duplicate file?

    I thought I remembered a contextual duplicate command when I was using the SDK in eclipse.  Is there not a duplicate command in Flash Builder?  Thanks.

  • All N-Series themes request

    Right, i've looked...and looked...and looked everywhere for all the preinstalled n-series themes that will work on the N80, but am not having much luck. Basically, i'd like all the official Nokia themes that either came pre-installed on the phones, o

  • Intel HD Drivers will not install on X220 W7 32-bit

    When I try to install latest Intel HD Driver v8.15.10.2342 32-bit (http://support.lenovo.com/en_US/downloads/detail.p​age?LegacyDocID=MIGR-77037) I get following error  This computer does not meet the minimum requirements for installing the software