Scenario


You have WebFaced your application, but you want to add specific features that are not available in the original 5250 format. In your environment, you need to run this application with a 5250 and WebFaced user interface simultaneously . However, you do not want to maintain two separate applications for the two types of interfaces. You therefore need the capability to determine, in the logic of your program, whether it is driving the 5250 user interface or a WebFaced user interface. The WebFacing Environment API gives you this capability. It is installed on the iSeries host with the WebFacing PTF, and it is implemented in the QQFENV service program.

In this exercise, you create a module and then create a program where you bind the QQFENV service program. You will change the ORDENTR program to use the WebFacing environment API. Specifically, you want to highlight the customer locations such that if they are located in the city of Markham, their name displays in a large heading 2 font size . First, you need to change the display file to increase the length of the Customer name field so that you can accommodate the additional HTML tags needed for this change. Then you will change the RPG logic to determine whether the application uses a 5250 or a browser-based user interface. If it uses a browser-based user interface, you add logic to the program to include the H2 HTML tags around the data.




Understanding the IBM WebFacing Tool. A Guided Tour
Understanding the IBM WebFacing Tool: A Guided Tour (IBM Illustrated Guide series)
ISBN: 1931182094
EAN: 2147483647
Year: 2003
Pages: 153

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net