ProDataSets

Documentation and examples on how to use ProDataSets


TIPS FOR A PRO DATASET DEVELOPER

There have been a number of major milestones in Progress releases. The first that comes to mind in more recent times was the introduction of the appserver. Since then there have been other significant introductions such as super procedures, processing handles, and object orientated code. Another recent significant feature, which is the text of this paper, is the prodataset.


ProDataSet mimimal case read example

This is a minimal case example of using a ProDataset to marshal data from one TT to another TT. This code was written to demonstrate how a data-source, dataset, and a set of temp-tables are structurally assembled to read data from one table into another table.

   /* Procedure Temp-Tables         */

DEFINE TEMP-TABLE tt-src   NO-UNDO
   FIELD i1    AS INTEGER

   INDEX i-i1     i1
   .

DEFINE TEMP-TABLE tt-tgt   NO-UNDO
   LIKE tt-src
   .

   /* Procedure Variables           */

DEFINE VARIABLE cur-cnt    AS INTEGER     NO-UNDO.

All About ProDataSets

This is a beginning entry which it is hoped will turn into general documentation on ProDataSets.

Contributors are encouraged to create book pages in a structured fashion so that one can drill down into topics.

It is desired to create two documentation hierarchies.

One of these will be about the actual syntax and use, i.e., a hyperlinked set of pages corresponding to the reference manual, but organized to allow perceiving the high level structure and drilling down into details as needed. This should include extensive details on how the data-source and dataset object methods & attributes, a la what's there already.


Syndicate content