Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DA and "condition" meaning

AZZDec 22 2015 — edited Dec 25 2015

hello,

i think i do not understand the meaning of the "condition" in the dynamic actions.

example: https://apex.oracle.com/pls/apex/f?p=21325:3:12372535888419::YES

help/help

workspace: AZ_

in the example:

DA " set3X" is executed on page load and sets P3_X to value "10".

On btn "Submit" click  the jscript function sets P3_X to value "100". ( there is a needlessly complicated jscript call there left since i've been simplifying the actual code).

i expect that DA "DisableBtn" will be triggered and button "Cancel" will be disabled.

This is not happening. At the same time if i change the "DisableBtn" "when" "condition" to P2_X =100, button "Cancel" becomes disabled as expected.

What's the problem:

i need to enable/disable the button based on the return value of the SQL( null/not null) that takes, as a parameter, the value of the primary key from the report region of a page. In other words - depending what record user clicks on, i get either NULL or NOT null from SQL that gets executed with the passed value. And the result of the SQL dictates, if button should be enabled or not.

Please advise.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 21 2016
Added on Dec 22 2015
6 comments
1,334 views