ADF data table - posting changes without row change

Hi,
I’m using JDevloper 11.1.2.3.0 to build a master detail page (for ex, departments and employees) where both master and detail are editable. So, I dragged and dropped the master data control (departments) on the page as an ADF table. Then I dragged and dropped the detail data control (employees) on the page as an ADF table (the detail control is the one inside the master data control). Each table is inside a panelCollection.
At run time, the page displays fine and when I change the selected row in the master, the detail table changes correctly.
In the toolbar of each panelCollection, I added:
•     The createInsert operation of the corresponding data control.
•     A “save changes” button to commit the changes: the button is not the commit action of the module but instead it is a toolbar button linked to a method in the bean that execute the commit operation (using the bindings) and then reload the master data control (both master and detail buttons points to the same action).
This is also working: if I change a field in the master table or create a new row and click the “save changes” button of the master table the changes are correctly posted. Same for the detail table if I change a field in the detail table or create a new row and click the “save changes” button of the detail table the changes are posted.
The problem is when I add a row in the detail table for ex and click the “save changes” button of the master table (without changing the selected row in the detail), the changes are not committed. Same happen if I create a new row in the master table and clicked the “save changes” button of the detail table (also without changing the selected row in the master).
It seems that the problem is that the table is not posting the changes when I directly click the “save changes” button of the "other table". If after adding a new row, I change the selected row before clicking the “save changes” button data is correctly saved whatever “save changes button” is clicked.
So how can I make the table post the changes is this case?
Or should I make the “save changes” button of the master table for ex disabled when I change something in the detail table and vice versa? (If yes how? The disabled property of the “save changes” buttons is currently: #{!bindings.Commit.enabled})
Or should I have only one “save changes” button that saves all the changes on the page?
Or …
Is there any useful link i can check?
Thank you.
Edited by: 997720 on Apr 3, 2013 2:28 AM
Edited by: 997720 on Apr 3, 2013 7:36 AM

this helped me very much: http://balusc.xs4all.nl/srv/dev-jep-dat.html
Branislav

Similar Messages

  • View Customization Table changes and Data  table base changes in a report

    Hi All,
    How to view Customization Table changes and DAta  table base changes in a report ,
    Is it right transactions: SCU3 or RSVTPROT
    Also plz let me know the concept of audit trial,
    Thanks
    SD

    Hi,
    Changes to master data objects must be captured for the For compliance purposes. The auditor allows you to be able to view and print an audit log of changes to master data objects for a chosen period. It is very common for external auditors to focus on what has changed from one year or quarter to the next to help determine the nature, extent, and population for testing. To configure and access your audit log, perform the actions listed with each of the following utilities.
    Audit Trail is used to track the record changes.
    The report RPUAUD00 gives all the changes done to the masterdata by any user anytime.
    But, before using this audit trial, please ensure that the system hardware is well equipped as the audit trials activation would later become a performance issue as this would occupy a lot of space in the coming time.
    Best Regards,
    Venkat.

  • ADF customize previous/next link action in ADF data table

    in an ADF Data Table, how can i set an action method on the range links (i.e. next pagesize, previous pagesize links..),
    I need to customize that. i want to check first if the transaction is dirty, display a save changes panel and then proceed to the navigation.

    Hi brian,
    I have no problems with the next/previous navigation button that you can drag and drop on the page in design view.
    What Im talking about is on the ADF table. Im talkin about the Next/Previous links that only appears on runtime when there are more rows than the range size of the ADF table..

  • Collect data and post change-events using POJO datacontrol

    How can I get users of my POJO datacontrol to get changed data from the datacontrol. The datacontrol will receive new data from some source ? I'm able to create a datacontrol from a POJO java class easy enough. However, is there an example showing how to create a datacontrol that receives data from some source and updates users of the datacontrol?
    Thanks
    Travis

    Yes, I want to push new data to the client without the client specifically requesting the data. I suspect the datacontrol will have to fire an some event and the client has a listener for that event.
    The datacontrol will receive data from a device, such as a barcode scanner, in the form of a string of text. The datacontrol will provide the data via one or more attributes (i.e. fields) such as "Product ID", "Expiration Date", etc.

  • ADF Editable Table : CANNOT Insert Multi Rows , Please hellppppssss

    Hi All,
    Our customer requirement is being able to insert Multi Rows in an Editable Table and submit ALL of them with just one Click ?
    Is it Really Possible ?
    I have tried, even I can insert three Empty Rows and Fill them all with values, when I press Submit ONLY one row will be submitted, the other TWO will become BLANK again, is this my code is wrong ?
    Or this is limitation of ADF Editable Table ?
    Here is my codes, I have tried two ways, all same problem :
    (1) public String create_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Create");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    public String myCreate_action() {
    create_action();
    create_action();
    create_action();
    return null;
    (2) public String createMultiRows() {
    DCBindingContainer dcbc = (DCBindingContainer)getBindings();
    //get iterator binding
    DCIteratorBinding ib = (DCIteratorBinding)dcbc.get("DeptView1Iterator");
    // get viewobject
    ViewObject vo = ib.getViewObject();
    System.out.println(vo.getCurrentRowIndex());
    vo.clearCache();
    int currentRowIndex = vo.getRowCount() -1;
    Row row1 = vo.createRow();
    row1.setNewRowState(Row.STATUS_NEW);
    vo.insertRowAtRangeIndex(++currentRowIndex, row1);
    Row row2 = vo.createRow();
    row2.setNewRowState(Row.STATUS_NEW);
    vo.insertRow(row2);
    Row row3 = vo.createRow();
    row3.setNewRowState(Row.STATUS_NEW);
    vo.insertRow(row3);
    return null;
    Please help... I am stuck ...
    Thank you very much,
    xtanto

    Xtanto,
    Could you try changing
    bindings.getOperationBinding("Create");to
    bindings.getOperationBinding("CreateInsert");in your first example to see if it fixes your problem?
    Regards,
    John

  • ADF Faces Table with a Total row calculated?

    Hi there OTN Community:
    I have another doubt.
    I have an EJB dataControl, and i use one of his collections to display the data in an ADF Faces Table. One of the columns of the Adf Faces Table is numeric, And i have to display the Total of that Column.
    I only shows 10 rows per screen, but i need to show the total of all the rows.
    How i can calculate it?

    Mmmmm..... You're right!...I will try that.
    Thanx :)
    Hey, and....You know? i was thinking, maybe i can get the iterator and then capture each object of the iterator to compute the total. That is a crazy idea?, its possible?, its not recommended? or its ok too? :P
    Thanx in advance.
    Dany

  • ADF data table with Add,Edit,Delete functionality

    Hi Experts,
    I have a adf page where I need to implement add,edit,delete button. The table was bind with the Webservice obj call.I need to have one single button as "Add" which should add an inline row at end of the table.When I ll double click on the row I should have the in-line edit of the row.And for delete functionality,there should be delete button on each row which should delete the correspond row.Please help me to solve my problem.Please share the code to meif u ve any.my email: [email protected]
    Thanx
    Aswini

    Can you check the below links
    http://andrejusb.blogspot.com/2010/05/crud-operations-in-oracle-adf-11g-table.html
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-jdeveloperadf-11g-r1.html
    ~Abhijit

  • Why in SE16 we can not  see New Data Table for standard DSO

    Hi,
    We says that there is three tables (New Data Table, Active Data Table and Change Log Table) of Standard DSO, Then Why in SE16 we can not  see New Data Table of Standard DSO.
    Regards,
    Sushant

    Hi Sushant,
    It is possible to see the 3 DSO tables data in through SE16. May be you do not have authorization to see data through SE16.
    Sankar Kumar

  • Data table with fixed column with

    I have a data table bound to a row set , and I would like the table to have fixed column widths to avoid unpleasant display shifts when paging through it.
    The column component does not have too many properties I can work with (maybe this can be fixed in a future release??). Therefore I tried setting the style property of the output text object inside the column. The result looks good in the IDE, but reverts to variable column widths in the browser. I even tried setting the style property at runtime, with no luck.
    Unfortunately I can't pad the column header with spaces, because output text has the annoying habit of converting any group of more than one blank space character to one char only (by the way, any remedy to that?). Trying to drop a grid or group panel in place of the column header and pad the column title with invisible (i.e. color: white) output texts did not work either...
    Any ideas??
    Thanks,
    Luca

    I took a look at the html encoder for data table and here's a trick you can use:
    Go to your stylesheet (by default resources/stylesheet.css: open the Resources node in the project navigator and double click on stylesheet.css).
    Let's say you want three columns - so add something like the following to the stylesheet:
    .colwidth1 { width: 200px }
    .colwidth2 { width: 400px }
    .colwidth3 { width: 300px }
    Save the stylesheet (ctrl-S).
    Now, back in the designer, right click and select "Refresh" to ensure that the new stylesheet edits are discovered.
    Then go to the designer surface, and select the data table (make sure it's selected, not one of its children like columns or output texts - if so hit Escape to pop to parent, or just click on it directly in the app outline.)
    Go to the "columnClasses" property in the property sheet - and enter "colwidth1, colwidth2, colwidth3". Note - no dots here. If you have more than 3 columns you would obviously add additional columns here.
    The table should now use the desired column widths - including the browser.

  • Deleted Rows Flashback : unable to read data - table definition has changed

    Hi All,
    Its Really Important.
    I Unfortunately truncated a table using
    Trancate table mytable;
    and Made a alter table to decrease data pricision length.
    But i Need the tabla data back,
    i used the below command to get deleted rows, it shows error.
    query : select * from pol_tot versions between timestamp systimestamp-1 and systimestamp;
    error : ORA-01466: unable to read data - table definition has changed
    query : flashback table pol_tot to timestamp systimestamp - interval '45' minute;
    error : ORA-01466: unable to read data - table definition has changed
    Kindly Share your ideas How Can i Get thoose Deleted Records.
    Edited by: 887268 on Jul 8, 2012 12:26 AM

    BluShadow wrote:
    Khayyam wrote:
    Flashback dont works after DDL. Truncate command is DDL. Only recover from backup can help.Please don't spread untrue statements.Working of flashback after Drop command is so clear to say. I mean such DDL commands as CREATE, ALTER, TRUNCATE and so on...
    "Remember that DDLs that alter the structure of a table (such as drop/modify column, move table, drop partition, truncate table/partition, and add constraint) invalidate any existing undo data for the table. If you try to retrieve data from a time before such a DDL executed, you will get error ORA-1466. DDL operations that alter the storage attributes of a table (such as PCTFREE, INITRANS, and MAXTRANS) do not invalidate undo data."
    [http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_flashback.htm#BJFJHDAG]

  • Save attempt moves data one field forward after table schema change

    Okay, this is very strange and hard to believe, but here goes.
    First, I have Apex 2.2.1... and have also installed ApexLib - I will try to take ApexLib out of the picture as my first move, but if anyone recognizes this behavior in the mean time, please chime in.
    Here's what happens:
    1. Enter invalid data (not checked by ApexLib in at least one case, I believe, as the validity check involves two fields).
    2. Page comes back displaying Error inline and at field level. Again, at least in one case, the error message is that set on the server side after a server-side validation.
    3. Value entered in Field 1 is now displayed in Field 2.
    Value entered in Field 2 is now displayed in Field 3.
    etc. (unless Field 2 is a Select list that can't display the value from the preceding field)
    Love to hear any ideas.
    Thanks.
    P.S. Actually - now it looks like this moving of data happens with or without error on this particular page. It uses Fetch Row and the table schema has changed since the page was first generated such that a field was added to the end of the table and is the 2nd field on the form. Thus, it looks like somehow the automatic update is confused by a new item having been inserted. Is this possible?
    Message was edited by:
    SydneyOs
    Message was edited by:
    SydneyOs

    Check to make sure that the source of the new (added) column is database and that it has the correct column name.
    Anton

  • How to identify a specific object that changed in a data table?

    I have a data table in my jsf page which populate by myList (a property of type List<myObject> in myBean) that contains a list of myObject objects.
    Within data table, the 'amount' property of myObject is in a h:inputText named 'amountText'.
    How can I recalculate another property (for example 'cost') of the specific myObject within one of the
    data table rows whenever user change the value of 'amountText' ?

    Hi Roger,
    I guess, it is up to your choice about design how you want to implement.
    you have two ways....
    1) Use valueChangeListener attribute of the text field, as it will be called for the row of the database on which the bind property value is actually changed.
    2) Not prefered, but you can use setterMethod of amount in the your object, and can compare its new value with the old one and can decide the consequence.
    Please let me know, if it solves your concern or you have a different concern.

  • Changing document date and posting date by SE16N

    Hi All,
    an user has posted some customer documents (with tax codes) with wrong document date and posting date.
    I have to modify these data by se16n.
    In which tables I have to fill in?
    Thanks
    Gandalf

    Hi,
    It is not advisable to change the document date and posting date. Instead, try to reverse the document and post the correct one.
    Regards,
    Jigar

  • Web report data provider change from Master data table to InfoCube

    hi Experts,
    I have created one report on top of multiprovider but in the selection screen when i check the values for a variable I came to know that data is coming from master data table and not from data provider(InfoCube).Can any one help to change the data selection from master data table to data provider(InfoCube) and i am sure that there is no ODS involved in the multiprovider.
    Thanks in advance
    With Regards,
    Bala

    Hello,
    If u are using Analyser then just put a Analysis Grid on the output of the query(should cover all the rows and column) , click on the grid and put the dataprovider. and do auto fit.
    Rohit

  • Default key date, Document date and posting date needs to be changed automa

    Hi Experts,
    The user wants to create a variant for Foreign currency valuation, wherein the default key date, Doc date and Posting date needs to be changed every month automatically. Is it possible?
    Please let me know your thoughts.
    Warm regards,
    Murukan Arunachalam

    Hi
    Please follow this process.
    Only specify fields that should be changed
    Select these fields by entering an X in the checkboxes
    Enter a U in the UPDATEFLAG field
    Always specify key fields when changing the data, including in the checkboxes
    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
    Maintain quantities and dates in the schedule line data.
    1. Minimum entry:
    You must enter the order number in the SALESDOCUMENT structure.
    You must always enter key fields for changes.
    You must always specify the update indicator in the ORDER_HEADER_INX.
    2. Commit control:
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

Maybe you are looking for

  • How to convert date format to MM/DD/YYYY

    Hi,    How to convert date format to MM/DD/YYYY. Thanks, Senthil

  • How Do I Force empty trash?

    How do I force empty trash, OS 10.6.8?

  • Questions from an idiot

    Must be something wrong with me - I'm turning in to my Dad...... Got a new MB yesterday and it came with 10.5 - really struggling with getting my head around Time Machine........ Does it back up EVERYTHING each time (or just the changed items) - I've

  • Interpreting Crash Logs: Explanations Needed

    Hi Everyone, Allan Doyle just posted a crash report because Logic crashed on his system (sorry to hear about it Allan). Link is here: http://discussions.apple.com/thread.jspa?threadID=432758&tstart=0 But the whole notion of a crash report... few if a

  • Rmi +codebase

    I�ve a problem connecting my webstart rmi-client to a rmi-server. The webstart rmi client downloads the stubs from the server codebase. So far this is the right behaviour. After that the client tries to download the remote interface from the server c