ADF 从代码手动调用操作 [英] ADF Invoke operation manually from code

查看:52
本文介绍了ADF 从代码手动调用操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从按钮 ActionListener 执行数据控制操作(创建插入和删除).我知道可以从数据控件"菜单中插入一个数据控件按钮,但由于各种原因我需要这样做,其中一个突出的原因是我需要执行额外的运行时检查.

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.

我找到了以下代码:

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

但我不知道该使用哪些变量.首先,我不知道我应该使用哪种绑定.然后,据我所知,操作名称应该是 CreateInsert,对于下一个按钮,CreateInsert1.这就是现在用于 UIBinding 的内容(我将删除).

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).

我要使用的操作的数据控件是'ARNG1'.

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

所以简而言之,我需要知道如何手动调用这个 Data 控件的 CreateInsert 操作.

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

提前致谢.

推荐答案

看看这是否对您有帮助:https://blogs.oracle.com/shay/entry/doing_two_declarative_operatio

See if this will help you: https://blogs.oracle.com/shay/entry/doing_two_declarative_operatio

这篇关于ADF 从代码手动调用操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆