Inside the WebApp Classes John Tuohy Data Access Worldwide.

Post on 30-Dec-2015

219 views 0 download

Tags:

Transcript of Inside the WebApp Classes John Tuohy Data Access Worldwide.

Inside the WebApp Classes

John TuohyData Access Worldwide

Using Web Business Objects

Web Server ASP/JSP

<HTML><% IF…THEN ELSE END IF%>

ASP Page

WBO

Database

WebApp in Detail

Web Server ASP/JSP

<HTML><% IF…THEN ELSE END IF%>

ASP Page

DatabaseDriverDriver

WBO

DataDictionaries

Function xx:End_Function

A WebApp ASP/JSP ContainsStandard HTML code

Markup text, Input Forms, Client ScriptEmbedded Script Code

<% and %>VBScript code “Islands”Calls to Built-in ASP/JSP Objects

Response, Request, Session, Server, Application,

Calls to WebApp WBO Objects

An ASP/JSP call to a WBO will...

Execute a Process e.g. Save a Record, Find a Record

Output HTML code to the Page being created e.g. Generate a report in HTML format, Generate an

HTML input control Return a value to the Script function that called it

e.g. Return a Field value, Return an Error Code

ASP/JSP Accesses a WBO via... Built in Methods

<% Err = oMyWBO.RequestSave(“Cust”) %>

RequestSave RequestDelete RequestFind RequestClear RequestDDUpdate RequestFindbyRecId

These can be disabled by the WBO

ASP/JSP Accesses a WBO via...

DDValue Retrieves information about your DDOsUsed most often to retrieve field values

<%= oMyWBO.DDValue(“Cust.Name”) %>

Can be used to build dynamic input controls

<%= oMyWBO.DDValue(“Cust.Name”,DDAUTO) %>

ASP Accesses a WBO via...Call

<% bOk = oMyWBO.Call(“get_LoginUser”,sName,sPass) %>

For custom interface methods Can be used to call any process within a WBO This is the hook that lets you do anything Only registered WBO methods can be called

WebApp in Detail

WebApp Application Object

IIS Web Server ASP

<HTML><% IF…THEN ELSE END IF%>

ASP Page

COM/WBO

COM/WBO

WBO DDOs

Function xx:End_Function

WBO DDOs

Function xx:End_Function

Linux WebApp in Detail

WebApp Application Object

Linux WebServerJsp/Java Servlet

<HTML><% IF…THEN ELSE END IF%>

JSP Page

Bean/WBO

Bean/WBO

WBO DDOs

Function xx:End_Function

WBO DDOs

Function xx:End_Function

A WebApp WBO Contains

Data Dictionary Object Structure (DDOs) Based on Data-dictionary rules (DD classes)

Built in Data Handling Processes

Validate & Save, Delete, Find, Clear, Update & Validate,

Find by RecId, DD Field Values and Attributes Custom Processes Custom Reporting Objects A Controlled External Interface

A WBO

WebApp Application Object

IIS Web Server ASP

cWebBusinessProcess

DDOs

Built inProperties,Methods

Report Objects

Custom Properties,Methods &Objects

Registered “Call” Interface

The Complete WebApp Class Library

WebApp Classes

cWebAppcWebBusinessProcesscWebReportcAutoWebReport

DDO Classes

DataDictionaryValidationTableDescriptionValidationTableFileValidationTableCodeValidationTable

Misc. Classes

ArraySetButton

The Important WebApp Classes

cWebApp

cWebBusinessProcess

cWebReport

DataDictionary

WebApp Object Structure

oWebApp is a cWebApp

c

oMyWBO is a cWebBusinessProcess

oMyTable1_DD is a cMyTable1_DD

oMyTable2_DD is a cMyTable2_DD

oMyReport is a cWebReport

Property integer pi…

Function xxx…

Procedure xxx……

Send RegisterInterface…