When running your application, you might want to know whether it is using the original 5250 user interface or the WebFaced browser user interface. There is an Application Program Interface (API) available on OS/400 that you can use to determine which user interface is active. This exercise shows you how to use this API in an RPG environment, but you can also use it for a different ILE language such as COBOL or CL.
The goal of this exercise is to make you aware of how to use the WebFacing API in your own environment. You will use the API to change the field content for the user interface yet ensure that the change is applied only when you invoke the application through the WebFacing server. You perform this task in the Remote System Explorer perspective, creating and changing the RPG program so that you can learn more about how to work in the Development Studio Client programming environment.
At the end of this exercise, you should be able to
Start the Remote System Explorer (RSE) perspective
Use the library list filter
Locate the RPG source member in the RSE tree view
Change the RPG source member using the built-in LPEX editor
Create a program from the altered source member
Deal with compile errors
Use the WebFacing environment API
Use the Web setting for Program-defined HTML