dynamic web file maintenance reasons for development design objectives development methods code...
TRANSCRIPT
Dynamic Web File Maintenance
Reasons for development Design Objectives Development methods Code examples Demo
Dynamic Web File Maintenance
Reasons for Development– Create a highly flexible web based
environment
– Speed future development efforts
– Simplify file maintenance tasks
Dynamic Web File Maintenance
Design Objectives– Initially Web based but expand the
methods to other UI later– Single code source for all reference
data manipulation– Use Progress dynamic capabilities to
create a single code set for all maintenance routines
Dynamic Web File Maintenance
Objectives (cont’d)– Highly customizable through the use
of Super Procedures
– Build on already proven methods for dynamic data manipulation/display (DataPump etc.)
Dynamic Web File Maintenance
Methods– Use proper tiering of application
layers– All data access is dynamically
generated– Start at lowest level of functionality
and build up from there (bottom up approach)
Dynamic Web File Maintenance
Methods (cont’d)– Dynamically generate web pages
based on specific structure in the record
– Develop a single set of routines that will work for all database tables
– Super procedures for display of
Dynamic Web File Maintenance
Methods (cont’d)– DataPump Super procedures for data
display to allow for over ride as necessary
– All data queries use Progress’ dynamic query structure
Dynamic Web File Maintenance
Methods (cont’d)– Data table and key field information
are passed in the web query stream – All requests are via “Post” methods
to the web server.– “Data Acceptor” routine collects all
data and determines what routines to run
Dynamic Web File Maintenance
Data Acceptor Sample Codecreate buffer hfieldbuf for table filnm.case i-mode: when "dodelete" then do: run deleterec.p(input filnm, input keyfld " = " reqnum) no-error. end. /* when "dodelete" */
Dynamic Web File Maintenance
Data Acceptor Sample Codewhen "goadd" then do: run dispaddupd(input "add", input filnm, input keyfld, input "", input hfieldbuf, input prevcnt, input nextcnt). return. /* return prevents run of display list */ end. /* when goadd */
Dynamic Web File Maintenance
Run of displayrun baserun.p(input filnm, input keyfld, input wherecl, input i-mode, input nextcnt, input prevcnt, input maxreturn, input returncnt) no-error.
Dynamic Web File Maintenance
Future Directions Modifications to allow Web
Client/GUI display Enhance hooks for business logic
insertion