Consultor Eletrônico



Kbase P116056: How to get a list of selected rows in a multi-select browse?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How to get a list of selected rows in a multi-select browse?

GOAL:

How to find which rows are selected in a multi-select browse?

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

FIX:

The following code fragment will build a comma delimited list of
ROWID's of all of the selected rows in a multi-select browse widget.
DEFINE VARIABLE intSub AS INTEGER NO-UNDO.
DEFINE VARIABLE chrRid AS CHARACTER NO-UNDO.
DO intSub = 1 TO {&BROWSE-NAME}:NUM-SELECTED-ROWS:
{&BROWSE-NAME}:FETCH-SELECTED-ROW(intSub).
IF chrRid <> "" THEN
ASSIGN chrRid = chrRid + "," + STRING(ROWID(YourTableName)).
ELSE
ASSIGN chrRid = STRING(ROWID(YourTableName)).
END.
MESSAGE "Here is the list:" SKIP chrRid VIEW-AS ALERT-BOX.