A SERVICE OF

logo

Advanced Features
129
¾
¾¾
¾ General steps to creating a Screen Handler
1 Create a working 5250 Component that uses a 5250 Connection Resource.
2 Reproduce and capture the screen you wish to handle in a ScreenDoc DOM.
3 Select a field/data combination on the screen to uniquely identify this screen
to the screen handler.
4 Add the screen handler to the Connection Resource by supplying a screen
identity expression and an AID key for dispatching the screen.
¾
¾¾
¾ Specific steps to creating a Screen Handler
1 Create your 5250 Component as you normally would (i.e. create a
Connection and other Resources as necessary and then build the component)
2 If your ScreenDoc DOM is not already visible, select View/Window Layout
from the menu bar, followed by clicking the XML Layout tab. Then move
ScreenDoc to the Visible list and click OK.
3 Save the component but leave it open. Capture the particular screen you wish
to handle as follows.
NOTE: This will take some coordination with your system
operator/administrator or whoever is responsible for generating the message
screen you wish to handle.
a. Set a breakpoint on an action in the first Map Screen after the map Screen
containing your Log in actions. (If this is a Logon Component, then set the
breakpoint on the first action in the KeepAlive or Logout section.)
b. Animate the component by pressing F5.
c. Run to the Breakpoint by pressing F9.
d. Pause the Animation by pressing F6.
e. Initiate the system message.
f. Press Enter and the system message screen will appear in the Native Envi-
ronment Pane and the XML representation of the message will appear in
the Screen Doc pane.