%PrevComponent system variable
Description
% PrevComponent returns an uppercase character string containing the name of the component that a user visited previously.
MessageBox(0, "", 0, 0, "The previously visited component is " | %PrevComponent);
Note:
The %PrevComponent system variable cannot be used in all scenarios. It is only effective in PeopleCode when a component has been visited. If it is used in batch process PeopleCode or iScript, you will get an empty string value.