Jdev 11.1.1.6
Trying to implement the undo row as demonstrated by Andrejus(http://andrejusb.blogspot.in/2012/05/refreshing-single-row-without-full.html)
I have a view object, in the viewobjectImpl, i declare the method and create the necessary client interface for the same
public void refreshCurrentRow(Row row) {
if (row != null) {
row.refresh(Row.REFRESH_UNDO_CHANGES | Row.REFRESH_WITH_DB_FORGET_CHANGES);
}
}
I define the operation binding in the page def and while trying to access through managed bean using:
DCBindingContainer bindings = (DCBindingContainer)getBindings();
DCIteratorBinding dcIter = bindings.findIteratorBinding("RoleVO1Iterator");
Row row = dcIter.getCurrentRow();
OperationBinding ob = bindings.getOperationBinding("refreshCurrentRow");
ob.getParamsMap().put("row", row);
ob.execute();
, it gives me exception as
<Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Method null.refreshCurrentRow() not supported
oracle.jbo.InvalidOperException: JBO-25221: Method null.refreshCurrentRow() not supported
at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:665)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2143)
at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3114)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:261)
...
...
Please suggest what is wrong in here?
why is the data control null here (null.refreshCurrentRow() )
: