If you move from one page to another in ADF application and want to verify whether data is modified or not. you can use the following api for ADF.
BindingContext bindingCtx = BindingContext.getCurrent();DataControlFrame dataCtrlFrame = bindingCtx.findDataControlFrame(bindingCtx.getCurrentDataControlFrame());Collection<DCDataControl> dataCol = dataCtrlFrame.datacontrols();for (DCDataControl dcDaCtrl : dataCol) {if (!dcDaCtrl.getName().equals("DataControlName1") && !dcDaCtrl.getName().equals("DataControlname2"))dirty = dCDataControl.isTransactionDirty() == true ? return true : false;}
No comments:
Post a Comment