A SERVICE OF

logo

5250 Connect Users Guide
130
4 Choose a test field whose data will serve to identify this screen as one you
wish to handle. For instance, you may choose the screen title field whose
data is Display Messages.
5 Hover your mouse pointer over the test fields XML representation in the
ScreenDoc and note its full XPath location (e.g.
ScreenDoc/SCREEN/FIELD[5])
6 Stop Animation by pressing Shift-F5, sign off the host system, and close the
component, but do not save it.
7 In the Composer window, select the Connection Resource for the component
and open it.
8 On the Connection Info tab, click on the Advanced button and the
Advanced dialog appears.
9 Check the Enable Telnet Environment checkbox to enable Telnet protocol
support per RFC 2877 and RFC 1572.
10 Enter the Device Name used in the TN5250 Connect.
11 Click on the Add button to add a line to define Screen handler.
12 In the Expression field, type an expression comparing the test data against
the test fields XPath (e.g.
ScreenDoc.XPath(string(SCREEN/FIELD[5]))= = Display Messages).
NOTE: The XPath string function is applied to make sure the comparison
works properly.
13 In the AID/DispatchKey field, select a key to send in response to the screen.