Working with the Demo Applications

Subfile Demo

Working with the Subfile Demo

To login, click on the Subfile demo option. You will be directed to a login screen that cannot be edited. Click login to open the demo.

You will notice there is a "Disconnect" button, use this button to remove the session when you have finished using the demo.

Comparison:
If you open the Demo Application in a green screen emulation and in the browser and compare them side by side you will notice that there are a few differences. These differences are not due to technological constraints rather to demonstrate the ability to extend usability beyond copying screens. A web application has more flexible display options such as using a button to get details instead of OPTION 5 and using a popup to display the details instead of moving to another screen each time you enter a new command. These things should be considered when creating a web based version of an I5/OS application  to make sure you benefit from an optimal range of advantages.

Behind the Subfile Demo

This demo application was written in PHP using the Zend 5250 Bridge Procedural API Functions using functions to organize the code and HTML for the display. The source code for the Demo Applications can be found in /usr/local/zendsvr/5250/demos/subfileExtended. The main file is called index.php. Sample applications can be viewed in a green screen by logging into IBM i. When using your emulator, you can view the original format of the demo application by running the following command in the command area: ADDLIBLE ZENDSVR and CALL ZMI001R.

Extended Subfile Demo

The Extended Subfile Demo, shows how you can use the 5250 Bridge API recreate IBM i resources in a web based environment without using the 5250 emulation client look and feel. This like the Subfile Demo, provides a way to extend your IBM i resources to the web and provide a more user friendly application and in addition demonstrates how you can improve the layout using HTML and  AJAX.

Working with the Extended Subfile Demo

To login, click on the Extended Subfile demo option. You will be directed to a login screen that cannot be edited. Click login to open the demo.

You will notice there is a "Disconnect" button, use this button to remove the session when you have finished using the demo.

Behind the Extended Subfile Demo

This demo application was written in PHP using the Zend 5250 Bridge Object Oriented API using classes to organize the code and AJAX to create advanced functionality like replacing language types with flags representing the language and adding pictures to each name.

The source code for the Demo Applications can be found in /usr/local/zendsvr/5250/demos/subfileExtended. The main file is called index.php. Sample applications can be viewed in a green screen by logging into IBM i. When using your emulator, you can view the original format of the demo application by running the following command in the command area: ADDLIBLE ZENDSVR and CALL ZMI001R.

 

 

 

Related Links

Related Links:

Applications

Working with the Zend 5250 Bridge