Thursday 21 February 2013

ADF: Code to get bindings to make custom buttons

## Code to get bindings to make custom buttons

1)Use in the code.

BindingContainer bindings = getBindings();
OperationBinding operationBinding =bindings.getOperationBinding("Commit");
operationBinding.execute();


2)Definetion of getBindings method


public BindingContainer getBindings() {
return BindingContext.getCurrent().getCurrentBindingsEntry();
}

OR

** We can use directly in one line**

BindingContext.getCurrent().getCurrentBindingsEntry().
getOperationBinding("CreateInsert")
.execute();

_______________________________________________________________________________
If you have any Questions about ADF. Feel free to ask. I will be happpy to help. :)


No comments:

Post a Comment