Wednesday, October 12, 2011

ADF Insert Row and Use it in procedures or funtions without commiting this.getDBTransaction().postChanges();

Given senarios like we need to create a row in a particular table and then call a procedure which uses the key from this row and inserts records in another tables all without commiting this to database. This is done using this.getDBTransaction().postChanges();

You can define this is any impl classes of view object and expose it to client. If you make any changes to view object in backing bean then call this method before invoking any procedures :)