Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Development Challenges and How They are Solved in ps:eScript Matt Verrinder Progress Software UK Internet & Integration Technologies.

Similar presentations


Presentation on theme: "Web Development Challenges and How They are Solved in ps:eScript Matt Verrinder Progress Software UK Internet & Integration Technologies."— Presentation transcript:

1 Web Development Challenges and How They are Solved in ps:eScript Matt Verrinder Progress Software UK Internet & Integration Technologies

2 © 2004 Progress Software Ltd 2 Simplify your business Agenda n Services n Session Management n Record Locking n PDF Generation n Debugging n Profiling

3 © 2004 Progress Software Ltd 3 Simplify your business Services n Persistent procedures –Contain business/UI logic n Registered as super procedures –On web object (Local) –Session (Global) n Managed –Auto-start on agent startup –Startup on demand n Can run remotely on AppServer

4 © 2004 Progress Software Ltd 4 Simplify your business Services n Core services –Session management –Security –Menu –Search n Custom services –Extend core functionality –Add functionality

5 © 2004 Progress Software Ltd 5 Simplify your business Search Service n Provides functions to execute query n Display page of results n Navigate –First –Previous –Next –Last –To Specific Page

6 © 2004 Progress Software Ltd 6 Simplify your business Execute Query PROCEDURE executeQuery ( INPUT pcSearchId AS CHARACTER, INPUT pcQueryString AS CHARACTER, INPUT piRowsPerPage AS INTEGER, INPUT piMaxResults AS INTEGER ) PROCEDURE storeResults ( INPUT pcSearchId AS CHARACTER, INPUT TABLE temp-table, INPUT piRowsPerPage AS INTEGER, INPUT piMaxResults AS INTEGER )

7 © 2004 Progress Software Ltd 7 Simplify your business Results Temp-table Definition n Define temp-table for results page –Can be LIKE table(s) in query string n To retains correct sequence n FIELD ResultNum LIKE psResult.ResultNum n INDEX idxResultNum IS PRIMARY idxResultNum n To get ROWID(s) n FIELD ResultValue LIKE psResult.ResultValue

8 © 2004 Progress Software Ltd 8 Simplify your business Select Page FUNCTION selectPage RETURNS INTEGER ( INPUT pcSearchId AS CHARACTER, INPUT pcSelect AS CHARACTER ) n pcSelect can be first, last, next, previous or a page number

9 © 2004 Progress Software Ltd 9 Simplify your business Fetch Results Page PROCEDURE fetchResultsPage ( INPUT pcSearchId AS CHARACTER, INPUT piPageNumber AS INTEGER, INPUT piRowsPerPage AS INTEGER, INPUT-OUTPUT TABLE ttResults ) PROCEDURE fetchResultRow ( INPUT pcSearchId AS CHARACTER, INPUT piRowNumber AS INTEGER, INPUT-OUTPUT TABLE ttResults ) n If using storeResults(), the same temp-table definitions must be used for fetchResultsPage() and fetchResultsRow()

10 © 2004 Progress Software Ltd 10 Simplify your business Remove Result Row PROCEDURE removeResultRow ( INPUT pcSearchId AS CHARACTER, INPUT piResultNum AS INTEGER, INPUT plRenumber AS LOGICAL ) PROCEDURE refreshResults ( INPUT pcSearchId AS CHARACTER, INPUT PARAMETER TABLE ttResults ) n Note: temp-table definition must be same as that used by storeResults()

11 Demo 1 Data Service

12 © 2004 Progress Software Ltd 12 Simplify your business Session Service n WebSpeed agent is stateless –No memory of user or user actions n Application responsibility to track context of user n Data stored against session id –Available to subsequent requests

13 © 2004 Progress Software Ltd 13 Simplify your business Session Service n Global service n Session id –Created on first request –Passed with every request n URL parameter n Cookie –Used to re-establish context

14 © 2004 Progress Software Ltd 14 Simplify your business Session Data n Loaded when request initialises n Saved when request complete n Data stored as character –Functions for get/set of specific data types n Can store temp-tables n Virtual lock table n Session viewer in WebTools

15 Demo 2 Record Locking

16 © 2004 Progress Software Ltd 16 Simplify your business PDF Generation n Use eScript to generate an XML document n Override standard output behaviour –Transform XML into PDF –Stream generated file to browser

17 Demo 3 Generating PDFs

18 Demo 4 Debugging

19 Demo 5 Profiling

20 © 2004 Progress Software Ltd 20 Simplify your business Questions


Download ppt "Web Development Challenges and How They are Solved in ps:eScript Matt Verrinder Progress Software UK Internet & Integration Technologies."

Similar presentations


Ads by Google