The detail part of table doesn't refresh after deleting a row

Hello!
I'm developing a Master-Detail table with some a functionality. Particularly, I want to invoke a DELETE function in the Detail part of the table.
For this purpose, I placed a Command button to the tableSelectOne component of the Detail part of the table, which stores current row key and calls another page. On this (<another>) page I created a ReadOnly form with data related to the row of Detail table, which key is stored. In addition, I added there two Command buttons. First of them is a CancelButton, which does nothing except returning to master-detail page. The second is a DeleteButton, which executes a RemoveEntity method and returns to master-detail page, too.
When I'm tried to delete in this way a row from detail part of table, I discovered, that this row is really deleted from the database, but it doesn't affect on the content of the Detail part of the table. Any kinds of refreshing couldn't aid me, only restart of the application.
Could anybody help me to solve this problem?
Thank in advance.

Hi,
I'm facing the same problem but Frank's solution doesn't fix it.
you need to define an invoke action in the binding
for your m/d page and set it into the page binding's
execute section. Then set the condition for invoking
the action to !postback. This will re-execute the
iteratorThis efectively re-executes the iterator, so the master table data is refreshed. You can see the TopLink log showing the query to the db (I'm using TopLink instead of BC). The problem is that the detail rows are queried only once and only the inserts and updates are displayed, not the deletes.
I think the problem may be related to PPR or some cache issue.
See the BC tutorial
http://www.oracle.com/technology/obe/ADFBC_tutorial_10
13/ADFBC_tutorial.pdf
See page 86 "Adding the ServiceHistories Data". This
defines a invoke action for this kinf of task. More
example code is contained in the SRDemo sampleThe tutorial doesn't contain a scenario with master-detail deleting detail records (neither the BC tutorial, nor the TopLink one) so it can't help me :(
The only solution I can think of is using a different model method (a method in the SessionFacade for TopLink) for the detail table (one that takes the master PK as parameter and retrieves the corresponding detail records) and have a selectionListener in the selection component of the master re-execute the method (passing the PK from the master table current row).
Is there a solution that doesn't require the use of a separate method for the detail?
Thanks,
Miguel

Similar Messages

  • I have an iPod 4th gen and the bottom part of it doesn't work where the space, .?123, and the go buttons are I droped it yesterday but it started doing this an hour ago I can slide to get in but it's stops working after that someone tell me how I fix this

    I have an iPod 4th gen and the bottom part of it doesn't work where the space, .?123, and the go buttons are not working I droped it yesterday but it started doing this an hour ago I can slide to get in but it's stops working after that someone tell me how I fix this

    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                              

  • How to refresh after delete the records in ALV report ?

    Hi Friends,
    How to refresh after delete the records in ALV report.
    I am deleting records in ALV report .
    After successful delete the screen should refresh.
    u201C Deleted records should not appear in the screen u201C.
    Please guide me.
    Regards,
    Subash

    Hi subhash,
    FORM user_command USING r_ucomm LIKE sy-ucomm      rs_selfield TYPE slis_selfield.
    WHEN 'BACK'.
    Refresh the internal table from the ALV grid
          PERFORM update_alv_tab.
    ENDFORM.                    "user_command
    FORM update_alv_tab .
      DATA :  e_grid TYPE REF TO cl_gui_alv_grid.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = e_grid.
      CALL METHOD e_grid->check_changed_data.
      "update_alv_tab
      CALL METHOD e_grid->refresh_table_display.
    ENDFORM.                    " UPDATE_ALV_TAB
    Then see in Debug mode is it updating or not..
    Please confirm .
    And please paste the code if you can.
    Regards.

  • HT1414 I have changed my Iphone once last year. My iphone has being playing up for the best part of 6 months. It Keeps deleting all my music of the phone. it freezes and will not allow me to turn it on or off. if i am in the middle of an app it will rando

    I have changed my Iphone once last year. My iphone has being playing up for the best part of 6 months. It Keeps deleting all my music of the phone. it freezes and will not allow me to turn it on or off. if i am in the middle of an app it will randomly shut it down and turn the phone off totally (even if it is charged.) It will not charge properly, it has to be in a exact position to charge and even then go's off and on. I thought this my be my charger but the charger works fine on another phone. it will not allow texts to come through properly and sometimes will not not let me ring people it just freezes and i have to turn it off and on a couple of times in order for it to work. it will not let me update apps and the silent button is not silent it still go's of on ringer.The keyboard will freeze up not allowing me to type anything.  It wants me to pay £126.44 for it to be repaire when i have nothing to do with why its not working!

    That is correct.
    That is the price of a replacement iphone once your iphone is outside of the warranty period

  • Table space not reduce after delete in oracle 11G

    Hi Team,
    I have a DB 11.1.0.7 on unix.
    I have execute delete tables on tablespace, but this not reduce.
    Thanks

    935299 wrote:
    What segment space management type is defined for the tablespace in question?
    MANUAL
    Then you should check out the documentation some more.
    But even if you shrink the table segement what is that going to do for the data file size?
    I don't undertand you.
    ThanksYour thread is titled "Table space not reduce after delete in oracle 11G" which implies to me that you are interested in reducing the size of a tablespace (which really means reducing the size of the underlying datafile(s)).
    So, if you shrink the size of the sys.aud$ table, will that cause the datafile(s) to become smaller? Will it accomplish your goal? What else, if anything, needs to happen?

  • I recently received an email telling me to delete and redownload the current season of Dr Who. But after deleting the episodes I see no option to redownload them

    I recently received an email telling me to delete and redownload the current season of Dr Who. But after deleting the episodes I see no option to redownload them.
    Dear iTunes Customer,
    Thank you for downloading the TV show Doctor Who, Season 7, Pt. 2. Unfortunately, the episode you received may have had issues with the audio. We have corrected the problem and a new copy is available to download, free of charge. To receive the new version, please re-download the title from iTunes.
    Before downloading the new version, remove the current version:
    1) Open iTunes on your computer.
    2) Click on your TV show library.
    3) Click the TV show to select it, and press the Delete key.
    4) Click Delete TV show and then click Move to Trash.
    To download the new version:
    1) Sign into the iTunes Store.
    2) Click Purchased on the right side in the iTunes Store under the QUICK LINKS section.
    3) Click on TV Shows and select the TV Season you want to download.
    4) Click the Cloud download icon next to the episode you wish to download.
    You will now have an updated version of the TV show in your TV shows Library.
    To delete and download the TV show from other devices, see http://support.apple.com/kb/HT2519.
    Sincerely,
    iTunes Store Team
    I only see the otion to download the most recent episode.

    That was it.  Thight I had deleted them all.
    Thanx

  • Function module to get the details (WTGBTR) from table COEP

    Hi all,
    I have to select the data from COEP table based on OBJNR, KSTAR and KOKRS.I want  WTGBTR from COEP Table.
    Right now Iam using select query.But i want to use function module.
    Can any one please tell me is there any function module to get  WTGBTR from COEP table.
    Thanks.

    This'll work:
    SELECT objnr bukrs wtgbtr
      INTO CORRESPONDING FIELDS OF TABLE gt_coep
      FROM coep
      WHERE lednr = '00'                               "<========
        and kokrs = '1000'
        AND kstar IN ('0000810001' , '0000830001')
        AND objnr IN s_objnr
        AND bukrs IN s_bukrs.
    Rob

  • Advanced Table does not refresh after database level action

    Hi,
    I have a page which has an advanced table. I update the advanced table from the page do some validations, update some DB level columns(also part of advanced table) and see that the changes are saved to the DB but the advanced table does not show the updates done at the DB level.
    I tried clearing the VO Cache and re-executing the VO but still it does not refresh the Advanced table data.
    This is very critical requirement for the client, any inputs will be greatly appreciated.
    Thanks a lot in Advance.
    Here is the code snippet from my CO's processRequest:
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAAdvancedTableBean tblbean = (OAAdvancedTableBean)webBean.findChildRecursive("recasttable");
    if(tblbean!=null)
    tblbean.setRendered(true);
    OAApplicationModule tblam = (OAApplicationModule)am.findApplicationModule("RecastLineAM1");
    tblam.invokeMethod("initQuery");
    tblbean.getTableData();
    Here is my AM - initQuery() code:
    public void initQuery()
    //clearVOCaches("RecastLineEO",true);
    clearVOCaches(null,true);
    getRecastLineVO1().init();
    Here is the VO - init() code:
    public void init()
    System.out.println("****************************executing...");
    OADBTransaction tx = (OADBTransaction) getApplicationModule().getTransaction();
    if (tx.getTransientValue("RECAST_ID") !=null)
    Number recastId = (Number) tx.getTransientValue("RECAST_ID");
    System.out.println("recastId: "+ recastId);
    setWhereClause("RECAST_HDR_ID = :1");
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, recastId);
    executeQuery();
    }

    hi,
    This is how I am calling a DB package. the package does updates on the table. once done I am issueing a commit and requerying the data, however the vo is not getting refreshed.... Can someone point out what am I missing... why is the VO not getting refreshed....
    This is very critical...
    Thanks
    Srini
    public void validateRecast(String respKey)
    OADBTransaction tx = (OADBTransaction)getApplicationModule().getTransaction();
    Number recastId = (Number) tx.getTransientValue("RECAST_ID");
    System.out.println("*********************validateRecast().RecastId: " + recastId);
    OracleCallableStatement ocs = null;
    Connection conn = tx.getJdbcConnection();
    String strOut="", strErr="";
    Number respId = null;
    try
    respId = new Number(respKey);
    catch(Exception e)
    throw new OAException("Invalid Responsibility");
    String stmt = "BEGIN " +
    "GE_RECAST_UTILS_PKG.validate_recast(:1,:2,:3,:4); " +
    "END;";
    try
    ocs = (OracleCallableStatement)conn.prepareCall(stmt);
    ocs.setNUMBER(1,recastId);
    ocs.setNUMBER(2,respId);
    ocs.registerOutParameter(3,OracleTypes.VARCHAR);
    ocs.registerOutParameter(4,OracleTypes.VARCHAR);
    ocs.execute();
    strOut = ocs.getString(3);
    strErr = ocs.getString(4);
    ocs.close();
    System.out.println("Returned with: " + strOut);
    if(strOut.equalsIgnoreCase("ERROR"))
    //throw new OAException(strErr);
    tx.putTransientValue("ERROR",strErr);
    tx.commit();
    getApplicationModule().clearVOCaches("RecastLineEO",true);
    RecastLineVOImpl lineVo = (RecastLineVOImpl)getApplicationModule().findViewObject("RecastLineVO1");
    lineVo.init();
    System.out.println("===============RecastLnId: " +lineVo.first().getAttribute("RecastLnId"));
    System.out.println("===============Product Line: " +lineVo.first().getAttribute("ProductLine"));
    catch(SQLException e)
    tx.rollback();
    if(ocs!=null)
    try
    ocs.close();
    }catch(SQLException e1)
    throw OAException.wrapperException(e1);
    throw OAException.wrapperException(e);
    }

  • ADF Table need to be refresh after deleting row

    In the table.
    After deleting the row use the VO,
    ViewObject reqVO = getRequestVO("Requests");
    reqVO.clearCache();
    reqVO.executeQuery();
    then refresh the table to display rows.
    AdfUtil.addPartialTarget("tableID");
    The table seems to be refreshed, but the row already be deleted still in the table.
    If leave the table page, and go back the table page,then the table display rows correct, can't the row that already be deleted.
    What is the wrong with the refreshing table?

    Can you try refreshing the iterator before setting the partial target as below?
    DCBindingContainer bindings =
    *(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();*
    DCIteratorBinding iteratorBinding =
    *(DCIteratorBinding)bindings.get("<ITERATOR_NAME_IN_PAGEDEF>");*
    *if (iteratorBinding != null) {*
    iteratorBinding.executeQuery();
    Thanks,
    Navaneeth

  • Table is not refreshing after comming

    Hi Experts,
    Working in JDEV 11.1.1.3.0 with ADF BC.
    I am updating the selected rows when the file download is done, in the same method i am coming the recording and reexecuting my VO and adding partial trigger as my table component, but still my table is not refreshing.
    Code:
    public void commitRows(RowData rowData){
    rowData.setAttribute("PrintState", "PRINTED");
    DCIteratorBinding printIter =
    ADFUtils.findIterator("XxwfsAvcardPrintInterfaceVO1Iterator");
    ADFUtils.invokeEL("#{bindings.Commit.execute}");
    printIter.getViewObject().executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(printTB);
    // ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    }

    Thanks for your reply Suganth.
    i don't have partial submitt on the button.
    My requirement is i am updating selected row on the table and at the same time i am downloading file, after download is finish selected row is updating properly but that row is still apearing on the table, if the user click on download button once again then i am getting null pointer exception, because the row is not there on the table it got updated.
    Because of file download table refresh is blocking, how should i need to refresh my table on file download method.
    Edited by: user5802014 on Aug 26, 2010 8:39 AM
    Edited by: user5802014 on Aug 26, 2010 9:05 AM

  • Problem with a field set to refresh after insert at Row level

    hello all,
    i have a problem with a field (a serial) which is set by a db trigger at insertion. The field "refresh after insert" is properly set in the Entity and everything is refreshed correctly when i insert data via an adf form in a jspx but when i want to insert programmatically nothing is refreshed. I insert data this way :
    ViewObject insertVO = findViewObject("myView");
    Row newRow = insertVO.createRow();
    newRow.setAttribute("mandatoryAttribute1",value1);
    newRow.setAttribute("mandatoryAttribute2",value2);
    <more init here but not the serial since it will be set by the DB trigger>
    insertVO.insertRow(newRow);
    but when i want to get back the value with "newRow().getAttribute("TheSerial");" i always get a null back and not the value set by the db trigger.
    One way to get the serial is to commit after each insert but i don't want to commit between inserts.
    i've tried to unset the refresh after insert and override the createDef() method to setUseReturningClause(false) as it's is advised in chapter 26.5 of the ADF 4GL dev. guide but in this case i have an exception JBO-29000: JBO-26041.
    How can i get the value back properly ?
    thanks
    -regards

    The data for the newly created row doesn't get inserted into the database until the commit is executed, so the insert trigger isn't called.
    If you need to get the value without committing, then you should implement the trigger programmatically and drop the trigger from the database. The code below shows how you could do this.
    ViewObject insertVO = findViewObject("myView");
    Row newRow = insertVO.createRow();
    SequenceImpl seq = new SequenceImpl("MY_SEQ", insertVO.getDBTransaction());
    Long next = (Long)seq.getData();
    newRow.setAttribute("primaryAttribute", new Number(next));
    ...You will need to replace MY_SEQ and primaryAttribute with the correct values for your example, but this should acheive what you want.

  • EDIT method doesn't work after adding new row

    I would like to start editing after adding new row into TableView.
    I copied example from Oracle website: [Using JavaFX UI Controls - 13 Table View|http://docs.oracle.com/javafx/2/ui_controls/table-view.htm#CJAGDAHE]. Then I put additional button for adding new row and define action for the button.
        final Button addButton = new Button("Add");
        addButton.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent arg0) {
                Person p = new Person("", "", "");
                table.getItems().add(p);               
                table.getSelectionModel().select(p);
                table.edit(table.getSelectionModel().getSelectedIndex(), table.getColumns().get(2));
        });In result I can see selected new row but the table doesn't start edditing in the third column.
    I have similar method for editing existing rows and it works properly.
        final Button editButton = new Button("Edit");
        editButton.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent arg0) {
                table.edit(table.getSelectionModel().getSelectedIndex(), table.getColumns().get(2));
        });Could you help me what I do wrong?

    Try wrapping the setCaretPosition(...) method in a SwingUtilities.invokeLater(...)
    caret=outputArea.getDocument().getText(0,outputArea.getDocument().getLength()).length();Should be:
    caret = outputArea.getDocument().getLength();

  • Table space not reduce after delete in oracle 10g

    Hi..
    Based on my system, i have found that my oracle table space did not reduce after the deletion query. Why ?.. Could somebody help me. As your info, I am using oracle 10g.
    Thank you,
    Baharin

    After Delete the table space will not be set free. high water mark will not be reset. to regain the space you need to recognize the objects from which you deleted the data. This can be done in many ways.
    1) Move the objects.
    Alter table temp move --> optionally tablespace clause can be used. After this you need to rebuild table indexes.
    2) With 10g table can be shrinked or reorganize to free the space.
    alter table mytable enable row movement;
    alter table mytable shrink space;
    3) Export/Import
    export the objects and drop and recreate with import.

  • Table size not reducing after delete

    The table size in dba_segments is not reducing after we delete the data from the table. How can i regain the space after deleting the data from a table.
    Regards,
    Natesh

    I think when you do DELETE it removes the data but
    it's not releasing any used space and it's still
    marked as used space. I think reorganizing would help
    to compress and pack all block and relase any unused
    space in blocks. Why do you think that? Deleting data will create space that can be reused by subsequent insert/ update operations. It is not going to release space back to the tablespace to make it available for inserts into other tables in the tablespace, but that's not generally an issue unless you are permanently decreasing the size of a table, which is pretty rare.
    Would you also please explain about different about
    LOB and LONG ? or point me to any link which explain
    baout it.From the Oracle Concepts manual's section on the LONG data type
    "Note:
    Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility.
    Oracle also recommends that you convert existing LONG columns to LOB columns. LOB columns are subject to far fewer restrictions than LONG columns. Further, LOB functionality is enhanced in every release, whereas LONG functionality has been static for several releases."
    LONG was a very badly implemented solution to storing large amounts of data. LOBs are a much, much better designed solution-- you should always be using LOBs.
    Justin

  • Percentage of used table space not reduce after deletion

    Hi..
    This is my query to delete data from database:-
    delete from $tb_data where to_char(partition_dt,'MON') = '$mm';
    The $tb_data and $mm is variable and the $tb_data will be read input table name (as example backup_nx160, backup_ngn and etc) and the $mm will be capture the input month.
    My question is why the percentage of used table space is not reduce after delete query was executed. Could somebody help me..
    Please help me..
    Thank you,
    Baharin

    baharin wrote:
    Hi..
    Is it the deleted space will be reused by the system ?Yes.
    .. How could i check the real free tablespace or real usage table space ?If you have gathered statistics on the schema recently, then sum (avg_row_len*num_rows) should give you the exact number of bytes that are being consumed - assuming all tables are in a single tablespace under consideration. You can subtract this value from sum (dba_data_files.bytes) figure for the tablespace, to know exact free space.

Maybe you are looking for