Showing posts with label Application Module dirty. Show all posts
Showing posts with label Application Module dirty. Show all posts

Wednesday, September 25, 2013

Check if application module is dirty or not ADF

       
public Boolean getAmChangesExist() {
BindingContext bc = BindingContext.getCurrent();
ApplicationModule am = bc.getDefaultDataControl().getApplicationModule();
return am.getTransaction().isDirty();
}

public Boolean getDcFramechangesExist() {
BindingContext bc = BindingContext.getCurrent();
String currentDataControlFrame = bc.getCurrentDataControlFrame();
return bc.findDataControlFrame(currentDataControlFrame).isTransactionDirty();
}
http://adfbugs.blogspot.com/2009/12/pending-changes-in-adf-application.html