Kbase P21552: How to select all rows in a Browse Widget
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  30/07/2009 |
|
Status: Verified
GOAL:
How to select all rows in a Browse Widget
GOAL:
How to select all the rows in a multiple-selection browse using the 4GL
GOAL:
Selecting all the rows of a Browse?
FACT(s) (Environment):
Progress 8.x
Progress 9.x
OpenEdge 10.x
All Supported Operating Systems
FIX:
In Progress 8.x, the following code can be used to complish this:
DEFINE VARIABLE intSub AS INTEGER NO-UNDO.
{&BROWSE-NAME}:DESELECT-ROWS().
DO intSub = 1 TO NUM-RESULTS("{&BROWSE-NAME}"):
reposition {&BROWSE-NAME} to ROW(intSub).
{&BROWSE-NAME}:SELECT-FOCUSED-ROW().
END.
Please note that in NUM-RESULTS("{&BROWSE-NAME}"), {&BROWSE-NAME} refers to the name of the query. However AppBuilder uses for it the same name of the associated Browse.
In Progress 9.x and later releases, Use the SELECT-ALL method:
BrowseName:SELECT-ALL().