New row in table not refreshing corresponding form

I have a form in a detail item, that adds a new row to a table, there is another form in a detail item (both in an accordian) that is supposed to display the information of the selected row from the table. This works fine for existing rows in the table.
But, after a row is added to the table by the first form, and I click on that new row in the table, the second form (for displaying the row's info), isn't showing the new row's data/information.
Both forms and the table are being driven off of the same VO.
Any ideas?
Thanks,
Joel

Strong,
You cannot generate this, but it is very easy to change post-generation. Look for the dataObjectNotFound forward and change it so that it forwards to the table page instead of back to the find page.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • Af:table not refresh properly when corresponding ViewObject is repopulated

    I have a table T which is binding to a ViewObject VO.
    The initial population is working fine, but I met two problems while trying to manipulate the table data.
    Problem1:
    I have a ADD button which will add a new row to table T. The new Row is a empty Row, only Serial Number field is populated, all other fields (F1, F2, F3)are set to null by default.
    Result: the row is added, Serial Number is showing properly, but F1, F2 and F3 are showing the same value as the row above. At this moment, the respective VO entry of F1, F2 and F3 are still null. When I click a random row in the table, then the ValueChangeListeners of F1 and .etc are triggered and the screen value goes into the VO.
    Problem2:
    For each row I have a link, which will trigger a popup P. Some operation will be done in P and as the result, current row entries will be modified.
    Result: the VO entries are modified, but didn't reflect to the table completely. Again the field F1, F2 and F3 are not updating, still carrying the old data. This time, click other row won't trigger the ValueChangeListener. Instead, when you click the link of the same row, the new data are finally shown in the field F1, F2 and F3.
    Notice that simple refresh the table won't help(AdfFacesContext.getCurrentInstance().addPartialTarget(T)) in this case.
    F1 is a af:selectOneChoice, F2 and F3 are customized text input field.
    Any hint would be appreciated.

    Hi, the add function is purely add a new row into the vo:
    public void addRowActionListener(ActionEvent actionEvent) {
    if (ownerAdministratorDetailsHelper.getTableVO() != null) {
    ViewObject tableVO = ownerAdministratorDetailsHelper.getTableVO();
    OwnerAdministratorTableVORowImpl rowImpl =
    (OwnerAdministratorTableVORowImpl)tableVO.createRow();
    rowImpl =
    initializeNewRow(rowImpl,
    ownerAdministratorDetailsHelper);
    tableVO.last();
    tableVO.next();
    tableVO.insertRow(rowImpl);
    tableVO.setCurrentRow(rowImpl);
    the initializeNewRow method does nothing but set initial value for each entry in the new VO row.
    For B the pop-up is using a different taskflow, and depending on that taskflow's output when I click ok, I will repopulate the VO of the selected row accordingly.

  • Inserting new row in Table in 11.1.2 from 11.1.1.3 not rendering table!!!!!

    Hey Guys, my status might say noob but i am well seasoned in ADF. We migrated from 11.1.1.3 to the new JDEV 11.1.2. We are doing a test run before we commit to it.
    I noticed the following:
    We have master detail forms that work flawlessly in 11.1.1.3 when we ran the app under 11.1.2 we noticed that any time you try to add a new row to a table the table does not render. The server logs show the action going through and the count goes up one but the table is not rendered anymore it disappears!!!!!!!!!!!!!!
    Now all of this was imported from the 11.1.1.3. all of our tables that have createInsert actions on them are doing this.
    If i drag the tables again and set them up from scratch it seems to work fine. Our issue is we have a good 300 of these tables in different panels and panel collections. we have to do all of that work all over again.
    No errors show in the log. IS THIS A BUG???????????????
    UPDATE: REFRESHING THE PAGE using the Browser Refresh Button Will show the new ROW....... THIS IS NOT GOOOD!!!
    Edited by: user8333408 on Jul 7, 2011 9:23 AM
    Edited by: user8333408 on Jul 7, 2011 9:24 AM
    Edited by: user8333408 on Jul 7, 2011 10:08 AM

    Thanks for the reply.
    The Project was in version 11.1.3 before I migrated. I had the issue above so I migrated to 11.1.1.4 then to 11.1.1.5 then to the New GREAT 11.1.2 to go by the matrix of support The issue is still there.
    Basic Page layout:
    SEARCH-MASTER-PANELTABBED LAYOUT (Hold all the CHILDREN RECORDS)
    PANEL TAB is made of ; SHOW DETAIL ITEM- PANEL COLLECTION- TABLE.
    the panel collection has a toolbar with 2 buttons in it.
    My issue varies:
    Hit create insert==> record count goes up one but the table does not render (it goes all blank even if records existed in it)
    Hit undo budo ==>table still not rendering. (click next on master record then click previous to come back, the table renders correctly.)
    other tables do the following:
    Hit Create insert == > table shows normally and I can enter new record.
    Hit undo ==> table count goes down but table does not render at all anymore.
    for this issue i noticed if i set cache results to false the table works after hitting undo
    IF I CREATE A NEW SHOW DETAIL ITEM and put exactly what the other tabs have in them and use the same layouts and buttons the new table works great!!!!!!!!!!!!???????????????????? WTF?!?!?!?!
    NO ERROR MESSAGES even at finest level are thrown.
    I HAD NO ISSUES IN THE PREVIOUS VERSIONS OF JDEV IS THIS A JSF 2.0 BUG????
    BY THE WAY JDEV 11.1.2 sometimes CRASHES or Hangs when viewing the Binding of Page when you click on Binding straight from the Design view. I have to open the Binding Page separate to view it. FYI
    Edited by: Nottallah on Jul 11, 2011 9:48 AM
    Edited by: Nottallah on Jul 11, 2011 9:51 AM

  • Tabular Form - new row at top not working

    I'm trying to add a new row to the top of a tabular form (not manual) vs the bottom using Denes example - http://apex.oracle.com/pls/otn/f?p=31517:215 but it's not working. I absolutely need the records to sort on the date and time, but when I add a hidden column and sort it in descending order, then sort the date and time both in descending order, it doesn't sort correctly. I tried using the primary key field of the table as the hidden column, sorting nulls first, but the new record opens at the bottom (If I have "sorting nulls first" selected and at the time a new row is added the primary key field is null, why doesn't the new row open at the top?). I added a new field (date field with timestamp) to the query, then deselected "show" in the column attributes...that didn't work. I then selected "show", and changed the tabular form element display as to "Hidden", but then I got an error when I clicked "Add New", and I also added a column to my query via apex_item.hidden but no luck there either. What's the best way to go about this, but still maintain the date and time sort?
    Thank you,
    Tammy

    We did that. It didn't resolve it...
    Also, I compared the images directory from the complete apex 4.1.1. installation and compared it to patch 13331096 (latest 4.1.1 patch). They are identical.
    Any other ideas I can try out?

  • Problem with deleting a new row in table

    Hi
    I'm using JDev 11.1.1.2.0
    Please someone tell me if he/she experience the same issue:
    - I have an simple entity with PrimaryKey other than RowID. I have a ViewObject on top of the Entity.
    - From this view I create Editable table and add createInsert and Delete buttons.
    This is one of the most common scenarios.
    Now when I click createInsert a new blank row is added to the table. I enter it's primary key (because is mandatory) and move selection to some other row (let say X).
    When I go back and select my new Row and press Delete -> it is not deleted but the row X is deleted.
    This is because the table is not refreshed and it cant select the new row.
    How can I deal with this problem?
    Thanks
    Angel

    I tried with adding my selectionListener method like this:
            Object next = selectionEvent.getAddedSet().iterator().next();
            Object prev = selectionEvent.getRemovedSet().iterator().next();
            System.out.println(prev + " " + next);      
            DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding iter = (DCIteratorBinding)bc.get("TestDopSyotvIterator");
            FacesCtrlHierBinding object1 = (FacesCtrlHierBinding)bc.get("TestDopSyotv");
            FacesCtrlHierBinding.FacesModel collectionModel = (FacesCtrlHierBinding.FacesModel)object1.getCollectionModel();
            collectionModel.makeCurrent(selectionEvent);I add new row, enter data and change selection. Then the system.out prints the right keys of the rows.
    But when I go back to the new added row, the system.out prints "null" for the "next" value (that means the rowKey was lost).
    Any ideas how to fix this?

  • ADF Popup for adding a new Row in  table

    Hi All,
    I have VO which is rendering as table on my jsff.I created a button of createInsert to add a new row and after commit it saves the values in Table in DB.
    Works abst fine.
    Now i want to change this feature to that when a New Row should be Added, a pop up should appear in the format of a form, and at the click of OK it should save the data and on Cancel go back to Page.
    What i did was i added a pop up, in the pop up body i again dropped my VO as a form and added a dialoglistener to the pop up which commits on click of OK and Rollback on click of Cancel.
    I am not getting any exception but The Db is not modified with my entries.
    So its simple that i am commiting but nothing is changed till that time.
    How can i get the Task done?????
    Regards
    User

    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf
    insert operation using popup
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html
    Edited by: Erp on Oct 20, 2011 6:47 AM

  • While creating a new row in table,the total data present in table is coming

    Hi,
    From search page,i click add button,it goes to next transaction page.In transaction page i drag and drop one VO in table and in form also.But in that transaction page,The table is coming with data and a new row is also able to insert.But i don't want the previous data whatever present in table in create a new row time.Please give me the solution.
    Thanks in advance
    Sravanthi

    Not sure I understand what you are trying to do.
    If you have a table and a form based on the same data on one page you see the already existing data in the table. If you don't want to see the existing data in the table while entering a new row, the simplest solution would be to
    a) hide the table after the use hits create new row or
    b) navigate to an other page which only shows the form
    Timo

  • Add new row in table between two rows - OATableBean

    Hi,
    I have a requirement where I need to add a new row between two rows. Lets say I have a table with 5 rows. I am envisioning having an icon (table switcher) on the row #1, which when clicked will insert/create a new row between rows #1 and #2 like #1.5, something that can be achieved in core forms. In core forms, when we click the add button, it immediately creates a new row before the current row ( and pushes other rows down). Is that possible with OATableBean. Please let me know if you have any ideas.
    Thanks,
    Ravi.

    Hi,
    I used following code to insert the row in the end
    public void createNewRow()
    XXEGASRLinesVOImpl vo =getXXEGASRLinesVO1();
    Row row1 ;
    int i;
    Row row[] = vo.getAllRowsInRange();
    row1 = vo.createRow(); //vo.createRowSet("10");
    vo.insertRowAtRangeIndex(row.length,row1);//.insertRow();
    row1.setNewRowState(Row.STATUS_INITIALIZED);
    Check if it works for you, you have to modify it to meet your requirement.
    Regards,
    Reetesh Sharma

  • Insert new row in table

    hi,
    im using aqualogic dsp2.5 . i have a requirement wher ei have to insert a new row in the table through data services. i tried the method executeUpdate() but i got an error saying this function is not supported. is there any method to insert a new row in a table through data services.
    thank you in advance,
    rahav.

    http://e-docs.bea.com/aldsp/docs21/appdev/ejbclt.html#wp1083367
    queryPlansDataServices.customer.CUSTOMERDocument customerDocument= queryPlansDataServices.customer.CUSTOMERDocument.Factory.newInstance();
    queryPlansDataServices.customer.CUSTOMERDocument.CUSTOMER customer=customerDocument.addNewCUSTOMER();
    customer.setLASTNAME("KAY_99");
    customer.setFIRSTNAME("JOHN_99");
    customer.setCUSTOMERID("CUSTOMER_99");
    customer.setCITY("SAN JOSE");
    customer.setCUSTOMERSINCE(Calendar.getInstance());
    customer.setEMAILADDRESS("[email protected]");
    customer.setTELEPHONENUMBER(new BigInteger("4085708612"));
    customer.setZIPCODE(new BigInteger("95131"));
    customer.setSTATE("CA");
    customer.setSTREETADDRESS1("2413 N First St");
    customerDs.submit( customerDocument );

  • Navigating to new row in table view

    Hi,
    I have a table view which displays only 10 rows in one screen. When there are more than 10 rows, links are displayed to navigate to other pages. If 'new' button is pressed, a new row is created at the end of the table. If there are multiple pages and user presses 'new' when she/he is in the first page, the user cannot view the new row until she/he navigates to the last page. My problem is, I need to automatically navigate to the last row where the new row is displayed. How can I do that?
    Regards,
    Rohan.

    Hi Rohan,
    I thought that this could be achived by setting the row index to be focussed to the attribute 'selected_index' of the table view. But this was not working when I tried in debugging.
    Easier option will be to insert a new row at the starting of the table view.
    Most of the standard views work that way.
    Regards,
    Masood Imrani S.

  • Adding new rows to table - using TableRowSorter & RowFilter

    Hi all,
    I have a table where the user can add new rows by selecting a JButton. I have added a text box which allows the user to search for a String value and this filters the table contents and this is all working fine...But when I go to add a new row I get the following exception:
    java.lang.IndexOutOfBoundsException: Invalid range which seems to originate from DefaultRowSorter.rowsInsertedCould someone please give me any ideas to why this is happening, maybe the number of rows that are in the table orginally is set to x and when I add a new row the TableRowSorter is expecting that number not x + 1 which is added due to the button being pressed?
    Seems like I need to update the TableRowSorter to inform it that a new row has been added or something similar to that,
    Thanks,

    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Add New Row in Table on click of a button

    Hi All,
    I am using JDeveloper 11.1.5
    I have a af:table with a detailFacet. In this detailFacet there is an af:commandButton. On click of this commandButton I want a new row to be added to the table programmatically.
    In my Backing Bean I have following code for my button:
    public String cb1_action() {
    // Add event code here...
    //RowKeySetImpl rowKeySet = new RowKeySetImpl();
    CollectionModel tableModel = (CollectionModel)t1.getValue();
    JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
    DCIteratorBinding tableIteratorBinding = adfTableBinding.getDCIteratorBinding();
    // DCDataRow rw = (DCDataRow)tableIteratorBinding.getRowSetIterator().createRow();
    // tableIteratorBinding.getRowSetIterator().insertRow(rw);
    Row lastRow = tableIteratorBinding.getNavigatableRowIterator().last();
    Row newRow = tableIteratorBinding.getNavigatableRowIterator().createRow();
    newRow.setNewRowState(Row.STATUS_INITIALIZED);
    int lastRowIndex = tableIteratorBinding.getNavigatableRowIterator().getRangeIndexOf(lastRow);
    tableIteratorBinding.getNavigatableRowIterator().insertRowAtRangeIndex(lastRowIndex+1, newRow);
    tableIteratorBinding.setCurrentRowWithKey(newRow.getKey().toStringFormat(true));
    AdfFacesContext.getCurrentInstance().addPartialTarget(t1);
    return null;
    On running this ,I get an Exception some thing like UnsupportedOperationException.
    Please help me to find where I am wrong.

    Take a look at this post which could provide solution for your use-case:
    http://mjabr.wordpress.com/2011/07/02/how-to-control-the-location-of-the-new-row-in-aftable/
    Thanks,
    Navaneeth

  • Need to create a new row in table with same data as Primary key, but new PK

    Hello Gurus ,
    I have a table with one column as primary key, I need to create a new row in the table, but with same data as in one of the rows, but with different primary key, in short a duplicate row with diferent primary key ..
    Any ideas of how it can be done without much complication?
    Thanks in advance for your reply.
    Reards,
    Swapneel Kale

    user9970447 wrote:
    Hello Gurus ,
    I have a table with one column as primary key, I need to create a new row in the table, but with same data as in one of the rows, but with different primary key, in short a duplicate row with diferent primary key ..
    Any ideas of how it can be done without much complication?
    Thanks in advance for your reply.
    Reards,
    Swapneel Kalesomething like
    insert into mytable values ('literal for new pk',
                                           select non-pk-1,
                                                    non-pk-2,
                                                    non-pk-n
                                           from mytable
                                           where pk-col = 'literal for existing pk')

  • Drop-down list - Global binding to addInstance of new row in Table

    Global binding - from drop-down list selection to addInstance of a new row and auto-populate the first cell of the row. Can it be done, and if so, how? Thank you.

    Me again. I also need this same functionality when the form user enters data into a text field - addInstance of a new row and auto-populate the first cell of the row. I'm assuming the same functionality? Thank you again.

  • What do I need to do to default some values when a new row is created in a tabular form?

    Hello all -
    I have a tabular form which requires a few columns to be entered by the user when s/he creates a new row, but other fields in the column can just default to certain values.  How do I set those default values so that the user doesn't have to be bothered with entering any data except those that MUST be entered?
    An example:
    Form1
    REGION        COUNTRY       CITY
    APAC            JAPAN            TOKYO
    APAC            AUSTRALIA    SIDNEY
    APAC            KOREA           SEOUL
    REGION is nearly always APAC, so I want to default to that.  The user can still adjust it if necessary, but I want to set it for the user, just to save having to enter a value.  When the user clicks the the Add Row button, I want to load that value right away and leave the next two fields blank so the user can enter whatever they want.
    Thanks!
    John

    Hi,
    Go edit that column.
    Under Tabular Form Attributes you can find options to set default value
    Regards,
    Jari

Maybe you are looking for

  • 3G iPod no longer mounts in iTunes

    My 3G iPod with Click Wheel no longer appears in iTunes on any of the three computers that I have authorized -- including the brand new Mac Pro that I just installed at work this week -- even after I performed a clean install of OS X 10.4.10. I have

  • SQLJ Translation does not create profile file

    SQLJ Translation does not create profile file. After translating a small file HelloWorld.sqlj the following files are created: HelloWorld_SJProfileKeys.class HelloWorld.class HelloWorld.java Although there is a HelloWorld_SJProfileKeys.class, profile

  • Spectacular Reports in Flex

    Hello, and thank you, collectively, for all the online and community support. Flex is simply awesome! 2 months ago I was doing my first installation and I now have a pretty exciting demo... except for one thing. Reports! Reading post, after post, aft

  • Rethinking Exchange 2013 Server Setup

    Hello, I'm currently rethinking my Exchange 2013 install, I have a network of 20 users and 2 servers, one is my domain controller/file server and the other is my Exchange 2013 server.  I have setup the Exchange server as a member server and configure

  • Multicam fiasco isn't over... it just got moved!

    I was overjoyed to find out that Premiere Pro CC will bring us something Adobe users have never had until now... a multicam tool that actually works! (i.e. the painfully stupid 'auto switch back to original camera angle when playback stops' problem h