PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

[PSFT] (upgrading to 8.5X / 9.2) Building an Undo Stack

edited Jan 7, 2021 11:39PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 4 commentsAnswered ✓

Just curious if anyone has ever implemented an UNDO stack. The way these work is you use the command pattern, where every Button press (and save) stores the current and prior state of the component along with code to restore the prior state.

  1. User changes some data and clicks save/button
  2. Custom logic saves data changed, and saves results of action
  3. User clicks undo
  4. Custom logic looks at a stack of commands (the save, the things modified by the button (e.g., workflow, other things) and runs custom "reverse" logic


Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center