Tuesday, March 19, 2013

ADF 11G : How to Pass the bind variable value using ExecuteWithParam ?

ADF 11G : How to Pass the bind variable value using ExecuteWithParam ?















































    public String executeWithParam() {
        String name = null;
       
        name = it1.getValue().toString();
       
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams");
        operationBinding.getParamsMap().put("studentName", name);
       
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        return null;
    }