Computations and Session State
As we already mentioned in Chapter 3, while discussing the APEX Session State, using Computation in all the firing points, sets the value of the computed APEX item in Session State.
If we are using Computation to set the value of a page item, while on the Page Rendering phase, then the computed value will also be set in Session State. However, if the Source Used option of the computed item was set to 'Always, replacing any existing value in session state', its displayed value on the application page could be different from the Session State value, and will be determined by the item source. This is a perfectly valid scenario.
The following table, which also applies to the APEX Processes that we'll discuss in Chapter 9, summarizes the possible relationships between computed values (or other specific item value assignments) in Session State and the displayed value of the item:
Source Used |
Setting Session State |
Displayed Value |
Session State = Displayed Value ... |