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!

How to programatically trigger an action? $.event.trigger? apex.event.trigger? Apex5

Scott H BristolJan 24 2017 — edited Jan 24 2017

Hi guys

New to Apex, using Apex5. Forms developer background.

In my form, I've item A and item B.

Item B, has a dynamic event on it, when it changes it populates a number of items lets call these C, D and E

C, D, and E have dynamic events on them, so that when they change, they go on to populate more items that are in line with them.

What I want to do is have an event on item A, which says, when changed - fire the change events on C, D and E.

Effectively "call the same code".

From reading, I thought I could use $.event.trigger or apex.event.trigger with the action names used on C, D and E.  But that doesn't work.

Then it looked as though I needed to create a Custom Event, which calls the code in C, D and E and call that event using $.event.trigger etc but that doesn't work either.

In forms I'd have had a procedure which the events on C,D and E call.  I'd then just call that same procedure when item A changed - it's that which I'm trying to achieve.

Can anyone point me in the right direction please?

I know I could effectively duplicate all the code in C, D and E and put it into the change event on item A, but that doesn't seem like good coding practice unless there's no other way.'

Thanks a lot

S

This post has been answered by Pavel_p on Jan 24 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2017
Added on Jan 24 2017
7 comments
3,465 views