Consultor Eletrônico



Kbase P23257: How to preserve application required information on different WebSpeed agents
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

GOAL:

How to preserve application required information on different WebSpeed agents

GOAL:

How to use temporary tables in WebSpeed between different web requests

GOAL:

Is it possible to share information using temp tables between requests

FACT(s) (Environment):

WebSpeed 3.x

FIX:

Very often it is required to preserve information between different web requests in order to minimize access to the application database, or because specific application logic requirements.

This is normally achieved through the usage of the cookies. However, in order to minimize the amount of the information being stored in the cookies and if the stored information is not the context relevant but required for the application, then the information should be stored in the database or in the temporary table that should exist in the WebSpeed agent's session.

One way to achieve this is as follows:

- Create your template web object based on the existing Progress WebSpeed
templates (cgi Wrapper, Detail, HTML Mapping etc.)

- Extend these templates with the additional method library (mycustom.i)

- In that include file execute the statement:

RUN start-super-proc ("mycustom.p":U).

- In the mycustom.p which can be structured procedure define the temporary
table

- Create subset of the internal procedures and functions that would be used
as API for the application framework