ADF Invoke operation manually from code

Mark Tielemans picture Mark Tielemans · Apr 3, 2012 · Viewed 12.5k times · Source

I want to execute a data control operation (CreateInsert and Delete) from a buttons ActionListener. I am aware a data control button can be inserted from the Data Controls menu, but for various reasons I need to do it this way, a prominent one being I need to perform extra runtime checks.

I found the following code:

      OperationBinding operation = bindings.getOperationBinding("operation_name");
      operation.getParamsMap().put("parameter_name", parameterValue);
      operation.execute();

But don't know which variables to use for myself. First of all, I don't know which binding I should use. Then, the operation name should, as far as I know, be CreateInsert, and for the next button, CreateInsert1. Thats whats used for UIBinding now (which I will remove).

The Data control I want to use the operation of is 'ARNG1'.

So in short, I need to know how to manually invoke this Data control's CreateInsert operation.

Thanks in advance.