Handling a Single Screen which Shows Multiple Modes

In IBM i applications it is possible that a single screen handles multiple modes.

For example, an application can have a single screen which allows ADD, CHANGE, DISPLAY and DELETE. 

See tutorial RAMP-WIN008: Changing Inquiry Screen to Update Mode for an example of how to handle this.