160 likes | 264 Views
Inside the WebApp Classes. John Tuohy Data Access Worldwide . Web Server ASP/JSP. WBO. <HTML> <% IF…THEN ELSE END IF %> ASP Page. Database. Using Web Business Objects. Web Server ASP/JSP. WBO. <HTML> <% IF…THEN ELSE END IF %> ASP Page. Data Dictionaries.
E N D
Inside the WebApp Classes John Tuohy Data Access Worldwide
Web Server ASP/JSP WBO <HTML> <% IF…THEN ELSE END IF %> ASP Page Database Using Web Business Objects
Web Server ASP/JSP WBO <HTML> <% IF…THEN ELSE END IF %> ASP Page Data Dictionaries Function xx : End_Function WebApp in Detail Database Driver
A WebApp ASP/JSP Contains • Standard HTML code • Markup text, Input Forms, Client Script • Embedded 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 DDOs • Used 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 Application Object IIS Web Server ASP COM/WBO <HTML> <% IF…THEN ELSE END IF %> ASP Page WBO WBO DDOs DDOs Function xx : End_Function Function xx : End_Function COM/WBO WebApp in Detail
WebApp Application Object Linux WebServer Jsp/Java Servlet Bean/WBO <HTML> <% IF…THEN ELSE END IF %> JSP Page WBO WBO DDOs DDOs Function xx : End_Function Function xx : End_Function Bean/WBO Linux WebApp in Detail
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 cWebBusinessProcess IIS Web Server ASP WebApp Application Object DDOs Built in Properties, Methods Report Objects Custom Properties, Methods & Objects Registered “Call” Interface
WebApp Classes cWebApp cWebBusinessProcess cWebReport cAutoWebReport DDO Classes DataDictionary ValidationTable DescriptionValidationTable FileValidationTable CodeValidationTable Misc. Classes Array Set Button The Complete WebApp Class Library
The Important WebApp Classes • cWebApp • cWebBusinessProcess • cWebReport • DataDictionary
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… WebApp Object Structure