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