Consultor Eletrônico



Kbase 15734: How to do a pass-through link for a buffer (not a db table )
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to do a pass-through link for a buffer (not a db table )

If a 4GL developer finds it necessary to emulate a pass-through link
for a working storage buffer, an attribute-list can be used to do
this. For example, if there is a statement DEFINE BUFFER mycust FOR
CUSTOMER which creates a buffer called mycust, and you want to send
a specific record in the buffer to another object, you can't use
the pass-through link or a record link because these rely on
information stored in the database metaschema files. These files
don't exist for working storage buffers.

The attribute-list can be used to pass a recid of the current record
after converting it into character format using the STRING function (a
(all entries in the attribute-list are character format). The
new-state link can also be used if desired to notify the target that
the recid has been passed.

The target object can then use the INTEGER function to convert
the attribute-list item into a variable defined as RECID.

Note: ROWID cannot be used in this example.

Progress Software Technical Support Note # 15734