Hi all, the topic winner in the poll was SOA. But I’ll not post about it today. lol
But I promise… the next will be about it.

This post is about prodatasets in Progress… the prodataset has the same concept of dataset in .NET.

Below a simple use of prodataset…

DEFINE TEMP-TABLE tt-Sucursal LIKE SUCURSAL.
DEFINE DATA-SOURCE src-Sucursal FOR SUCURSAL.
DEFINE DATASET ds-Sucursal FOR tt-Sucursal.

BUFFER tt-Sucursal:ATTACH-DATA-SOURCE(DATA-SOURCE src-Sucursal:HANDLE).

DATASET ds-Sucursal:FILL().

BUFFER tt-Sucursal:DETACH-DATA-SOURCE().

FOR EACH tt-Sucursal
NO-LOCK:
DISPLAY tt-Sucursal.cod-sucursal
tt-Sucursal.NOM-SUCURSAL.
END.

Next week I’ll show another example of prodataset… more complicated and complete.

STSP…­čśÇ