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!

Access to triggering element in a Dynamic Action from PL/SQL ?

AndyHJan 23 2014 — edited Jan 23 2014

Hi,

I have a form that is used to calculate the volume of a (large) number of tanks based on entered tank heights.

I have a PL/SQL procedure that performs the calculation - it is given the name of the tank and the height and calculates the volume (each tank may have different physical characteristics).

I didn't want to create a Dynamic Action per tank (I'm lazy and the number of tanks is large!). I currently have a Dynamic Action that is triggered whenever any of the tank heights on the form change. The action PL/SQL calls the calculation for each tank. E.G.

:P1_TANK1_VOL := tank.vol('TANK1', :P1_TANK1_HEIGHT);

:P1_TANK2_VOL := tank.vol('TANK2', :P1_TANK2_HEIGHT);

...

:P1_TANK50_VOL := tank.vol('TANK50', :P1_TANK50_HEIGHT);

This works but involves performing 50 calculations whenever a single one is required and can appear to be slow.

Is there a way to identify the triggering element from the PL/SQL action? E.G.

IF TriggeringElement = 'P1_TANK1_HEIGHT' THEN

:P1_TANK1_VOL := tank.vol('TANK1',:P1_TANK1_HEIGHT);

END IF;

Any ideas?

This post has been answered by Joni Vandenberghe on Jan 23 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2014
Added on Jan 23 2014
2 comments
1,805 views