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!

Listen change of item value that was changed from PL/SQL Dynamic action

ParaNov 17 2015 — edited Nov 18 2015

Hi

Apex version 4.2.6

I have dynamic action that fires PL/SQL. It's an on "Change" DA for item P1_INPUT.

It fires PL/SQL code

:P0_ITEM_CONTROL := '{"Item":"#P2_SIF_MT_INFO","State":"success"}';

Now I want to listen to this change ( of item P0_ITEM_CONTROL ) in my external JS.

$('#P0_ITEM_CONTROL').on('change', function() ....

Ofcourse you can only listen for changes that were made by typing into input itself so I have to add another TRUE action that fires JAVASCRIPT code and trigger change manually.

$('#P0_ITEM_CONTROL').trigger('change');

Which is unnecessary bloat cause. Is there any other way of triggering change?


First one that comes to my mind is creating one DA that listens to change of all items that I want my JS to trigger. Then manually trigger it from there.

This post has been answered by Tom Petrus on Nov 18 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 16 2015
Added on Nov 17 2015
8 comments
1,141 views