Dynamic Actions - Fire On Page Load
ChrisS.Feb 3 2011 — edited Feb 6 2011Say I have a page with 3 number fields, and a display-only total.
I have a dynamic action which sums the 3 fields if any of them change, displays the new total, and saves the total to session state using the technique of defining an "execute pl/sql code" action, the body of which contains only a "null;" statement, passing the total field in as a parameter. The change to the total field triggers other dynamic actions in turn.
The dynamic action is flagged to fire on page load, as any or all of the fields may be passed in as parameters via the URL. But I am concerned that this causes the DA to fire 3 times upon page load, presumably once for each page item named as a selection item.
Is this the expected and intended behaviour? Is there a better approach to handle this (simplified) example?
I'm running on a very slow wireless internet connection in the Philippines, so I try to avoid round trips to the server as much as possible.
Thanks for any suggestions.
Regards
Chris