Consultor Eletrônico



Kbase P21619: 4GL. How to select all rows in a Browse Widget in V8
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   28/07/2009
Status: Unverified

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

FACT(s) (Environment):

Progress 8.x

CAUSE:

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.

FIX:

Use the following code:

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.