Show Contents List

Screen Wrapper Fundamentals

Define your screen wrapper
A screen wrapper is a VL reusable part of class VF_SY122. You must define it globally scoped as opposed to inside any type of routine.
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#PANL_1) Visible(False)
 
Key Points:

Set the uCommand property
 
In the command's uInitialize method routine, set the screen wrapper's uCommand property:
Mthroutine Name(uInitialize) Options(*REDEFINE)
 

Kick off execution by making RAMP available for a specific action
 
Usually you will invoke MakeRampAvailable Method inside the uExecute method of your command for the first time:
#myscreen_wrapper.MakeRampAvailable Foraction(Display)
 
Key Points:

Listen to the RampAvailable event
Once RAMP has connected and it's ready to be interacted with it will signal back to the command. It will pass the value of the action you requested. Typically this routine will consist of a CASE statement handling all the possible actions.

Listen to the RampMessage event
You write error handling logic and handle messages originating in your 5250 application in the RampMessage Event.
Show Contents List