PeopleSoft Component Variables

PeopleSoft Component VariablesA variable declared as a Component variable remains defined and holds the value as long as any page in the component in which the variable is declared remains active.


To use a component variable within an event, you should first declare it. Otherwise, it would be treated as a local variable and the value wouldn’t be available in the particular event.

Component String &prior_value;


Accessible through out the component and from within Application Engine programs called using CallAppEngine

Important Considerations

Variables declared as Component do not remain defined after using the Transfer function, whether you are transferring within the same component or not. If you come across a situation where the value stored in a component variable is lost, you should carefully evaluate if a transfer function is executed anywhere in the code.

It also a good idea to use proper comments on where the component variable is assigned, where it is cleared and so on along with the declaration so that maintaining the code wouldn’t be tough at a later point.

Tags: , ,
Subscribe to Comments RSS Feed in this post
One Response
  1. Hi sir thank you . the way you are explaining each part is very clear. i would like to share my knowledge and also i have queries to ask you.please let me know how can i join here

Leave a Reply

Your email address will not be published. Required fields are marked *