Search This Blog

Operator Binding in ADF - Call Client method in BC from View


 
Operator Binding in ADF -  Call Client method in BC from View


          

Calling Client method from ViewControllerProject 
 
            BindingContext bcx = BindingContext.getCurrent();
            DCBindingContainer bc = (DCBindingContainer)bcx.getCurrentBindingsEntry();
            
            // Method Name 
            OperationBinding opb = (OperationBinding)bc.getOperationBinding("TestMethod");
           
             //  Arguments in method
             opb.getParamsMap().put("arg", "Moorthi");
             opb.invoke();



AM Client Method :


    public void TestMethod( String arg){
        // Add your logic
    }
 


Client Method exposed in data control


No comments:

Post a Comment