Consultor Eletrônico



Kbase 16108: How to select a set of rows in a multiple browse using 4GL
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to select a set of rows in a multiple browse using 4GL

How to select a set of rows in a multiple-selection browse using
the 4GL?
This example assumes that there is a work-table containing the
RECIDs of rows you want to select. Here is the structure of that work-
table.
DEFINE WORK-TABLE wt FIELD rec_id AS RECID.

FOR EACH wt:
REPOSITION {&BROWSE-NAME} TO RECID rec_id.
IF {&BROWSE-NAME}:SELECT-FOCUSED-ROW() THEN.
END.

Note: If you are using ROWIDs instead of RECIDs, just change RECID
into ROWID.
If your browse has more than one table (a join), the first
table will be repositioned to the specific record and related
records from the child tables in an arbitrary order, unless
there is only one record from the child tables associated with
the specified record.

Progress Software Technical Support Note # 16108