Kbase 17914: How to Get a List of Selected Rows in a Multi-Select Browse
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
How to Get a List of Selected Rows in a Multi-Select Browse
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.
Please note that this code has been tested on Progress Version 8.2
only and may need slight modifications to work on earlier releases.
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.
Progress Software Technical Support Note # 17914