WebsydianExpress ™

15
WebsydianExpress for RPG Developers

description

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 - PowerPoint PPT Presentation

Transcript of WebsydianExpress ™

Page 1: WebsydianExpress ™

WebsydianExpress™

for RPG Developers

Page 2: WebsydianExpress ™

Presenter

Niels P. Sorensen

Product Manager, Websydian

Lead Architect

Developer for many years in languages like

RPG, Cobol, C/C++, Java, Plex and Pascal

Page 3: WebsydianExpress ™

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

Page 4: WebsydianExpress ™

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

Page 5: WebsydianExpress ™

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

Page 6: WebsydianExpress ™

A web application

2E workshop – Jan 2010

RPGSecurity

User managment

Session control

Administration

Transport layer

MenuLogin

Design

Authorization system

Page 7: WebsydianExpress ™

WE and web applications

2E workshop – Jan 2010

RPGSecurity

User managment

Session control

Administration

Transport layer

MenuLogin

Design

Authorization system

Page 8: WebsydianExpress ™

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

Page 9: WebsydianExpress ™

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

Page 10: WebsydianExpress ™

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

Page 11: WebsydianExpress ™

The Program Structure

WPGHRS00

WLBHRS

WEVHRS00UP

WEVHRS00DL

WEVHRS00IN

HTMLTemplate

Administration interface

WEBHORSEBPInitial load (menu item)by WebsydianExpress

Page 12: WebsydianExpress ™

The Program Structure Cont.

WPGHRS02

WLBHRS

WEVHRS02UP

WEVHRS02CA

HTMLTemplate

Initial loadcalled by gridpage

Administration interface

Page 13: WebsydianExpress ™

The Page Modeler

• Model and generate first cut HTML template

Administration interface

Page 14: WebsydianExpress ™

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

Page 15: WebsydianExpress ™

Questions and Answer

?