Oracle Apex:为什么这个动态操作没有被触发/触发?

发布于 2024-08-29 07:01:36 字数 281 浏览 6 评论 0原文

我正在使用 Application Express 4.0.0.00.25 (Apex 4.0 EA2)。我创建了一个简单的表单,只有几个字段。每个字段都不是直接输入的,而是附加了一个 LOV 选择器,并且在选择 LOV 值时,id 会存储在该字段中。

我有一个与该字段关联的动态操作(事件 - 项目更改、条件 - 始终、操作 - 通过 SQL 查询设置值)。 但是,从 LOV 中选择值时,不会触发动态操作。如果我选择在页面加载时触发动态操作,那么它会起作用,但在从 LOV 选择项目时不起作用。为什么会这样,是设计使然还是错误?

I'm using Application Express 4.0.0.00.25 ( Apex 4.0 EA2 ). I've created a simple form, with few fields. Each of the field are not direct entry, but rather a LOV picker is attached to these, and on selecting the LOV value, the id gets stored in the field.

I have a dynamic action associated to the field, ( event - change in item, condition - always, action - Set value via SQL query ).
However, on selecting the value from the LOV, the dynamic action doesn't get triggered. If I select the dynamic action to be fired on page load, then it works but not upon selection of an item from the LOV. Why is this so, is it by design or a bug ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

孤单情人 2024-09-05 07:01:36

Apex 4.0 动态操作尚不适用于弹出 LOV。我怀疑它们会在 Apex 4.0 发布时起作用,尽管我不确定。我已阅读Patrick Wolf 的博客 级联 LOV 功能最终将适用于弹出 LOV,尽管目前还不行,我想这同样适用于这里。

如果您的 LOV 不太大,您可以将项目更改为选择列表,动态操作就会起作用。

Apex 4.0 dynamic actions don't yet work on popup LOVs. I suspect they will work by the time Apex 4.0 is released, though I don't know that for sure. I have read in Patrick Wolf's blog that the cascading LOV functionality will eventually work for popup LOVs though it does not at the moment, and I imagine the same applies here.

If your LOV isn't too huge you can change the item to a select list and the dynamic action will work.

凶凌 2024-09-05 07:01:36

您的弹出式 Lov 项目在表单中输入了 2 个输入:P1_ITEM 和 P1_ITEM_HIDDENVALUE。我使用动态操作设置隐藏项目(P1_ITEM_HIDDENVALUE)没有问题。对于 P1_ITEM,我创建了一个额外的隐藏项目(P1_EXTRA - 受保护的值应为“否”),添加了另一个真实操作,该操作将 P1_EXTRA 设置为我需要在 P1_ITEM 中填充的值。然后我使用以下代码添加了另一个真实操作(执行 JavaScript 代码):

$s('P1_ITEM',$('#P1_ITEM_HIDDENVALUE').val(),$('#P1_EXTRA').val());

希望这对任何人都有帮助

Your popup Lov item makes 2 inputs in the form, P1_ITEM and P1_ITEM_HIDDENVALUE. I had no problem setting the hidden item(P1_ITEM_HIDDENVALUE) with Dynamic Action. For the P1_ITEM i created an extra hidden item(P1_EXTRA - Value Protected should be "No"), added another true action that sets P1_EXTRA with the value i need to populate in P1_ITEM. Then i added another true action (Execute JavaScript Code) with the following code:

$s('P1_ITEM',$('#P1_ITEM_HIDDENVALUE').val(),$('#P1_EXTRA').val());

hope this helps anyone

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文