websydianexpress ™ for rpg developers. presenter niels p. sorensen product manager, websydian lead...
TRANSCRIPT
WebsydianExpress™
for RPG Developers
Presenter
Niels P. Sorensen
Product Manager, Websydian
Lead Architect
Developer for many years in languages like
RPG, Cobol, C/C++, Java, Plex and Pascal
Introduction
• It’s all about web development on IBM i• Web development in the most natural language for IBM i
developers - RPG• Web development without the need to know everything
about web servers, CGI, Session management, user management etc.
• It’s about the WebsydianExpress platform and framework for IBM i
What is provided for the RPG developer
• A similar approach as developing for 5250• Separation of RPG code and web page layout• No web technology hassle
– Session management– Security
• Allow the developer to focus on one part of the web application (Business Process)
• An extensive set of APIs
What is provided by WebsydianExpress™
• Easy installation• Web site out-of-the-box• Execution environment for your web application• User and role based authorization system• Presentation layer (role based layout, language support)• Web based administration interface• Extendable infrastructure
A web application
2E workshop – Jan 2010
RPGSecurity
User managment
Session control
Administration
Transport layer
MenuLogin
Design
Authorization system
WE and web applications
2E workshop – Jan 2010
RPGSecurity
User managment
Session control
Administration
Transport layer
MenuLogin
Design
Authorization system
What does the RPG developer need to know
• Seven basic API’s• HTML templates
– Externally described layout (very much like a DDS but layout can vary a lot)
– Replacement markers represents values from programs
– Page Modeler generates first cut for developer• Values send and recieved are string based, conversion
is required (API’s provided)• Validate all input fields for improved stability and security
An example and a look at the code
• Maintain Horse– Grid page (just like a subfile page)– Update page– Insert page– Delete page
• Live demo
Application in action
Templates
PageGenerator
Replacement Process
Replacement Process
Template
<table class="detail"> <tr> <td colspan="3"> /(WPNAME) <img src="/(WSRESURL)/(WPNAME).jpg“> </td> </tr> <tr> <td>/(WPGEND)</td> <td>/(WPDATE)</td> <td>/(WPVAL)</td> </tr></table>
<table class="detail"> <tr> <td colspan="3"> Bonfire <img src="/express30_windows/res/Bonfire.jpg“> </td> </tr> <tr> <td>Male</td> <td>2001-12-15</td> <td>5000,00</td> </tr> </table>
Output to browser
Read template
ReplacementMarker
ReplacementMarker
1
2
3
The Program Structure
WPGHRS00
WLBHRS
WEVHRS00UP
WEVHRS00DL
WEVHRS00IN
HTMLTemplate
Administration interface
WEBHORSEBPInitial load (menu item)by WebsydianExpress
The Program Structure Cont.
WPGHRS02
WLBHRS
WEVHRS02UP
WEVHRS02CA
HTMLTemplate
Initial loadcalled by gridpage
Administration interface
The Page Modeler
• Model and generate first cut HTML template
Administration interface
Getting started
• Register at http://www.websydian.com• In the download section download WebsydianExpress
for iSeries• Follow the installation guide provided• Check out the tutorial and try it out
http://www.websydian.com/websydiandoc/v61• Send questions to [email protected]
• Licensing based on pay as you grow• 10 concurrent sessions free of charge
Questions and Answer
?