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!

Changing a page item value via javascript does not trigger DA

ApexMeisterOct 5 2016 — edited Oct 6 2016

I'm using apex 5.0.3, universal theme and 11g DB.

I have an item p1_show_alert, and p1_text.

I created a DA on p1_text.

Event ->Change

Item -> P1_TEXT

Action

1. Execute JavaScript Code

var r = confirm('Do you want to display alert');

if (r == true) {

    $x('P1_SHOW_ALERT).value = '1';;

}

2. Execute PL/SQL,

pl/sql code -> null;

Page Items to Submit -> P1_SHOW_ALERT

I created a DA on p1_show_alert

Event ->Change

Item -> P1_SHOW_ALERT

Condition -> equal to

Value -> 1

Action

1. alert -> text -> Yes

I can see the confirm window but the 2nd DA is not being executed and also I can see the value of P1_SHOW_ALERT displaying correctly.

This post has been answered by Tom Petrus on Oct 6 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2016
Added on Oct 5 2016
2 comments
1,269 views