Below is the way to access/execute method binding from managed bean:
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.binding.OperationBinding;
...
...
DCBindingContainer bindings =
((DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry());
OperationBinding operationBinding =
bindings.getOperationBinding("MethodNameFromBindings");
//passing value into method arguments
operationBinding.getParamsMap().put("ArgumentName",value);
operationBinding.execute();
//getting return value from method
operationBinding.getResult();
thanks I'm looking for this :)
ReplyDelete